summaryrefslogtreecommitdiffstats
path: root/meta/conf/machine/include/tune-cortexm4.inc
diff options
context:
space:
mode:
authorJon Mason <jdmason@kudzu.us>2021-08-10 17:36:33 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-08-13 14:44:02 +0100
commita9ff58f4cc1b45145fc1576c7eacabaea64b7bd4 (patch)
tree5e0ba2ec5cc84e1401edb1ceeb63a9042ef44ad1 /meta/conf/machine/include/tune-cortexm4.inc
parent942c06a7348070b92f722fa5c439c8c4404485b7 (diff)
downloadopenembedded-core-contrib-a9ff58f4cc1b45145fc1576c7eacabaea64b7bd4.tar.gz
tune-cortexm*: add support for all Arm Cortex-M processors
Add tune entries for all Arm Cortex-M processors currently supported in GCC (that are not currently present). The ARMv7 entries were added in conf/machine/include/ to match the existing Cortex-M and Cortex-A tune files. The ARMv8 entries were added to conf/machine/include/arm/armv8-m to match how ARMv8 was done for Cortex-A processor tune files. Signed-off-by: Jon Mason <jdmason@kudzu.us> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/machine/include/tune-cortexm4.inc')
-rw-r--r--meta/conf/machine/include/tune-cortexm4.inc14
1 files changed, 14 insertions, 0 deletions
diff --git a/meta/conf/machine/include/tune-cortexm4.inc b/meta/conf/machine/include/tune-cortexm4.inc
new file mode 100644
index 0000000000..e86622ff3d
--- /dev/null
+++ b/meta/conf/machine/include/tune-cortexm4.inc
@@ -0,0 +1,14 @@
+#
+# Tune Settings for Cortex-M4
+#
+DEFAULTTUNE ?= "cortexm4"
+
+TUNEVALID[cortexm4] = "Enable Cortex-M4 specific processor optimizations"
+TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexm4', ' -mcpu=cortex-m4', '', d)}"
+
+require conf/machine/include/arm/arch-armv7em.inc
+
+AVAILTUNES += "cortexm4"
+ARMPKGARCH:tune-cortexm4 = "cortexm4"
+TUNE_FEATURES:tune-cortexm4 = "${TUNE_FEATURES:tune-armv7em} cortexm4"
+PACKAGE_EXTRA_ARCHS:tune-cortexm4 = "${PACKAGE_EXTRA_ARCHS:tune-armv7em} cortexm4"