summaryrefslogtreecommitdiffstats
path: root/meta/conf/machine/include
diff options
context:
space:
mode:
authorKevin Hao <kexin.hao@windriver.com>2021-12-24 18:05:18 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-01-13 13:57:26 +0000
commit5ea171985c8fcba857034b64de7c46b0ce364b8d (patch)
tree02e110e537615934202745619375b2488d9c7c96 /meta/conf/machine/include
parent2dfd80bce51e3405a337bf5f7fe2519d3dcf8048 (diff)
downloadpoky-5ea171985c8fcba857034b64de7c46b0ce364b8d.tar.gz
armv9a/tune: Add the support for the Neoverse N2 core
This adds the support for the Neoverse N2 core, even though the Neoverse N2 core implements the Arm v9.0-A architecture, but the support of it in GCC is based on the Arm v8.5-A architecture. Please see the commit 50d9db203bc3 ("aarch64: Add support for Neoverse N2 CPU") in GCC for more detail. (From OE-Core rev: 37597397f03b6b0082a702147dc536ff8b2fa7a3) Signed-off-by: Kevin Hao <kexin.hao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/machine/include')
-rw-r--r--meta/conf/machine/include/arm/armv9a/tune-neoversen2.inc22
1 files changed, 22 insertions, 0 deletions
diff --git a/meta/conf/machine/include/arm/armv9a/tune-neoversen2.inc b/meta/conf/machine/include/arm/armv9a/tune-neoversen2.inc
new file mode 100644
index 0000000000..36355f7bed
--- /dev/null
+++ b/meta/conf/machine/include/arm/armv9a/tune-neoversen2.inc
@@ -0,0 +1,22 @@
1#
2# Tune Settings for Neoverse-N2
3#
4DEFAULTTUNE ?= "neoversen2"
5
6TUNEVALID[neoversen2] = "Enable Neoverse-N2 specific processor optimizations"
7TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'neoversen2', ' -mcpu=neoverse-n2', '', d)}"
8
9# Even though the Neoverse N2 core implemnts the Arm v9.0-A architecture,
10# but the support of it in GCC is based on the Arm v8.5-A architecture.
11require conf/machine/include/arm/arch-armv8-5a.inc
12
13# Little Endian base configs
14AVAILTUNES += "neoversen2 neoversen2-crypto"
15ARMPKGARCH:tune-neoversen2 = "neoversen2"
16ARMPKGARCH:tune-neoversen2-crypto = "neoversen2-crypto"
17TUNE_FEATURES:tune-neoversen2 = "${TUNE_FEATURES:tune-armv8-5a} neoversen2"
18TUNE_FEATURES:tune-neoversen2-crypto = "${TUNE_FEATURES:tune-neoversen2} crypto"
19PACKAGE_EXTRA_ARCHS:tune-neoversen2 = "${PACKAGE_EXTRA_ARCHS:tune-armv8-5a} neoversen2"
20PACKAGE_EXTRA_ARCHS:tune-neoversen2-crypto = "${PACKAGE_EXTRA_ARCHS:tune-armv8-5a-crypto} neoversen2 neoversen2-crypto"
21BASE_LIB:tune-neoversen2 = "lib64"
22BASE_LIB:tune-neoversen2-crypto = "lib64"