busybox 1.2.0: fix horrendous bug where busybox wouldn't use the crosscompiler, spott...
authorKoen Kooi <koen@openembedded.org>
Fri, 7 Jul 2006 12:02:15 +0000 (12:02 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Fri, 7 Jul 2006 12:02:15 +0000 (12:02 +0000)
packages/busybox/busybox_1.2.0.bb

index f386304..29c6924 100644 (file)
@@ -10,6 +10,7 @@ HOMEPAGE = "http://www.busybox.net"
 LICENSE = "GPL"
 SECTION = "base"
 PRIORITY = "required"
+PR = "r1"
 
 DEFAULT_PREFERENCE = "-1"
 
@@ -58,7 +59,14 @@ INITSCRIPT_PARAMS_${PN}_openslug = "start 20 ."
 inherit cml1 update-rc.d
 
 do_configure () {
-       install -m 0644 ${WORKDIR}/defconfig ${S}/.config
+       install -m 0644 ${WORKDIR}/defconfig ${S}/.config.oe
+
+       echo "CROSS_COMPILER_PREFIX=\"${TARGET_PREFIX}\"" > ${S}/.config
+       echo "USING_CROSS_COMPILER=y" >> ${S}/.config
+
+       sed -e  '/CROSS_COMPILER_PREFIX/d' \
+           -e  '/USING_CROSS_COMPILER/d' \
+               '${S}/.config.oe' >>'${S}/.config'
        cml1_do_configure
 }