[oe-commits] Koen Kooi : ti-lpm-module: not using oe_runmake allows us to get rid of all the sed magic

GIT User account git at amethyst.openembedded.net
Thu Oct 30 09:34:17 UTC 2008


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

Author: Koen Kooi <koen at openembedded.org>
Date:   Thu Oct 30 10:30:45 2008 +0100

ti-lpm-module: not using oe_runmake allows us to get rid of all the sed magic

---

 packages/dsplink/ti-lpm-module_2.21.bb |   17 +++++------------
 1 files changed, 5 insertions(+), 12 deletions(-)

diff --git a/packages/dsplink/ti-lpm-module_2.21.bb b/packages/dsplink/ti-lpm-module_2.21.bb
index cbbc5c8..50e5866 100644
--- a/packages/dsplink/ti-lpm-module_2.21.bb
+++ b/packages/dsplink/ti-lpm-module_2.21.bb
@@ -38,20 +38,13 @@ do_compile() {
 	
 	cd ${DSPPOWERSOC}/lpm
 
-	export KERNEL_DIR=${STAGING_KERNEL_DIR}
-	export TOOL_PREFIX=${TARGET_PREFIX} 
-
-	# Different SoCs use different toolchains by default, we just want them to use the OE one, so replace the entries because they can't be overloaded within the environment
-	sed -i -e s:/db/toolsrc/library/tools/vendors/mvl/arm/omap3/OMAP35x_SDK_0.9.7/src/linux/kernel_org/2.6_kernel:${STAGING_KERNEL_DIR}:g \
-           -e s:/db/toolsrc/library/tools/vendors/cs/arm/arm-2007q3/bin/arm-none-linux-gnueabi-:${TARGET_PREFIX}:g \
-           -e s:/db/atree/library/trees/power/power-d02x/imports:${STAGING_DIR}/${MULTIMACH_TARGET_SYS}:g \
-           -e s:/db/toolsrc/library/tools/vendors/mvl/arm/dm6446/REL_LSP_02_00_00_010/montavista/pro/devkit/lsp/ti-davinci/linux-2.6.18_pro500:${STAGING_KERNEL_DIR}:g \
-           -e s:/db/toolsrc/library/tools/vendors/mvl/arm/mvl5.0/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-:${TARGET_PREFIX}:g \
-        Makefile
-
-	oe_runmake KERNEL_PATH=${STAGING_KERNEL_DIR}   \
+	unset LDFLAGS CFLAGS	
+	make   KERNEL_PATH=${STAGING_KERNEL_DIR}   \
            KERNEL_SRC=${STAGING_KERNEL_DIR}    \
+           KERNEL_DIR=${STAGING_KERNEL_DIR}   \
            KERNEL_VERSION=${KERNEL_VERSION}    \
+           TOOL_PREFIX=${TARGET_PREFIX} \
+           DSPLINK_REPO=${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/ \
            CC="${KERNEL_CC}" LD="${KERNEL_LD}" \
            AR="${KERNEL_AR}"
 }





More information about the Openembedded-commits mailing list