ti-ocf-crypto-module: remove hardcodes from makefile
authorKoen Kooi <koen@openembedded.org>
Thu, 6 Jan 2011 16:12:34 +0000 (17:12 +0100)
committerKoen Kooi <koen@openembedded.org>
Thu, 6 Jan 2011 16:13:55 +0000 (17:13 +0100)
Signed-off-by: Koen Kooi <koen@openembedded.org>
recipes/ti/ti-ocf-crypto-module_1.0.bb

index 3f8f248..92c6cb0 100644 (file)
@@ -17,6 +17,11 @@ 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=arm-none-linux-gnueabi-::g' Makefile
+}
+
 do_install () {
         install -d ${D}/lib/modules/${KERNEL_VERSION}/crypto/ocf/
         install -m 0755 ${S}/ocf_omap3_cryptok.ko ${D}/lib/modules/${KERNEL_VERSION}/crypto/ocf/