blob: 2b69a3dfd142d88a6af0b777408bf26d61095b58 [file] [log] [blame]
Patrick Williams0ca19cc2021-08-16 14:03:13 -05001#
2# Defaults for ARMv7-m
3#
4DEFAULTTUNE ?= "armv7m"
5
6TUNEVALID[armv7m] = "Enable instructions for ARMv7-m"
Andrew Geisslerd159c7f2021-09-02 21:05:58 -05007TUNE_CCARGS_MARCH .= "${@bb.utils.contains('TUNE_FEATURES', 'armv7m', ' -march=armv7-m', '', d)}"
Patrick Williams0ca19cc2021-08-16 14:03:13 -05008MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'armv7m', 'armv7m:', '', d)}"
9
10TUNECONFLICTS[armv7m] = "armv4 armv5 armv6 armv7a"
11
12require conf/machine/include/arm/arch-armv6m.inc
13
14AVAILTUNES += "armv7m"
15ARMPKGARCH:tune-armv7m = "armv7m"
16TUNE_FEATURES:tune-armv7m = "armv7m"
17PACKAGE_EXTRA_ARCHS:tune-armv7m = "armv7m"