diff options
| author | Aleksey Smirnov <aleksey.smirnov@yadro.com> | 2024-02-08 13:11:56 +0300 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-02-09 13:55:06 +0000 |
| commit | 92d790f5c1eaafe277edc3a1a93a002536b16b64 (patch) | |
| tree | 246c271638e0fdcec9933f8d7b448cf03dd8d474 /meta/conf/machine/include | |
| parent | e1f691072737978a1ddbdabeac529ed005508977 (diff) | |
| download | poky-92d790f5c1eaafe277edc3a1a93a002536b16b64.tar.gz | |
conf/machine: Add Power8 tune to PowerPC architecture
Description: now we can tune our build only for power7 or power9
processor for PowerPC arch, this patch add posibility to choose power8 tune.
(From OE-Core rev: 10f7eeafd16c8b825b3c9b96b8433311f122df1e)
Signed-off-by: Aleksey Smirnov <aleksey.smirnov@yadro.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/machine/include')
| -rw-r--r-- | meta/conf/machine/include/powerpc/tune-power8.inc | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/meta/conf/machine/include/powerpc/tune-power8.inc b/meta/conf/machine/include/powerpc/tune-power8.inc new file mode 100644 index 0000000000..ee10f2428f --- /dev/null +++ b/meta/conf/machine/include/powerpc/tune-power8.inc | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | DEFAULTTUNE ?= "ppc64p8le" | ||
| 2 | |||
| 3 | require conf/machine/include/powerpc/arch-powerpc64.inc | ||
| 4 | |||
| 5 | TUNEVALID[power8] = "Enable IBM Power8 specific processor optimizations" | ||
| 6 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'power8', ' -mcpu=power8', '', d)}" | ||
| 7 | |||
| 8 | AVAILTUNES += "ppcp8 ppc64p8 ppcp8le ppc64p8le" | ||
| 9 | |||
| 10 | TUNE_FEATURES:tune-ppcp8 = "m32 fpu-hard power8 altivec bigendian" | ||
| 11 | BASE_LIB:tune-ppcp8 = "lib" | ||
| 12 | TUNE_PKGARCH:tune-ppcp8 = "ppcp8" | ||
| 13 | PACKAGE_EXTRA_ARCHS:tune-ppcp8 = "${PACKAGE_EXTRA_ARCHS:tune-powerpc} ppcp8" | ||
| 14 | |||
| 15 | TUNE_FEATURES:tune-ppc64p8 = "m64 fpu-hard power8 altivec bigendian" | ||
| 16 | BASE_LIB:tune-ppc64p8 = "lib64" | ||
| 17 | TUNE_PKGARCH:tune-ppc64p8 = "ppc64p8" | ||
| 18 | PACKAGE_EXTRA_ARCHS:tune-ppc64p8 = "${PACKAGE_EXTRA_ARCHS:tune-powerpc64} ppc64p8" | ||
| 19 | |||
| 20 | TUNE_FEATURES:tune-ppcp8le = "m32 fpu-hard power8 altivec" | ||
| 21 | BASE_LIB:tune-ppcp8le = "lib" | ||
| 22 | TUNE_PKGARCH:tune-ppcp8le = "ppcp8le" | ||
| 23 | PACKAGE_EXTRA_ARCHS:tune-ppcp8le = "${PACKAGE_EXTRA_ARCHS:tune-powerpcle} ppcp8le" | ||
| 24 | |||
| 25 | TUNE_FEATURES:tune-ppc64p8le = "m64 fpu-hard power8 altivec" | ||
| 26 | BASE_LIB:tune-ppc64p8le = "lib64" | ||
| 27 | TUNE_PKGARCH:tune-ppc64p8le = "ppc64p8le" | ||
| 28 | PACKAGE_EXTRA_ARCHS:tune-ppc64p8le = "${PACKAGE_EXTRA_ARCHS:tune-powerpc64le} ppc64p8le" | ||
| 29 | |||
| 30 | # glibc configure options to get power8 specific library | ||
| 31 | GLIBC_EXTRA_OECONF += "${@bb.utils.contains('TUNE_FEATURES', 'power8', '--with-cpu=power8', '', d)}" | ||
