blob: 53f4566815af5ea595cfef4117cf1e8f6ff26a05 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001DEFAULTTUNE ?= "aarch64"
2
Brad Bishop37a0e4d2017-12-04 01:01:44 -05003require conf/machine/include/arm/arch-armv7ve.inc
Patrick Williamsc124f4f2015-09-15 14:41:29 -05004
5TUNEVALID[aarch64] = "Enable instructions for aarch64"
6
Brad Bishop19323692019-04-05 15:28:33 -04007MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'aarch64', 'aarch64:', '' ,d)}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05008
9# Little Endian base configs
10AVAILTUNES += "aarch64 aarch64_be"
11ARMPKGARCH_tune-aarch64 ?= "aarch64"
12ARMPKGARCH_tune-aarch64_be ?= "aarch64_be"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050013TUNE_FEATURES_tune-aarch64 = "aarch64"
14TUNE_FEATURES_tune-aarch64_be = "${TUNE_FEATURES_tune-aarch64} bigendian"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050015BASE_LIB_tune-aarch64 = "lib64"
16BASE_LIB_tune-aarch64_be = "lib64"
17
18PACKAGE_EXTRA_ARCHS_tune-aarch64 = "aarch64"
19PACKAGE_EXTRA_ARCHS_tune-aarch64_be = "aarch64_be"
20
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050021ARMPKGSFX_ENDIAN_64 = "${@bb.utils.contains('TUNE_FEATURES', 'bigendian', '_be', '', d)}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050022TUNE_ARCH_64 = "aarch64${ARMPKGSFX_ENDIAN_64}"
23TUNE_PKGARCH_64 = "aarch64${ARMPKGSFX_ENDIAN_64}"
24ABIEXTENSION_64 = ""
25TARGET_FPU_64 = ""
26
27# Duplicated from arch-arm.inc
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050028TUNE_ARCH_32 = "${@bb.utils.contains('TUNE_FEATURES', 'bigendian', 'armeb', 'arm', d)}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050029TUNE_PKGARCH_32 = "${ARMPKGARCH}${ARMPKGSFX_THUMB}${ARMPKGSFX_DSP}${ARMPKGSFX_EABI}${ARMPKGSFX_ENDIAN}${ARMPKGSFX_FPU}"
30ABIEXTENSION_32 = "eabi"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050031TARGET_FPU_32 = "${@d.getVar('TUNE_CCARGS_MFLOAT') or 'soft'}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050032
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050033TUNE_ARCH = "${@bb.utils.contains('TUNE_FEATURES', 'aarch64', '${TUNE_ARCH_64}', '${TUNE_ARCH_32}' ,d)}"
34TUNE_PKGARCH = "${@bb.utils.contains('TUNE_FEATURES', 'aarch64', '${TUNE_PKGARCH_64}', '${TUNE_PKGARCH_32}' ,d)}"
35ABIEXTENSION = "${@bb.utils.contains('TUNE_FEATURES', 'aarch64', '${ABIEXTENSION_64}', '${ABIEXTENSION_32}' ,d)}"
36TARGET_FPU = "${@bb.utils.contains('TUNE_FEATURES', 'aarch64', '${TARGET_FPU_64}', '${TARGET_FPU_32}' ,d)}"