Andrew Geissler | d159c7f | 2021-09-02 21:05:58 -0500 | [diff] [blame^] | 1 | # |
| 2 | # Defaults for ARMv8-r |
| 3 | # |
| 4 | DEFAULTTUNE ?= "armv8r" |
| 5 | |
| 6 | TUNEVALID[armv8r] = "Enable instructions for ARMv8-r" |
| 7 | TUNE_CCARGS_MARCH .= "${@bb.utils.contains('TUNE_FEATURES', 'armv8r', ' -march=armv8-r', '', d)}" |
| 8 | MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'armv8r', 'armv8r:', '', d)}" |
| 9 | |
| 10 | require conf/machine/include/arm/arch-arm64.inc |
| 11 | require conf/machine/include/arm/feature-arm-crc.inc |
| 12 | require conf/machine/include/arm/feature-arm-crypto.inc |
| 13 | |
| 14 | # All ARMv8 has floating point hardware built in. Null it here to avoid any confusion for 32bit. |
| 15 | TARGET_FPU_32 = "" |
| 16 | |
| 17 | AVAILTUNES += "armv8r armv8r-crc armv8r-crypto armv8r-simd armv8r-crc-crypto armv8r-crc-simd armv8r-crc-crypto-simd" |
| 18 | ARMPKGARCH:tune-armv8r = "armv8r" |
| 19 | ARMPKGARCH:tune-armv8r-crc = "armv8r" |
| 20 | ARMPKGARCH:tune-armv8r-crypto = "armv8r" |
| 21 | ARMPKGARCH:tune-armv8r-simd = "armv8r" |
| 22 | ARMPKGARCH:tune-armv8r-crc-crypto = "armv8r" |
| 23 | ARMPKGARCH:tune-armv8r-crc-simd = "armv8r" |
| 24 | ARMPKGARCH:tune-armv8r-crc-crypto-simd = "armv8r" |
| 25 | TUNE_FEATURES:tune-armv8r = "armv8r" |
| 26 | TUNE_FEATURES:tune-armv8r-crc = "${TUNE_FEATURES:tune-armv8r} crc" |
| 27 | TUNE_FEATURES:tune-armv8r-crypto = "${TUNE_FEATURES:tune-armv8r} crypto" |
| 28 | TUNE_FEATURES:tune-armv8r-simd = "${TUNE_FEATURES:tune-armv8r} simd" |
| 29 | TUNE_FEATURES:tune-armv8r-crc-crypto = "${TUNE_FEATURES:tune-armv8r-crc} crypto" |
| 30 | TUNE_FEATURES:tune-armv8r-crc-simd = "${TUNE_FEATURES:tune-armv8r-crc} simd" |
| 31 | TUNE_FEATURES:tune-armv8r-crc-crypto-simd = "${TUNE_FEATURES:tune-armv8r-crc-crypto} simd" |
| 32 | PACKAGE_EXTRA_ARCHS:tune-armv8r = "armv8r" |
| 33 | PACKAGE_EXTRA_ARCHS:tune-armv8r-crc = "${PACKAGE_EXTRA_ARCHS:tune-armv8r} armv8r-crc" |
| 34 | PACKAGE_EXTRA_ARCHS:tune-armv8r-crypto = "${PACKAGE_EXTRA_ARCHS:tune-armv8r} armv8r-crypto" |
| 35 | PACKAGE_EXTRA_ARCHS:tune-armv8r-simd = "${PACKAGE_EXTRA_ARCHS:tune-armv8r} armv8r-simd" |
| 36 | PACKAGE_EXTRA_ARCHS:tune-armv8r-crc-simd = "${PACKAGE_EXTRA_ARCHS:tune-armv8r-crc} armv8r-simd armv8r-crc-simd" |
| 37 | PACKAGE_EXTRA_ARCHS:tune-armv8r-crc-crypto-simd = "${PACKAGE_EXTRA_ARCHS:tune-armv8r-crc-simd} armv8r-crc-crypto-simd" |