ti-c6accel 1.01.00.03: add patch to fix link problem
authorKoen Kooi <koen@openembedded.org>
Wed, 5 Jan 2011 09:12:13 +0000 (10:12 +0100)
committerKoen Kooi <koen@openembedded.org>
Wed, 5 Jan 2011 09:12:59 +0000 (10:12 +0100)
Signed-off-by: Koen Kooi <koen@openembedded.org>
recipes/ti/ti-c6accel.inc
recipes/ti/ti-c6accel/0001-soc-app-fix-makefile-to-pass-Wl-T-before-the-linkers.patch [new file with mode: 0644]
recipes/ti/ti-c6accel_1.01.00.03.bb

index da513cf..777ece2 100644 (file)
@@ -18,7 +18,7 @@ PROVIDES += "ti-c6accel-apps"
 
 # This recipe links statically against kernel dependant stuff, use kernel PR as base and append a local version
 PR = "${MACHINE_KERNEL_PR}"
-PR_append = "a"
+PR_append = "b"
 
 S = "${WORKDIR}/c6accel_${PV}"
 
diff --git a/recipes/ti/ti-c6accel/0001-soc-app-fix-makefile-to-pass-Wl-T-before-the-linkers.patch b/recipes/ti/ti-c6accel/0001-soc-app-fix-makefile-to-pass-Wl-T-before-the-linkers.patch
new file mode 100644 (file)
index 0000000..901e11d
--- /dev/null
@@ -0,0 +1,26 @@
+From 58c50064afdc2fd7093613e0ae3a9192ea189460 Mon Sep 17 00:00:00 2001
+From: Koen Kooi <koen@dominion.thruhere.net>
+Date: Wed, 5 Jan 2011 10:10:33 +0100
+Subject: [PATCH] soc/app: fix makefile to pass -Wl,-T, before the linkerscript
+
+Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
+---
+ soc/app/Makefile |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/soc/app/Makefile b/soc/app/Makefile
+index 0bb7bdc..342e43a 100755
+--- a/soc/app/Makefile
++++ b/soc/app/Makefile
+@@ -33,7 +33,7 @@ XDC_CFG              = $(TARGET)_config
+ XDC_CFLAGS    = $(XDC_CFG)/compiler.opt\r
\r
+ # Output linker file\r
+-XDC_LFILE     = $(XDC_CFG)/linker.cmd\r
++XDC_LFILE     = -Wl,-T,$(XDC_CFG)/linker.cmd\r
\r
+ # Input configuration file\r
+ XDC_CFGFILE   = $(PLATFORM)/$(TARGET).cfg\r
+-- 
+1.6.6.1
+
index bf5f1cf..15e2d05 100644 (file)
@@ -5,6 +5,7 @@ SRC_URI[c6accelbin.sha256sum] = "453399a84bf117bd7a91393242c7c005e2829692db5ede1
 
 SRC_URI_append = "file://fix-loadmodule.patch \
                   file://0001-soc-honour-buildsystem-CFLAGS-and-LDFLAGS-when-set.patch \
+                  file://0001-soc-app-fix-makefile-to-pass-Wl-T-before-the-linkers.patch \
                  "
 
 PV = "1_01_00_03"