aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Richardson <jonathan.richardson@broadcom.com>2020-09-23 15:31:09 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-09-28 14:15:45 +0100
commit8964fa6491f54602b3789e5314f4dab7213eaa0e (patch)
tree91acfcaf04d325520c55ae1e57f3feab7f2c8738
parentfe99349c1bd72b69d22ab0dc52b8825d3157b8e7 (diff)
downloadopenembedded-core-contrib-8964fa6491f54602b3789e5314f4dab7213eaa0e.tar.gz
openembedded-core-contrib-8964fa6491f54602b3789e5314f4dab7213eaa0e.tar.bz2
openembedded-core-contrib-8964fa6491f54602b3789e5314f4dab7213eaa0e.zip
cortex-m0.inc: Add tuning for cortex-m0
Add tuning for ARM cortex-m0. Signed-off-by: Jonathan Richardson <jonathan.richardson@broadcom.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/conf/machine/include/tune-cortex-m0.inc11
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/conf/machine/include/tune-cortex-m0.inc b/meta/conf/machine/include/tune-cortex-m0.inc
new file mode 100644
index 0000000000..a59c8af941
--- /dev/null
+++ b/meta/conf/machine/include/tune-cortex-m0.inc
@@ -0,0 +1,11 @@
+DEFAULTTUNE ?= "cortexm0"
+require conf/machine/include/arm/arch-armv6m.inc
+
+TUNEVALID[cortexm0] = "Enable Cortex-M0 specific processor optimizations"
+TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexm0', ' -mcpu=cortex-m0', '', d)}"
+AVAILTUNES += "cortexm0"
+
+ARMPKGARCH_tune-cortexm0 = "cortexm0"
+TUNE_FEATURES_tune-cortexm0 = "${TUNE_FEATURES_tune-armv6m} cortexm0"
+
+PACKAGE_EXTRA_ARCHS_tune-cortexm0 = "${PACKAGE_EXTRA_ARCHS_tune-armv6m} cortexm0"