summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2018-04-14 21:01:13 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2018-04-14 21:01:13 +0100
commitb7979731a7336631a17923eef35a38ca61316631 (patch)
treead45188006970e3d9ab3253caf406390efb63fb8 /rip-headers.sh
parenttesting.txt: follow collectd move to app-metrics/collectd (diff)
downloadlinux-headers-patches-b7979731a7336631a17923eef35a38ca61316631.tar.gz
linux-headers-patches-b7979731a7336631a17923eef35a38ca61316631.tar.bz2
linux-headers-patches-b7979731a7336631a17923eef35a38ca61316631.zip
rip-headers.sh: add ripping of missing 'kernel/syscalls' directory for s390
Diffstat (limited to 'rip-headers.sh')
-rwxr-xr-xrip-headers.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/rip-headers.sh b/rip-headers.sh
index 10b2930..78dce04 100755
--- a/rip-headers.sh
+++ b/rip-headers.sh
@@ -68,12 +68,12 @@ for a in ${arches} ; do
done
fi
done
-# handle x86 unique cruft
+# handle x86 unique headers
if [[ -e ${src}/arch/x86/entry/syscalls ]] ; then
mkdir -p ${dst}/arch/x86/entry
cp -r ${src}/arch/x86/entry/syscalls ${dst}/arch/x86/entry/
fi
-# mips has some stupid unique bs
+# mips has some unique headers as well
if [[ -e ${src}/arch/mips/Kbuild.platforms ]] ; then
for f in "${src}"/arch/mips/*/Platform ; do
f=${f#${src}}
@@ -85,6 +85,11 @@ if [[ -d ${src}/arch/mips/boot/tools ]] ; then
mkdir -p ${dst}/arch/mips/boot
cp -r ${src}/arch/mips/boot/tools ${dst}/arch/mips/boot/
fi
+# s390 has special sauce starting from 4.16
+if [[ -d ${src}/arch/s390/kernel/syscalls ]] ; then
+ mkdir -p ${dst}/arch/s390/kernel
+ cp -r ${src}/arch/s390/kernel/syscalls ${dst}/arch/s390/kernel/
+fi
find ${dst}/ -name .gitignore -delete
cp README.ripped-headers rip-headers.sh ${dst}/