Patrick Williams | 0ca19cc | 2021-08-16 14:03:13 -0500 | [diff] [blame] | 1 | # |
| 2 | # Defaults for ARMv7-m |
| 3 | # |
| 4 | DEFAULTTUNE ?= "armv7m" |
| 5 | |
| 6 | TUNEVALID[armv7m] = "Enable instructions for ARMv7-m" |
Andrew Geissler | d159c7f | 2021-09-02 21:05:58 -0500 | [diff] [blame] | 7 | TUNE_CCARGS_MARCH .= "${@bb.utils.contains('TUNE_FEATURES', 'armv7m', ' -march=armv7-m', '', d)}" |
Patrick Williams | 0ca19cc | 2021-08-16 14:03:13 -0500 | [diff] [blame] | 8 | MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'armv7m', 'armv7m:', '', d)}" |
| 9 | |
| 10 | TUNECONFLICTS[armv7m] = "armv4 armv5 armv6 armv7a" |
| 11 | |
| 12 | require conf/machine/include/arm/arch-armv6m.inc |
| 13 | |
| 14 | AVAILTUNES += "armv7m" |
| 15 | ARMPKGARCH:tune-armv7m = "armv7m" |
| 16 | TUNE_FEATURES:tune-armv7m = "armv7m" |
| 17 | PACKAGE_EXTRA_ARCHS:tune-armv7m = "armv7m" |