Install linker script to toolchain sysroot.
Then -T option to gcc/ld will find them there just by file name (without a path).
This commit is contained in:
parent
cc7bd07866
commit
d963e31f7b
1 changed files with 3 additions and 0 deletions
3
Makefile
3
Makefile
|
@ -30,6 +30,9 @@ ifeq ($(STANDALONE),y)
|
|||
@cp -Rfv sdk/include/* $(TOOLCHAIN)/xtensa-lx106-elf/sysroot/usr/include/
|
||||
@echo "Installing vendor SDK libs to toolchain sysroot"
|
||||
@cp -Rfv sdk/lib/* $(TOOLCHAIN)/xtensa-lx106-elf/sysroot/usr/lib/
|
||||
@echo "Installing vendor SDK linker scripts to toolchain sysroot"
|
||||
@sed -e 's/\r//' sdk/ld/eagle.app.v6.ld >$(TOOLCHAIN)/xtensa-lx106-elf/sysroot/usr/lib/eagle.app.v6.ld
|
||||
@sed -e 's/\r//' sdk/ld/eagle.rom.addr.v6.ld | sed -e s@../ld/@@ >$(TOOLCHAIN)/xtensa-lx106-elf/sysroot/usr/lib/eagle.rom.addr.v6.ld
|
||||
endif
|
||||
touch $@
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue