1DEFAULTTUNE ?= "armv8a-crc"
2
3TUNEVALID[armv8a] = "Enable instructions for ARMv8-a"
4TUNE_CCARGS_MARCH .= "${@bb.utils.contains('TUNE_FEATURES', 'armv8a', ' -march=armv8-a', '', d)}"
5MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'armv8a', 'armv8a:', '', d)}"
6
7require conf/machine/include/arm/arch-arm64.inc
8require conf/machine/include/arm/feature-arm-crc.inc
9require conf/machine/include/arm/feature-arm-crypto.inc
10
11# Little Endian base configs
12AVAILTUNES += "armv8a armv8a-crc armv8a-crc-crypto armv8a-crypto"
13ARMPKGARCH:tune-armv8a                    ?= "armv8a"
14ARMPKGARCH:tune-armv8a-crc                ?= "armv8a"
15ARMPKGARCH:tune-armv8a-crypto             ?= "armv8a"
16ARMPKGARCH:tune-armv8a-crc-crypto         ?= "armv8a"
17TUNE_FEATURES:tune-armv8a                  = "aarch64 armv8a"
18TUNE_FEATURES:tune-armv8a-crc              = "${TUNE_FEATURES:tune-armv8a} crc"
19TUNE_FEATURES:tune-armv8a-crypto           = "${TUNE_FEATURES:tune-armv8a} crypto"
20TUNE_FEATURES:tune-armv8a-crc-crypto       = "${TUNE_FEATURES:tune-armv8a-crc} crypto"
21PACKAGE_EXTRA_ARCHS:tune-armv8a            = "aarch64 armv8a"
22PACKAGE_EXTRA_ARCHS:tune-armv8a-crc        = "${PACKAGE_EXTRA_ARCHS:tune-armv8a} armv8a-crc"
23PACKAGE_EXTRA_ARCHS:tune-armv8a-crypto     = "${PACKAGE_EXTRA_ARCHS:tune-armv8a} armv8a-crypto"
24PACKAGE_EXTRA_ARCHS:tune-armv8a-crc-crypto = "${PACKAGE_EXTRA_ARCHS:tune-armv8a-crc} armv8a-crypto armv8a-crc-crypto"
25BASE_LIB:tune-armv8a                       = "lib64"
26BASE_LIB:tune-armv8a-crc                   = "lib64"
27BASE_LIB:tune-armv8a-crypto                = "lib64"
28BASE_LIB:tune-armv8a-crc-crypto            = "lib64"
29