Initial commit
This commit is contained in:
commit
557188bb38
4 changed files with 197 additions and 0 deletions
20
Makefile
Normal file
20
Makefile
Normal file
|
@ -0,0 +1,20 @@
|
|||
P=mqtt
|
||||
CC=xtensa-lx106-elf-gcc
|
||||
LDLIBS=-nostdlib -ggdb -Wl,-Map=output.map -Wl,--start-group -lm -lc -lhal -lpp -llwip -lphy -lnet80211 -lwpa -lat -lwpa2 -lmain -Wl,--end-group -lgcc
|
||||
CFLAGS= -I. -mlongcalls -std=gnu11
|
||||
LDFLAGS=-Teagle.app.v6.ld
|
||||
OBJ=mqtt.o
|
||||
DEPS=mqtt.h
|
||||
|
||||
$(P)-0x00000.bin: $(P)
|
||||
esptool.py elf2image $^
|
||||
|
||||
$(P): $(OBJ)
|
||||
|
||||
%.o: %.c $(DEPS)
|
||||
|
||||
flash: $(P)-0x00000.bin
|
||||
esptool.py --port /dev/feather1 write_flash 0 $(P)-0x00000.bin 0x10000 $(P)-0x10000.bin
|
||||
|
||||
clean:
|
||||
rm -f $(P) $(P).o $(P)-0x00000.bin $(P)-0x10000.bin
|
Loading…
Add table
Add a link
Reference in a new issue