]> the.earth.li Git - esp8266-clock.git/commitdiff
Update Makefile to add additional configuration defines
authorJonathan McDowell <noodles@earth.li>
Sun, 27 Jan 2019 11:47:37 +0000 (11:47 +0000)
committerJonathan McDowell <noodles@earth.li>
Sun, 27 Jan 2019 11:47:37 +0000 (11:47 +0000)
The generation rule for the skeleton configuration header file was not
including the defines necessary since OTA support was added.

Makefile

index 347b9046bff4c7b34bf7987736eed01192ed235a..572e7a320341d06c51450b413250e73ffe37163c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -34,8 +34,13 @@ flash: rom0.bin rom1.bin
 
 project_config.h:
        echo '#error "Edit this file to match your configuration."' > $@
 
 project_config.h:
        echo '#error "Edit this file to match your configuration."' > $@
+       echo '#define PROJECT "clock"' >> $@
+       echo '#define VER_MAJ 0' >> $@
+       echo '#define VER_MIN 1' >> $@
        echo '#define CFG_WIFI_SSID "My Wifi"' >> $@
        echo '#define CFG_WIFI_PASSWORD "password"' >> $@
        echo '#define CFG_WIFI_SSID "My Wifi"' >> $@
        echo '#define CFG_WIFI_PASSWORD "password"' >> $@
+       echo '#define UPGRADE_HOST "upgrade-host.local"' >> $@
+       echo '#define UPGRADE_PATH "/esp8266/" PROJECT "/"' >> $@
 
 clean:
        rm -f $(OBJS) $(APP)_app.a rom0.elf rom1.elf rom0.bin rom1.bin
 
 clean:
        rm -f $(OBJS) $(APP)_app.a rom0.elf rom1.elf rom0.bin rom1.bin