blob: fac26cf4ad3fbb9c1d2fa04dfb5259b266b1847c [file] [log] [blame]
Andrew Geisslerd159c7f2021-09-02 21:05:58 -05001#
2# Defaults for ARMv7-r
3#
4DEFAULTTUNE ?= "armv7r"
5
6TUNEVALID[armv7r] = "Enable instructions for ARMv7-r"
7TUNE_CCARGS_MARCH = "${@bb.utils.contains('TUNE_FEATURES', 'armv7r', ' -march=armv7-r', '', d)}"
8MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'armv7r', 'armv7r:', '', d)}"
9
10TUNECONFLICTS[armv7r] = "armv4 armv5 armv6 armv7a"
11
12require conf/machine/include/arm/arch-armv6.inc
13require conf/machine/include/arm/feature-arm-idiv.inc
14require conf/machine/include/arm/feature-arm-neon.inc
15
16AVAILTUNES += "armv7r armv7r-vfpv3d16"
17ARMPKGARCH:tune-armv7r = "armv7r"
18ARMPKGARCH:tune-armv7r-vfpv3d16 = "armv7r"
19TUNE_FEATURES:tune-armv7r = "armv7r"
20TUNE_FEATURES:tune-armv7r-vfpv3d16 = "${TUNE_FEATURES:tune-armv7r} vfpv3d16"
21PACKAGE_EXTRA_ARCHS:tune-armv7r = "armv7r"
22PACKAGE_EXTRA_ARCHS:tune-armv7r-vfpv3d16 = "${PACKAGE_EXTRA_ARCHS:tune-armv7r} tune-armv7r-fpv3d16"