X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=Makefile;h=572e7a320341d06c51450b413250e73ffe37163c;hb=377f58b3be561a9e0fffebf54237693ddce2184f;hp=511cfd5b680d92ca23b3aaaec948d0519993dba5;hpb=648045c23ec74fafc4416cfd27b8ce6a091d8a35;p=esp8266-clock.git diff --git a/Makefile b/Makefile index 511cfd5..572e7a3 100644 --- a/Makefile +++ b/Makefile @@ -15,12 +15,12 @@ LDFLAGS = -nostdlib -Wl,--no-check-sections -Wl,--gc-sections -Wl,-static \ -L$(SDKDIR)/xtensa-lx106-elf/lib APP = clock -OBJS = user_main.o max7219.o spi.o clock.o +OBJS = user_main.o clock.o max7219.o ota.o spi.o all: rom0.bin rom1.bin %.bin: %.elf - PATH=$$PATH:$(SDKDIR)/bin esptool.py elf2image $^ --version 2 -o $@ + esptool elf2image $^ --version 2 -o $@ %.elf: $(APP)_app.a $(LD) -T$(basename $@).ld $(LDFLAGS) -Wl,--start-group $(LIBS) $^ -Wl,--end-group -lgcc -o $@ @@ -34,8 +34,13 @@ flash: rom0.bin rom1.bin 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 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