[oe-commits] Koen Kooi : ti-dmai: fix build with recent kernel headers and recent toolchains
git version control
git at git.openembedded.org
Wed Jan 5 12:55:22 UTC 2011
Module: openembedded.git
Branch: org.openembedded.dev
Commit: ff1cf74a1d8ea22035405eeab3b0422dd12da26e
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=ff1cf74a1d8ea22035405eeab3b0422dd12da26e
Author: Koen Kooi <koen at openembedded.org>
Date: Wed Jan 5 13:34:49 2011 +0100
ti-dmai: fix build with recent kernel headers and recent toolchains
Signed-off-by: Koen Kooi <koen at openembedded.org>
---
recipes/ti/ti-dmai.inc | 10 ++++++++++
recipes/ti/ti-dmai_svn.bb | 2 +-
2 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/recipes/ti/ti-dmai.inc b/recipes/ti/ti-dmai.inc
index 1bdaee1..dff11ca 100644
--- a/recipes/ti/ti-dmai.inc
+++ b/recipes/ti/ti-dmai.inc
@@ -81,6 +81,16 @@ do_prepsources() {
addtask prepsources after do_unpack before do_patch
do_compile () {
+ # Recent kernel headers warn against inclusion from userspace
+ for makefile in $(find ${S} -name "Makefile") ; do
+ sed -i -e s:-Werror::g $makefile
+ done
+
+ # Fix up linkerscripts, recent toolchains need -T to prepend the default script to the custom one
+ for appmakefile in $(find ${S} -name "Makefile.app") ; do
+ sed -i -e 's: $(XDC_CFG)/linker.cmd: -Wl,-T,$(XDC_CFG)/linker.cmd:g' $appmakefile
+ done
+
# TODO :: Why do we do this?
unset DMAI_INSTALL_DIR
cd ${S}
diff --git a/recipes/ti/ti-dmai_svn.bb b/recipes/ti/ti-dmai_svn.bb
index de86b18..f7a5496 100644
--- a/recipes/ti/ti-dmai_svn.bb
+++ b/recipes/ti/ti-dmai_svn.bb
@@ -9,7 +9,7 @@ PV = "2_10_00_01+svnr${SRCPV}"
# This package has high dependence on kernel, use kernel PR as base and append a local version
PR = "${MACHINE_KERNEL_PR}"
-PR_append = "l"
+PR_append = "m"
DMAIBRANCH_dm6446 = "trunk"
DMAIBRANCH_dm6467 = "branches/GITPSP_INT_101009"
More information about the Openembedded-commits
mailing list