Browse Source

examples: Add older Makefile for "blinky".

Paul Sokolovsky 10 years ago
parent
commit
f8183482b6
1 changed files with 14 additions and 0 deletions
  1. 14 0
      examples/Makefile.blinky

+ 14 - 0
examples/Makefile.blinky

@@ -0,0 +1,14 @@
+CC = xtensa-lx106-elf-gcc
+CFLAGS = -I. -mlongcalls
+LDLIBS = -nostdlib -Wl,--start-group -lmain -lnet80211 -lwpa -llwip -lpp -lphy -Wl,--end-group -lgcc
+LDFLAGS = -Teagle.app.v6.ld
+
+blinky-0x00000.bin: blinky
+    esptool.py elf2image $^
+
+blinky: blinky.o blinky_main.o
+
+blinky.o: blinky.c
+
+flash: blinky-0x00000.bin
+    esptool.py write_flash 0 blinky-0x00000.bin 0x40000 blinky-0x40000.bin