summaryrefslogtreecommitdiffstats
path: root/meta/conf/machine/include/arm/arch-armv4.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/conf/machine/include/arm/arch-armv4.inc')
-rw-r--r--meta/conf/machine/include/arm/arch-armv4.inc33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/conf/machine/include/arm/arch-armv4.inc b/meta/conf/machine/include/arm/arch-armv4.inc
new file mode 100644
index 0000000..c33c816
--- /dev/null
+++ b/meta/conf/machine/include/arm/arch-armv4.inc
@@ -0,0 +1,33 @@
1DEFAULTTUNE ?= "armv4"
2
3TUNEVALID[armv4] = "Enable instructions for ARMv4"
4TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "armv4", " -march=armv4${ARMPKGSFX_THUMB}", "", d)}"
5# enable --fix-v4bx when we have armv4 in TUNE_FEATURES, but then disable it when we have also armv5 or thumb
6# maybe we should extend bb.utils.contains to support check for any checkvalues in value, now it does
7# checkvalues.issubset(val) which cannot be used for negative test of foo neither bar in value
8FIX_V4BX_ARMV4 = "${@bb.utils.contains("TUNE_FEATURES", "armv4", "--fix-v4bx", "", d)}"
9FIX_V4BX_ARMV5 = "${@bb.utils.contains("TUNE_FEATURES", "armv5", "", "${FIX_V4BX_ARMV4}", d)}"
10FIX_V4BX = "${@bb.utils.contains("TUNE_FEATURES", "thumb", "", "${FIX_V4BX_ARMV5}", d)}"
11TARGET_LD_KERNEL_ARCH += "${FIX_V4BX}"
12MACHINEOVERRIDES =. "${@bb.utils.contains("TUNE_FEATURES", "armv4", "armv4:", "" ,d)}"
13
14require conf/machine/include/arm/arch-arm.inc
15require conf/machine/include/arm/feature-arm-thumb.inc
16
17# Little Endian
18AVAILTUNES += "armv4 armv4t"
19ARMPKGARCH_tune-armv4 ?= "armv4"
20ARMPKGARCH_tune-armv4t ?= "armv4"
21TUNE_FEATURES_tune-armv4 ?= "armv4"
22TUNE_FEATURES_tune-armv4t ?= "${TUNE_FEATURES_tune-armv4} thumb"
23PACKAGE_EXTRA_ARCHS_tune-armv4 = "arm armv4"
24PACKAGE_EXTRA_ARCHS_tune-armv4t = "${PACKAGE_EXTRA_ARCHS_tune-armv4} armv4t"
25
26# Big Endian
27AVAILTUNES += "armv4b armv4tb"
28ARMPKGARCH_tune-armv4b ?= "armv4"
29ARMPKGARCH_tune-armv4tb ?= "armv4"
30TUNE_FEATURES_tune-armv4b ?= "${TUNE_FEATURES_tune-armv4} bigendian"
31TUNE_FEATURES_tune-armv4tb ?= "${TUNE_FEATURES_tune-armv4t} bigendian"
32PACKAGE_EXTRA_ARCHS_tune-armv4b = "armeb armv4b"
33PACKAGE_EXTRA_ARCHS_tune-armv4tb = "${PACKAGE_EXTRA_ARCHS_tune-armv4b} armv4tb"