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 |
Andrew Geissler | d159c7f | 2021-09-02 21:05:58 -0500 | [diff] [blame] | 7 | require conf/machine/include/arm/feature-arm-dsp.inc |
| 8 | require conf/machine/include/arm/feature-arm-neon.inc |
Patrick Williams | 0ca19cc | 2021-08-16 14:03:13 -0500 | [diff] [blame] | 9 | |
| 10 | TUNEVALID[armv8m-main] = "Enable instructions for ARMv8-m.main" |
Andrew Geissler | d159c7f | 2021-09-02 21:05:58 -0500 | [diff] [blame] | 11 | TUNE_CCARGS_MARCH .= "${@bb.utils.contains('TUNE_FEATURES', 'armv8m-main', ' -march=armv8-m.main', '', d)}" |
Patrick Williams | 0ca19cc | 2021-08-16 14:03:13 -0500 | [diff] [blame] | 12 | MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'armv8m-main', 'armv8m-main:', '', d)}" |
| 13 | |
| 14 | TUNECONFLICTS[armv8m-main] = "armv4 armv5 armv6 armv7a" |
| 15 | |
Andrew Geissler | d159c7f | 2021-09-02 21:05:58 -0500 | [diff] [blame] | 16 | AVAILTUNES += "armv8m-main armv8m-maine armv8m-main-vfpv5spd16 armv8m-maine-vfpv5spd16" |
Patrick Williams | 0ca19cc | 2021-08-16 14:03:13 -0500 | [diff] [blame] | 17 | ARMPKGARCH:tune-armv8m-main = "armv8m-main" |
| 18 | ARMPKGARCH:tune-armv8m-maine = "armv8m-main" |
| 19 | ARMPKGARCH:tune-armv8m-main-vfpv5spd16 = "armv8m-main" |
| 20 | ARMPKGARCH:tune-armv8m-maine-vfpv5spd16 = "armv8m-main" |
| 21 | TUNE_FEATURES:tune-armv8m-main = "armv8m-main" |
| 22 | TUNE_FEATURES:tune-armv8m-maine = "${TUNE_FEATURES:tune-armv8m-main} dsp" |
| 23 | TUNE_FEATURES:tune-armv8m-main-vfpv5spd16 = "${TUNE_FEATURES:tune-armv8m-main} vfpv5spd16" |
| 24 | TUNE_FEATURES:tune-armv8m-maine-vfpv5spd16 = "${TUNE_FEATURES:tune-armv8m-main-vfpv5spd16} dsp" |
| 25 | PACKAGE_EXTRA_ARCHS:tune-armv8m-main = "armv8m-main" |
| 26 | PACKAGE_EXTRA_ARCHS:tune-armv8m-maine = "${PACKAGE_EXTRA_ARCHS:tune-armv8m-main} armv8m-maine" |
| 27 | PACKAGE_EXTRA_ARCHS:tune-armv8m-main-vfpv5spd16 = "${PACKAGE_EXTRA_ARCHS:tune-armv8m-main} armv8m-main-fpv5-spd16" |
| 28 | PACKAGE_EXTRA_ARCHS:tune-armv8m-maine-vfpv5spd16 = "${PACKAGE_EXTRA_ARCHS:tune-armv8m-main} armv8m-maine-fpv5-spd16" |