aboutsummaryrefslogtreecommitdiffstats
path: root/conf/distro/include/slugos.inc
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2010-07-21 15:42:40 -0700
committerKoen Kooi <koen@openembedded.org>2010-07-24 09:39:15 +0200
commit63040b62cbfeec043a229ab240006b104533d08f (patch)
tree360fbd593377082b0e3281eb07f1d006cab9695c /conf/distro/include/slugos.inc
parent5b4a88983b3545f8f894fcbaa420b884f4e13631 (diff)
downloadopenembedded-63040b62cbfeec043a229ab240006b104533d08f.tar.gz
distro: Add new feature to indicate thumb-interworking.
* This would be used to decide if we can use BX in return instructions in uclibc. Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'conf/distro/include/slugos.inc')
-rw-r--r--conf/distro/include/slugos.inc9
1 files changed, 9 insertions, 0 deletions
diff --git a/conf/distro/include/slugos.inc b/conf/distro/include/slugos.inc
index 807d45de61..8d53ffc0ec 100644
--- a/conf/distro/include/slugos.inc
+++ b/conf/distro/include/slugos.inc
@@ -23,9 +23,18 @@ DISTRO_VERSION ?= "${SLUGOS_VERSION}${DISTRO_REVISION}-${DISTRO_TYPE}"
# DISTRO_FEED ?= "${SLUGOS_VERSION}-${DISTRO_TYPE}"
DISTRO_FEED ?= "unstable"
+THUMB_INTERWORK = "yes"
+# "yes" "no"
+# Whether to compile with code to allow interworking between the two
+# instruction sets. This allows thumb code to be executed on a primarily
+# arm system and vice versa. It is strongly recommended that DISTROs not
+# turn this off - the actual cost is very small.
# We want images supporting the following features (for task-base)
DISTRO_FEATURES = "nfs smbfs wifi ppp alsa bluetooth ext2 vfat irda pcmcia usbgadget usbhost pci"
+# Add thumb-interwork to feature list if selected machine supports it.
+DISTRO_FEATURES += ' ${@["", "thumb-interwork"][bb.data.getVar('THUMB_INTERWORK', d, 1) == "yes"]}'
+
IMAGE_BASENAME = "${@['slugos${SITEINFO_ENDIANESS}', 'ucslugc'][bb.data.getVar('TARGET_OS', d, 1) == 'linux-uclibc']}"
# The following need not be set, the defaults should be adequate