summaryrefslogtreecommitdiff
path: root/meta/conf/machine/include/tune-cortexm3.inc
blob: 85408ebb2a87e229203f8d5b394e620db547aa6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
DEFAULTTUNE ?= "cortexm3"
ARMPKGARCH ?= "armv7m"

require conf/machine/include/arm/arch-armv7a.inc

TUNEVALID[cortexm3] = "Enable Cortex-M3 specific processor optimizations"
TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "cortexm3", "-mtune=cortex-m3", "", d)}"

TUNEVALID[armv7m] = "Enable Cortex-M3 specific processor optimizations"
TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "armv7m", "-march=armv7-m", "", d)}"

AVAILTUNES += "cortexm3"
TUNE_FEATURES_tune-cortexm3 = "armv7m vfp cortexm3"
PACKAGE_EXTRA_ARCHS_tune-cortexm3 = "${PACKAGE_EXTRA_ARCHS_tune-armv7at} armv7m"