ti-dmai: fix build with recent kernel headers and recent toolchains
authorKoen Kooi <koen@openembedded.org>
Wed, 5 Jan 2011 12:34:49 +0000 (13:34 +0100)
committerKoen Kooi <koen@openembedded.org>
Wed, 5 Jan 2011 12:53:36 +0000 (13:53 +0100)
Signed-off-by: Koen Kooi <koen@openembedded.org>
recipes/ti/ti-dmai.inc
recipes/ti/ti-dmai_svn.bb

index 1bdaee1..dff11ca 100644 (file)
@@ -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}
index de86b18..f7a5496 100644 (file)
@@ -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"