Advertisement
Guest User

ESP8266 Makefile

a guest
Dec 17th, 2016
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.47 KB | None | 0 0
  1. CC = xtensa-lx106-elf-gcc
  2. CFLAGS = -I. DICACHE_FLASH -mlongcalls
  3. LDLIBS = -nostdlib -Wl,--start-group -lmain -lnet80211 -lwpa -llwip -lpp -lphy -lc -Wl,--end-group -lgcc
  4. LDFLAGS = -Teagle.app.v6.ld
  5.  
  6. sensor-0x00000.bin: sensor
  7.     esptool.py elf2image $^
  8.  
  9. sensor: sensor.o
  10.  
  11. sensor.o: sensor.c
  12.  
  13. flash: esptool.py --port /dev/ttyUSB0 write_flash 0x00000 sensor-0x00000.bin 0x10000 sensor-0x10000.bin
  14.  
  15. clean:
  16.     rm -f sensor sensor.o sensor-0x00000.bin sensor-0x10000.bin
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement