summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorayaka <ayaka@soulik.info>2019-02-04 18:57:22 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-02-06 08:29:06 +0000
commit867032eba7c58fd104f1dd051b0fb802e92a73b5 (patch)
treeccabb5b7d955ea87a4ce48caead975c3bf1c1674
parentdbb832b8cfafd072b09bed0e9a6febad3f83e431 (diff)
downloadpoky-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.inc1
-rw-r--r--meta/conf/machine/include/arm/arch-armv8a.inc28
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 @@
1require 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 @@
1DEFAULTTUNE ?= "armv8a-crc"
2
3TUNEVALID[armv8a] = "Enable instructions for ARMv8-a"
4TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'armv8a', ' -march=armv8-a', '', d)}"
5TUNEVALID[simd] = "Enable instructions for ARMv8-a Advanced SIMD and floating-point"
6TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'simd', '+simd', '', d)}"
7TUNEVALID[crc] = "Enable instructions for ARMv8-a Cyclic Redundancy Check (CRC)"
8TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'crc', '+crc', '', d)}"
9TUNEVALID[crypto] = "Enable instructions for ARMv8-a cryptographic"
10TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'crypto', '+crypto', '', d)}"
11MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'armv8a', 'armv8a:', '' ,d)}"
12
13require conf/machine/include/arm/arch-arm64.inc
14
15# Little Endian base configs
16AVAILTUNES += "armv8a armv8a-crc armv8a-crc-crypto armv8a-crypto"
17ARMPKGARCH_tune-armv8a ?= "armv8a"
18ARMPKGARCH_tune-armv8a-crc ?= "armv8a"
19ARMPKGARCH_tune-armv8a-crypto ?= "armv8a"
20ARMPKGARCH_tune-armv8a-crc-crypto ?= "armv8a"
21TUNE_FEATURES_tune-armv8a = "aarch64 armv8a simd"
22TUNE_FEATURES_tune-armv8a-crc = "${TUNE_FEATURES_tune-armv8a} crc"
23TUNE_FEATURES_tune-armv8a-crypto = "${TUNE_FEATURES_tune-armv8a} crypto"
24TUNE_FEATURES_tune-armv8a-crc-crypto = "${TUNE_FEATURES_tune-armv8a-crc} crypto"
25PACKAGE_EXTRA_ARCHS_tune-armv8a = "aarch64 armv8a simd"
26PACKAGE_EXTRA_ARCHS_tune-armv8a-crc = "${PACKAGE_EXTRA_ARCHS_tune-armv8a} crc"
27PACKAGE_EXTRA_ARCHS_tune-armv8a-crypto = "${PACKAGE_EXTRA_ARCHS_tune-armv8a} crypto"
28PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} crypto"