diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2019-03-06 22:06:31 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2019-03-06 22:06:31 +0000 |
commit | b418143bc1bc69f4b0c7509f74e16f9302557e4c (patch) | |
tree | c64ec2283bb69dca2f0696e8d7c0f6572aba1a35 | |
parent | 5.0: copy 4.20 patches as-is (diff) | |
download | linux-headers-patches-b418143bc1bc69f4b0c7509f74e16f9302557e4c.tar.gz linux-headers-patches-b418143bc1bc69f4b0c7509f74e16f9302557e4c.tar.bz2 linux-headers-patches-b418143bc1bc69f4b0c7509f74e16f9302557e4c.zip |
rip-headers.sh: preserve arch/*/kernel/syscalls for all arches
Noticed by Jer as install failure:
scripts/Makefile.build:42: arch/parisc/kernel/syscalls/Makefile: No such file or directory
make[1]: *** No rule to make target 'arch/parisc/kernel/syscalls/Makefile'. Stop.
make: *** [arch/parisc/Makefile:168: archheaders] Error 2
The change generalises s390 tblgen inclusion for all arches.
Reported-by: Jeroen Roovers
Bug: https://bugs.gentoo.org/679630
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
-rwxr-xr-x | rip-headers.sh | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/rip-headers.sh b/rip-headers.sh index 7c37991..717405b 100755 --- a/rip-headers.sh +++ b/rip-headers.sh @@ -89,11 +89,16 @@ 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 +# linux-5.0 started generating syscall tables +for tblgen in ${src}/arch/*/kernel/syscalls; do + tblgen_parent=${tblgen#${src}/} + tblgen_parent=${tblgen_parent%/syscalls} + # older kernels have none + if [[ -d ${tblgen} ]]; then + mkdir -p ${dst}/${tblgen_parent} + cp -r ${tblgen} ${dst}/${tblgen_parent} + fi +done find ${dst}/ -name .gitignore -delete cp README.ripped-headers rip-headers.sh ${dst}/ |