mirror of
https://git.yoctoproject.org/meta-zephyr
synced 2026-01-29 21:58:41 +01:00
This commit restructures meta-zephyr into meta-zephyr-core and meta-zephyr-bsp. It moves machine definitions into meta-zephyr-bsp in preparation for adding the autogenerated zephyr machines. Signed-off-by: Eilís Ní Fhlannagáin <elizabeth.flanagan@huawei.com> Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
32 lines
1.3 KiB
HTML
32 lines
1.3 KiB
HTML
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"
|
|
|