diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-12-29 10:44:04 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-12-30 23:39:09 +0000 |
commit | 7b105058ee0b1160ad4962f49ab886027a6e6b44 (patch) | |
tree | e9ddd5df0dd0d201b01fb1e9d860a9abc730ca17 /meta/conf | |
parent | c1d47c21afe7372b26c6f6bd92019a761161c854 (diff) | |
download | poky-7b105058ee0b1160ad4962f49ab886027a6e6b44.tar.gz |
tune-power9: Add power9 tunings
Add Little/big Endian, 32bit/64bit
(From OE-Core rev: 08e1d688bc8dedebdcfa4f2bc3dc6c67e9d118fa)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf')
-rw-r--r-- | meta/conf/machine/include/tune-power9.inc | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta/conf/machine/include/tune-power9.inc b/meta/conf/machine/include/tune-power9.inc new file mode 100644 index 0000000000..81d6e8e9bf --- /dev/null +++ b/meta/conf/machine/include/tune-power9.inc | |||
@@ -0,0 +1,35 @@ | |||
1 | DEFAULTTUNE ?= "ppc64p9le" | ||
2 | |||
3 | require conf/machine/include/powerpc/arch-powerpc64.inc | ||
4 | |||
5 | TUNEVALID[power9] = "Enable IBM Power9 specific processor optimizations" | ||
6 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'power9', ' -mcpu=power9', '', d)}" | ||
7 | |||
8 | AVAILTUNES += "ppcp9 ppc64p9 ppcp9le ppc64p9le" | ||
9 | |||
10 | TUNE_FEATURES_tune-ppcp9 = "m32 fpu-hard power9 altivec bigendian" | ||
11 | BASE_LIB_tune-ppcp9 = "lib" | ||
12 | TUNE_PKGARCH_tune-ppcp9 = "ppcp9" | ||
13 | PACKAGE_EXTRA_ARCHS_tune-ppcp9 = "${PACKAGE_EXTRA_ARCHS_tune-powerpc} ppcp9" | ||
14 | |||
15 | TUNE_FEATURES_tune-ppc64p9 = "m64 fpu-hard power9 altivec bigendian" | ||
16 | BASE_LIB_tune-ppc64p9 = "lib64" | ||
17 | TUNE_PKGARCH_tune-ppc64p9 = "ppc64p9" | ||
18 | PACKAGE_EXTRA_ARCHS_tune-ppc64p9 = "${PACKAGE_EXTRA_ARCHS_tune-powerpc64} ppc64p9" | ||
19 | |||
20 | TUNE_FEATURES_tune-ppcp9le = "m32 fpu-hard power9 altivec" | ||
21 | BASE_LIB_tune-ppcp9le = "lib" | ||
22 | TUNE_PKGARCH_tune-ppcp9le = "ppcp9le" | ||
23 | PACKAGE_EXTRA_ARCHS_tune-ppcp9le = "${PACKAGE_EXTRA_ARCHS_tune-powerpcle} ppcp9le" | ||
24 | |||
25 | TUNE_FEATURES_tune-ppc64p9le = "m64 fpu-hard power9 altivec" | ||
26 | BASE_LIB_tune-ppc64p9le = "lib64" | ||
27 | TUNE_PKGARCH_tune-ppc64p9le = "ppc64p9le" | ||
28 | PACKAGE_EXTRA_ARCHS_tune-ppc64p9le = "${PACKAGE_EXTRA_ARCHS_tune-powerpc64le} ppc64p9le" | ||
29 | |||
30 | # glibc configure options to get power9 specific library | ||
31 | GLIBC_EXTRA_OECONF_powerpc64 += "${@bb.utils.contains('TUNE_FEATURES', 'power9', '--with-cpu=power9', '', d)}" | ||
32 | GLIBC_EXTRA_OECONF_powerpc += "${@bb.utils.contains('TUNE_FEATURES', 'power9', '--with-cpu=power9', '', d)}" | ||
33 | |||
34 | # QEMU usermode fails with invalid instruction error | ||
35 | MACHINE_FEATURES_BACKFILL_CONSIDERED_append = "${@bb.utils.contains('TUNE_FEATURES', 'power9', ' qemu-usermode', '', d)}" | ||