summary refs log tree commit diff
path: root/elf/tst-glibc-hwcaps-cache.script
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-12-04 09:13:43 +0100
committerFlorian Weimer <fweimer@redhat.com>2020-12-04 14:50:49 +0100
commit4c38c1a229bc3628269ad98bd7e8d31d118d91f6 (patch)
tree0f012a89d499b54b68e58146c613138159c42519 /elf/tst-glibc-hwcaps-cache.script
parent93fda28693f0d9060b0aa71eeacaacfe9f16896e (diff)
downloadglibc-4c38c1a229bc3628269ad98bd7e8d31d118d91f6.tar.gz
glibc-4c38c1a229bc3628269ad98bd7e8d31d118d91f6.tar.xz
glibc-4c38c1a229bc3628269ad98bd7e8d31d118d91f6.zip
powerpc64le: Add glibc-hwcaps support
The "power10" and "power9" subdirectories are selected in a way
that matches the -mcpu=power10 and -mcpu=power9 options of GCC.
Diffstat (limited to 'elf/tst-glibc-hwcaps-cache.script')
-rw-r--r--elf/tst-glibc-hwcaps-cache.script6
1 files changed, 6 insertions, 0 deletions
diff --git a/elf/tst-glibc-hwcaps-cache.script b/elf/tst-glibc-hwcaps-cache.script
index 66d6942402..6a4675f9bd 100644
--- a/elf/tst-glibc-hwcaps-cache.script
+++ b/elf/tst-glibc-hwcaps-cache.script
@@ -5,6 +5,12 @@ cp $B/elf/libmarkermod2-1.so $L/libmarkermod2.so
 cp $B/elf/libmarkermod3-1.so $L/libmarkermod3.so
 cp $B/elf/libmarkermod4-1.so $L/libmarkermod4.so
 
+mkdirp 0770 $L/glibc-hwcaps/power9
+cp $B/elf/libmarkermod2-2.so $L/glibc-hwcaps/power9/libmarkermod2.so
+mkdirp 0770 $L/glibc-hwcaps/power10
+cp $B/elf/libmarkermod3-2.so $L/glibc-hwcaps/power9/libmarkermod3.so
+cp $B/elf/libmarkermod3-3.so $L/glibc-hwcaps/power10/libmarkermod3.so
+
 mkdirp 0770 $L/glibc-hwcaps/x86-64-v2
 cp $B/elf/libmarkermod2-2.so $L/glibc-hwcaps/x86-64-v2/libmarkermod2.so
 mkdirp 0770 $L/glibc-hwcaps/x86-64-v3