diff options
author | Kevin Hao <kexin.hao@windriver.com> | 2022-01-15 09:50:44 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-01-25 12:07:01 +0000 |
commit | 6fac5cc9f37d9fc405ea948380581ce313d1d5c9 (patch) | |
tree | 3444f2868993a796a9e0b3a60f24d8e5bf3d5015 /meta | |
parent | a87f135041c3258faf5692919716f9219bf99446 (diff) | |
download | poky-6fac5cc9f37d9fc405ea948380581ce313d1d5c9.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)
(From OE-Core rev: 3ceee568313ea7cd3afe33df8119319644e12fa4)
Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Kevin: Convert to the old style override syntax]
Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/conf/machine/include/arm/armv9a/tune-neoversen2.inc | 22 |
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..dedabcf46e --- /dev/null +++ b/meta/conf/machine/include/arm/armv9a/tune-neoversen2.inc | |||
@@ -0,0 +1,22 @@ | |||
1 | # | ||
2 | # Tune Settings for Neoverse-N2 | ||
3 | # | ||
4 | DEFAULTTUNE ?= "neoversen2" | ||
5 | |||
6 | TUNEVALID[neoversen2] = "Enable Neoverse-N2 specific processor optimizations" | ||
7 | TUNE_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. | ||
11 | require conf/machine/include/arm/arch-armv8-5a.inc | ||
12 | |||
13 | # Little Endian base configs | ||
14 | AVAILTUNES += "neoversen2 neoversen2-crypto" | ||
15 | ARMPKGARCH_tune-neoversen2 = "neoversen2" | ||
16 | ARMPKGARCH_tune-neoversen2-crypto = "neoversen2-crypto" | ||
17 | TUNE_FEATURES_tune-neoversen2 = "${TUNE_FEATURES_tune-armv8-5a} neoversen2" | ||
18 | TUNE_FEATURES_tune-neoversen2-crypto = "${TUNE_FEATURES_tune-neoversen2} crypto" | ||
19 | PACKAGE_EXTRA_ARCHS_tune-neoversen2 = "${PACKAGE_EXTRA_ARCHS_tune-armv8-5a} neoversen2" | ||
20 | PACKAGE_EXTRA_ARCHS_tune-neoversen2-crypto = "${PACKAGE_EXTRA_ARCHS_tune-armv8-5a-crypto} neoversen2 neoversen2-crypto" | ||
21 | BASE_LIB_tune-neoversen2 = "lib64" | ||
22 | BASE_LIB_tune-neoversen2-crypto = "lib64" | ||