From d963e31f7b62bfdaf43f5c2ede1f01d53d237d6f Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Wed, 19 Nov 2014 22:42:02 +0200 Subject: [PATCH] Install linker script to toolchain sysroot. Then -T option to gcc/ld will find them there just by file name (without a path). --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 74fd08f..04c983a 100644 --- a/Makefile +++ b/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 $@