aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2008-10-15 19:11:12 +0200
committerKoen Kooi <koen@openembedded.org>2008-10-15 19:12:16 +0200
commit201e05c72b20fc1401858461bc9ee7bfaa369dc4 (patch)
tree67642eade2e1dc123ed6874ce174ea531ab37be3
parent876091d0f3610d6b08335c1735ef043d58f9fb10 (diff)
downloadopenembedded-201e05c72b20fc1401858461bc9ee7bfaa369dc4.tar.gz
linux.inc: add switch to turn of OABI compat for arm kernels
-rw-r--r--packages/linux/linux.inc9
1 files changed, 8 insertions, 1 deletions
diff --git a/packages/linux/linux.inc b/packages/linux/linux.inc
index a6bffe728a..58b660a2eb 100644
--- a/packages/linux/linux.inc
+++ b/packages/linux/linux.inc
@@ -6,6 +6,9 @@ inherit kernel
RPSRC = "http://www.rpsys.net/openzaurus/patches/archive"
+# Enable OABI compat for people stuck with obsolete userspace
+ARM_KEEP_OABI ?= "1"
+
# Specify the commandline for your device
# Boot from mmc
@@ -59,7 +62,11 @@ do_configure_prepend() {
#
if [ "${TARGET_OS}" = "linux-gnueabi" -o "${TARGET_OS}" = "linux-uclibcgnueabi" ]; then
echo "CONFIG_AEABI=y" >> ${S}/.config
- echo "CONFIG_OABI_COMPAT=y" >> ${S}/.config
+ if [ "${ARM_KEEP_OABI}" = "1" ] ; then
+ echo "CONFIG_OABI_COMPAT=y" >> ${S}/.config
+ else
+ echo "# CONFIG_OABI_COMPAT is not set" >> ${S}/.config
+ fi
else
echo "# CONFIG_AEABI is not set" >> ${S}/.config
echo "# CONFIG_OABI_COMPAT is not set" >> ${S}/.config