aboutsummaryrefslogtreecommitdiffstats
path: root/meta-zephyr-bsp/conf/machine/include/tune-cortexm3.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta-zephyr-bsp/conf/machine/include/tune-cortexm3.inc')
-rw-r--r--meta-zephyr-bsp/conf/machine/include/tune-cortexm3.inc21
1 files changed, 21 insertions, 0 deletions
diff --git a/meta-zephyr-bsp/conf/machine/include/tune-cortexm3.inc b/meta-zephyr-bsp/conf/machine/include/tune-cortexm3.inc
new file mode 100644
index 0000000..404e2b7
--- /dev/null
+++ b/meta-zephyr-bsp/conf/machine/include/tune-cortexm3.inc
@@ -0,0 +1,21 @@
+DEFAULTTUNE ?= "cortexm3"
+
+require conf/machine/include/arm/arch-armv7a.inc
+
+TUNEVALID[cortexm3] = "Enable Cortex-M3 specific processor optimizations"
+TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexm3', ' -mcpu=cortex-m3', '', d)}"
+AVAILTUNES += "cortexm3"
+
+TUNEVALID[armv7m] = "Enable Cortex-M3 specific processor optimizations"
+TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'armv7m', ' -march=armv7-m', '', d)}"
+MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'armv7m', 'armv7m:', '' ,d)}"
+
+TUNE_PKGARCH:tune-cortexm3 = "cortexm3"
+
+ARMPKGARCH:tune-cortexm3 = "armv7m"
+PACKAGE_EXTRA_ARCHS:tune-cortexm3 ="cortexm3"
+
+TUNE_FEATURES:tune-cortexm3 = "armv7m vfp cortexm3"
+PACKAGE_EXTRA_ARCHS:tune-cortexm3 = "${PACKAGE_EXTRA_ARCHS:tune-armv7at} armv7m-vfp"
+
+TUNE_CCARGS_MFLOAT = "soft"