Blinky Makefile doesn't have SDK path, how it can locate ..
Posted: Sat Jun 11, 2016 11:30 am
how it can locate the library and linker script?
I compile it and it worked after I export the path
export PATH=/home/lilzz/esp-open-sdk/xtensa-lx106-elf/bin:$PATH
but the makefile doesn't have path to library and linker script. so how does it find them?
I compile it and it worked after I export the path
export PATH=/home/lilzz/esp-open-sdk/xtensa-lx106-elf/bin:$PATH
but the makefile doesn't have path to library and linker script. so how does it find them?
Code: Select all
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.o: blinky.c
flash: blinky-0x00000.bin
esptool.py write_flash 0 blinky-0x00000.bin 0x40000 blinky-0x40000.bin
clean:
rm -f blinky blinky.o blinky-0x00000.bin blinky-0x40000.bin