Patrick Williams | 0ca19cc | 2021-08-16 14:03:13 -0500 | [diff] [blame] | 1 | # |
| 2 | # Defaults for ARMv8-m.main |
| 3 | # |
| 4 | DEFAULTTUNE ?= "armv8m-main" |
| 5 | |
| 6 | require conf/machine/include/arm/arch-armv8m-base.inc |
| 7 | |
| 8 | TUNEVALID[armv8m-main] = "Enable instructions for ARMv8-m.main" |
| 9 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'armv8m-main', ' -march=armv8-m.main${MARCH_DSP}${MARCH_FPU}', '', d)}" |
| 10 | MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'armv8m-main', 'armv8m-main:', '', d)}" |
| 11 | |
| 12 | TUNECONFLICTS[armv8m-main] = "armv4 armv5 armv6 armv7a" |
| 13 | |
| 14 | # FIXME - below taken from meta/conf/machine/include/arm/arch-armv5-dsp.inc and should be put into something more generic |
| 15 | TUNEVALID[dsp] = "ARM DSP functionality" |
| 16 | ARMPKGSFX_DSP = "${@bb.utils.contains('TUNE_FEATURES', [ 'dsp' ], 'e', '', d)}" |
| 17 | MARCH_DSP = "${@bb.utils.contains('TUNE_FEATURES', [ 'dsp' ], '+dsp', '+nodsp', d)}" |
| 18 | |
| 19 | # FIXME - Below belongs in meta/conf/machine/include/arm/feature-arm-neon.inc |
| 20 | TUNEVALID[vfpv5spd16] = "Enable Vector Floating Point Version 5, Single Precision. with 16 registers (fpv5-sp-d16) unit." |
| 21 | TUNE_CCARGS_MFPU .= "${@bb.utils.contains('TUNE_FEATURES', 'vfpv5spd16', 'fpv5-sp-d16', '', d)}" |
| 22 | MARCH_FPU = "${@bb.utils.contains('TUNE_FEATURES', [ 'vfpv5spd16' ], '+fp', '+nofp', d)}" |
| 23 | |
| 24 | AVAILTUNES += "armv8m-main armv8m-mainearmv8m-main-vfpv5spd16 armv8m-maine-vfpv5spd16" |
| 25 | ARMPKGARCH:tune-armv8m-main = "armv8m-main" |
| 26 | ARMPKGARCH:tune-armv8m-maine = "armv8m-main" |
| 27 | ARMPKGARCH:tune-armv8m-main-vfpv5spd16 = "armv8m-main" |
| 28 | ARMPKGARCH:tune-armv8m-maine-vfpv5spd16 = "armv8m-main" |
| 29 | TUNE_FEATURES:tune-armv8m-main = "armv8m-main" |
| 30 | TUNE_FEATURES:tune-armv8m-maine = "${TUNE_FEATURES:tune-armv8m-main} dsp" |
| 31 | TUNE_FEATURES:tune-armv8m-main-vfpv5spd16 = "${TUNE_FEATURES:tune-armv8m-main} vfpv5spd16" |
| 32 | TUNE_FEATURES:tune-armv8m-maine-vfpv5spd16 = "${TUNE_FEATURES:tune-armv8m-main-vfpv5spd16} dsp" |
| 33 | PACKAGE_EXTRA_ARCHS:tune-armv8m-main = "armv8m-main" |
| 34 | PACKAGE_EXTRA_ARCHS:tune-armv8m-maine = "${PACKAGE_EXTRA_ARCHS:tune-armv8m-main} armv8m-maine" |
| 35 | PACKAGE_EXTRA_ARCHS:tune-armv8m-main-vfpv5spd16 = "${PACKAGE_EXTRA_ARCHS:tune-armv8m-main} armv8m-main-fpv5-spd16" |
| 36 | PACKAGE_EXTRA_ARCHS:tune-armv8m-maine-vfpv5spd16 = "${PACKAGE_EXTRA_ARCHS:tune-armv8m-main} armv8m-maine-fpv5-spd16" |