aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2006-11-05 16:03:02 +0000
committerKoen Kooi <koen@openembedded.org>2006-11-05 16:03:02 +0000
commit5edf1cb3ea3e4278ef3102739a96d88365cba4d4 (patch)
tree06f6bfb1c07ce6f01c0b6cfc04b0175b51e46451 /packages
parent262d81e1f869511aee27af68e284605dfdd7b27f (diff)
downloadopenembedded-5edf1cb3ea3e4278ef3102739a96d88365cba4d4.tar.gz
ixp4xx-kernel.inc: set mandatory COMPATIBLE_MACHINE and add EABI magic
Diffstat (limited to 'packages')
-rw-r--r--packages/linux/ixp4xx-kernel.inc18
1 files changed, 16 insertions, 2 deletions
diff --git a/packages/linux/ixp4xx-kernel.inc b/packages/linux/ixp4xx-kernel.inc
index c01c5f534a..28c321e079 100644
--- a/packages/linux/ixp4xx-kernel.inc
+++ b/packages/linux/ixp4xx-kernel.inc
@@ -145,7 +145,8 @@ IXP4XX_PATCHES ?= ""
SRC_URI = "${IXP4XX_SRCURI}"
SRC_URI += "${IXP4XX_PATCHES}"
-COMPATIBLE_HOST = 'arm.*-linux'
+COMPATIBLE_HOST = 'arm.*-linux.*'
+COMPATIBLE_MACHINE = '(ixp4xx|loft|nslu2|nas100d|dsmg600|fsg3)'
inherit kernel
@@ -197,13 +198,26 @@ do_configure_prepend() {
then
echo 'CONFIG_JFFS2_LITTLE_ENDIAN=y' >>'${S}/.config'
fi
- sed -e '/CONFIG_CPU_BIG_ENDIAN/d' -e '/CONFIG_CMDLINE=/d' \
+
+ if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibcgnueabi" ]; then
+ echo "CONFIG_AEABI=y" >> ${S}/.config
+ echo "CONFIG_OABI_COMPAT=y" >> ${S}/.config
+ else
+ echo "# CONFIG_AEABI is not set" >> ${S}/.config
+ echo "# CONFIG_OABI_COMPAT is not set" >> ${S}/.config
+ fi
+
+ sed -e '/CONFIG_CPU_BIG_ENDIAN/d' \
+ -e '/CONFIG_CMDLINE=/d' \
-e '/CONFIG_JFFS2_NATIVE_ENDIAN=/d' \
-e '/CONFIG_JFFS2_BIG_ENDIAN=/d' \
-e '/CONFIG_JFFS2_LITTLE_ENDIAN=/d' \
+ -e '/CONFIG_AEABI/d' \
+ -e '/CONFIG_OABI_COMPAT=/d' \
'${WORKDIR}/defconfig' >>'${S}/.config'
rm -rf ${S}/include/asm-arm/arch ${S}/include/asm-arm/proc \
${S}/include/asm-arm/.proc ${S}/include/asm-arm/.arch
+
}
# MACHID and LE handling