diff options
author | ayaka <ayaka@soulik.info> | 2019-02-04 18:57:22 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-02-06 08:29:06 +0000 |
commit | 867032eba7c58fd104f1dd051b0fb802e92a73b5 (patch) | |
tree | ccabb5b7d955ea87a4ce48caead975c3bf1c1674 | |
parent | dbb832b8cfafd072b09bed0e9a6febad3f83e431 (diff) | |
download | poky-867032eba7c58fd104f1dd051b0fb802e92a73b5.tar.gz |
arch-armv8a.inc: add tune include for armv8
There are some addtional instructions apart from bare armv8,
also there is armv8.1, armv8.2.
Most the processor would support crc, except X-gene 1.
(From OE-Core rev: d1db78b0e284e1a1f370e71183ded0cbdc1475db)
Signed-off-by: Randy Li <ayaka@soulik.info>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/conf/machine/include/arm/arch-armv8.inc | 1 | ||||
-rw-r--r-- | meta/conf/machine/include/arm/arch-armv8a.inc | 28 |
2 files changed, 28 insertions, 1 deletions
diff --git a/meta/conf/machine/include/arm/arch-armv8.inc b/meta/conf/machine/include/arm/arch-armv8.inc deleted file mode 100644 index 5e832fae6d..0000000000 --- a/meta/conf/machine/include/arm/arch-armv8.inc +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | require conf/machine/include/arm/arch-arm64.inc | ||
diff --git a/meta/conf/machine/include/arm/arch-armv8a.inc b/meta/conf/machine/include/arm/arch-armv8a.inc new file mode 100644 index 0000000000..323d0d7f0f --- /dev/null +++ b/meta/conf/machine/include/arm/arch-armv8a.inc | |||
@@ -0,0 +1,28 @@ | |||
1 | DEFAULTTUNE ?= "armv8a-crc" | ||
2 | |||
3 | TUNEVALID[armv8a] = "Enable instructions for ARMv8-a" | ||
4 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'armv8a', ' -march=armv8-a', '', d)}" | ||
5 | TUNEVALID[simd] = "Enable instructions for ARMv8-a Advanced SIMD and floating-point" | ||
6 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'simd', '+simd', '', d)}" | ||
7 | TUNEVALID[crc] = "Enable instructions for ARMv8-a Cyclic Redundancy Check (CRC)" | ||
8 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'crc', '+crc', '', d)}" | ||
9 | TUNEVALID[crypto] = "Enable instructions for ARMv8-a cryptographic" | ||
10 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'crypto', '+crypto', '', d)}" | ||
11 | MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'armv8a', 'armv8a:', '' ,d)}" | ||
12 | |||
13 | require conf/machine/include/arm/arch-arm64.inc | ||
14 | |||
15 | # Little Endian base configs | ||
16 | AVAILTUNES += "armv8a armv8a-crc armv8a-crc-crypto armv8a-crypto" | ||
17 | ARMPKGARCH_tune-armv8a ?= "armv8a" | ||
18 | ARMPKGARCH_tune-armv8a-crc ?= "armv8a" | ||
19 | ARMPKGARCH_tune-armv8a-crypto ?= "armv8a" | ||
20 | ARMPKGARCH_tune-armv8a-crc-crypto ?= "armv8a" | ||
21 | TUNE_FEATURES_tune-armv8a = "aarch64 armv8a simd" | ||
22 | TUNE_FEATURES_tune-armv8a-crc = "${TUNE_FEATURES_tune-armv8a} crc" | ||
23 | TUNE_FEATURES_tune-armv8a-crypto = "${TUNE_FEATURES_tune-armv8a} crypto" | ||
24 | TUNE_FEATURES_tune-armv8a-crc-crypto = "${TUNE_FEATURES_tune-armv8a-crc} crypto" | ||
25 | PACKAGE_EXTRA_ARCHS_tune-armv8a = "aarch64 armv8a simd" | ||
26 | PACKAGE_EXTRA_ARCHS_tune-armv8a-crc = "${PACKAGE_EXTRA_ARCHS_tune-armv8a} crc" | ||
27 | PACKAGE_EXTRA_ARCHS_tune-armv8a-crypto = "${PACKAGE_EXTRA_ARCHS_tune-armv8a} crypto" | ||
28 | PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} crypto" | ||