aboutsummaryrefslogtreecommitdiffstats
path: root/conf/machine/include/tune-xscale.inc
diff options
context:
space:
mode:
Diffstat (limited to 'conf/machine/include/tune-xscale.inc')
-rw-r--r--conf/machine/include/tune-xscale.inc9
1 files changed, 9 insertions, 0 deletions
diff --git a/conf/machine/include/tune-xscale.inc b/conf/machine/include/tune-xscale.inc
new file mode 100644
index 0000000..f0f58bc
--- /dev/null
+++ b/conf/machine/include/tune-xscale.inc
@@ -0,0 +1,9 @@
+# this depends on fact that for ARM the TARGET_ARCH is 'arm' for little endian and 'armeb' for bigendian
+# this is the case as of now for all arm machines in OE.
+
+FEED_ARCH = "${@['armv5teb', 'armv5te'][bb.data.getVar('TARGET_ARCH', d, 1) == 'arm']}"
+
+TARGET_CC_ARCH = "-march=armv5te -mtune=xscale"
+TARGET_CC_KERNEL_ARCH = "-march=armv5te -mtune=xscale"
+PACKAGE_EXTRA_ARCHS += "${@['armv4b armv4tb armv5teb', 'armv4 armv4t armv5te'][ bb.data.getVar('TARGET_ARCH', d, 1) == 'arm']}"
+BASE_PACKAGE_ARCH = "${@['armv5teb', 'armv5te'][bb.data.getVar('TARGET_ARCH', d, 1) == 'arm']}"