diff options
Diffstat (limited to 'meta-zephyr-bsp/conf/machine/include/tune-cortexm0.inc')
-rw-r--r-- | meta-zephyr-bsp/conf/machine/include/tune-cortexm0.inc | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/meta-zephyr-bsp/conf/machine/include/tune-cortexm0.inc b/meta-zephyr-bsp/conf/machine/include/tune-cortexm0.inc new file mode 100644 index 0000000..5067eb2 --- /dev/null +++ b/meta-zephyr-bsp/conf/machine/include/tune-cortexm0.inc @@ -0,0 +1,31 @@ +DEFAULTTUNE ?= "cortexm0" + +require conf/machine/include/arm/arch-armv6.inc + +TUNEVALID[cortexm0] = "Enable Cortex-M0 specific processor optimizations" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexm0', ' -mcpu=cortex-m0', '', d)}" +AVAILTUNES += "cortexm0" + +TUNEVALID[no-thumb-interwork] = "Enable thumb mode" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'no-thumb-interwork', ' -mno-thumb-interwork', '', d)}" +AVAILTUNES += "no-thumb-interwork" + +TUNEVALID[no-ffast-math] = "Enable thumb mode" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'no-ffast-math', ' -fno-fast-math', '', d)}" +AVAILTUNES += "no-ffast-math" + +TUNEVALID[soft] = "Enable thumb mode" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'soft', ' -mfloat-abi=soft', '', d)}" +AVAILTUNES += "soft" + +TUNEVALID[armv6m] = "Enable Cortex-M0 specific processor optimizations" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'armv6m', ' -march=armv6-m', '', d)}" +MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'armv6m', 'armv6m:', '' ,d)}" + +ARMPKGARCH:tune-cortexm0 = "cortexm0" +TUNE_FEATURES:tune-cortexm0 = "${TUNE_FEATURES:tune-armv6} cortexm0" + +PACKAGE_EXTRA_ARCHS:tune-cortexm0 = "${PACKAGE_EXTRA_ARCHS:tune-armv6m} cortexm0-vfp" + +TUNE_FEATURES:tune-cortexm0 = "armv6m vfp cortexm0 thumb no-thumb-interwork soft" + |