Explorar o código

Install linker script to toolchain sysroot.

Then -T option to gcc/ld will find them there just by file name
(without a path).
Paul Sokolovsky %!s(int64=10) %!d(string=hai) anos
pai
achega
d963e31f7b
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      Makefile

+ 3 - 0
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 $@