summaryrefslogtreecommitdiff
path: root/meta-openbmc-bsp
diff options
context:
space:
mode:
authorXo Wang <xow@google.com>2018-01-17 05:44:17 +0300
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-01-23 20:03:00 +0300
commitb43a0a8888189acaac67e09b28aabfa338041a84 (patch)
tree93d117bfc497616dc9c08e5b3334c34c07a710b8 /meta-openbmc-bsp
parent4bc9ca81b59a4c5cb122a136b1c41a4d99ada02d (diff)
downloadopenbmc-b43a0a8888189acaac67e09b28aabfa338041a84.tar.xz
meta-ast2500: Add tune file for ARM1176JZ-S
Add a tune file for the ARM1176JZ-S without the VFP FPU. The Raspberry Pi machine layer contains a tune file for ARM1176JZF-S which has a VFP FPU. In addition to adding a core-specific compiler tuning option, this tune enables packages to be compiled to emit Thumb instructions if ARM_INSTRUCTION_SET = "thumb" which will generate slower but more compact code. Note that packages default to ARM-only code and even if enabled, the compiler may choose not to emit Thumb code. Packages built with Thumb support will have this reflected in the naming (armv6t instead of armv6) but the architecture name will remain armv6. Tested: Included the file into the build and verified it has no effect. Signed-off-by: Xo Wang <xow@google.com> Change-Id: Icad4be206b384e9b5157423b6c7880f0bd1dd3a3
Diffstat (limited to 'meta-openbmc-bsp')
-rw-r--r--meta-openbmc-bsp/meta-aspeed/meta-ast2500/conf/machine/include/tune-arm1176jz-s.inc11
1 files changed, 11 insertions, 0 deletions
diff --git a/meta-openbmc-bsp/meta-aspeed/meta-ast2500/conf/machine/include/tune-arm1176jz-s.inc b/meta-openbmc-bsp/meta-aspeed/meta-ast2500/conf/machine/include/tune-arm1176jz-s.inc
new file mode 100644
index 000000000..5216533eb
--- /dev/null
+++ b/meta-openbmc-bsp/meta-aspeed/meta-ast2500/conf/machine/include/tune-arm1176jz-s.inc
@@ -0,0 +1,11 @@
+DEFAULTTUNE ?= "armv6t-novfp"
+
+require conf/machine/include/arm/arch-armv6.inc
+
+TUNEVALID[arm1176jzs] = "Enable arm1176jzs specific processor optimizations"
+TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "arm1176jzs", "-mtune=arm1176jz-s", "", d)}"
+
+AVAILTUNES += "arm1176jzs"
+ARMPKGARCH_tune-arm1176jzs = "${ARMPKGARCH_tune-armv6t-novfp}"
+TUNE_FEATURES_tune-arm1176jzs = "${TUNE_FEATURES_tune-armv6t-novfp} arm1176jzs"
+PACKAGE_EXTRA_ARCHS_tune-arm1176jzs = "${PACKAGE_EXTRA_ARCHS_tune-armv6t-novfp}"