slyfox      18/04/14 19:01:13

  Modified:             rip-headers.sh
  Log:
  rip-headers.sh: add ripping of missing 'kernel/syscalls' directory for s390

Revision  Changes    Path
1.19                 src/patchsets/gentoo-headers/rip-headers.sh

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.19&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.19&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?r1=1.18&r2=1.19

Index: rip-headers.sh
===================================================================
RCS file: /var/cvsroot/gentoo/src/patchsets/gentoo-headers/rip-headers.sh,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- rip-headers.sh      28 Dec 2017 15:53:55 -0000      1.18
+++ rip-headers.sh      14 Apr 2018 19:01:13 -0000      1.19
@@ -68,12 +68,12 @@
                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 @@
        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}/




Reply via email to