[oe-commits] Koen Kooi : ti-pru-sw-edma-driver: remove hardcodes from makefile

git version control git at git.openembedded.org
Sat Jan 8 09:43:39 UTC 2011


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 2f1b81eb90e1259c55fe0b7e904c1e3a5d7614a0
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=2f1b81eb90e1259c55fe0b7e904c1e3a5d7614a0

Author: Koen Kooi <koen at openembedded.org>
Date:   Sat Jan  8 10:25:38 2011 +0100

ti-pru-sw-edma-driver: remove hardcodes from makefile

Signed-off-by: Koen Kooi <koen at openembedded.org>

---

 recipes/ti/ti-pru-sw-edma-driver_1.00.00.bb |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/recipes/ti/ti-pru-sw-edma-driver_1.00.00.bb b/recipes/ti/ti-pru-sw-edma-driver_1.00.00.bb
index 5747f3d..1d3676f 100644
--- a/recipes/ti/ti-pru-sw-edma-driver_1.00.00.bb
+++ b/recipes/ti/ti-pru-sw-edma-driver_1.00.00.bb
@@ -14,6 +14,11 @@ PACKAGE_STRIP = "no"
 inherit module
 PR = "${MACHINE_KERNEL_PR}+svnr${SRCPV}"
 
+# Fix silly hardcodes, module.bbclass puts in the *correct* values
+do_compile_prepend() {
+       sed -i 's:ARCH=arm CROSS_COMPILE=$(CSTOOL_PREFIX)::g' Makefile
+}
+
 do_install () {
         install -d ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/pru
         install -m 0755 ${S}/edmautils.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/pru/





More information about the Openembedded-commits mailing list