summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/conf/machine/include/tune-power9.inc35
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 @@
1DEFAULTTUNE ?= "ppc64p9le"
2
3require conf/machine/include/powerpc/arch-powerpc64.inc
4
5TUNEVALID[power9] = "Enable IBM Power9 specific processor optimizations"
6TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'power9', ' -mcpu=power9', '', d)}"
7
8AVAILTUNES += "ppcp9 ppc64p9 ppcp9le ppc64p9le"
9
10TUNE_FEATURES_tune-ppcp9 = "m32 fpu-hard power9 altivec bigendian"
11BASE_LIB_tune-ppcp9 = "lib"
12TUNE_PKGARCH_tune-ppcp9 = "ppcp9"
13PACKAGE_EXTRA_ARCHS_tune-ppcp9 = "${PACKAGE_EXTRA_ARCHS_tune-powerpc} ppcp9"
14
15TUNE_FEATURES_tune-ppc64p9 = "m64 fpu-hard power9 altivec bigendian"
16BASE_LIB_tune-ppc64p9 = "lib64"
17TUNE_PKGARCH_tune-ppc64p9 = "ppc64p9"
18PACKAGE_EXTRA_ARCHS_tune-ppc64p9 = "${PACKAGE_EXTRA_ARCHS_tune-powerpc64} ppc64p9"
19
20TUNE_FEATURES_tune-ppcp9le = "m32 fpu-hard power9 altivec"
21BASE_LIB_tune-ppcp9le = "lib"
22TUNE_PKGARCH_tune-ppcp9le = "ppcp9le"
23PACKAGE_EXTRA_ARCHS_tune-ppcp9le = "${PACKAGE_EXTRA_ARCHS_tune-powerpcle} ppcp9le"
24
25TUNE_FEATURES_tune-ppc64p9le = "m64 fpu-hard power9 altivec"
26BASE_LIB_tune-ppc64p9le = "lib64"
27TUNE_PKGARCH_tune-ppc64p9le = "ppc64p9le"
28PACKAGE_EXTRA_ARCHS_tune-ppc64p9le = "${PACKAGE_EXTRA_ARCHS_tune-powerpc64le} ppc64p9le"
29
30# glibc configure options to get power9 specific library
31GLIBC_EXTRA_OECONF_powerpc64 += "${@bb.utils.contains('TUNE_FEATURES', 'power9', '--with-cpu=power9', '', d)}"
32GLIBC_EXTRA_OECONF_powerpc += "${@bb.utils.contains('TUNE_FEATURES', 'power9', '--with-cpu=power9', '', d)}"
33
34# QEMU usermode fails with invalid instruction error
35MACHINE_FEATURES_BACKFILL_CONSIDERED_append = "${@bb.utils.contains('TUNE_FEATURES', 'power9', ' qemu-usermode', '', d)}"