summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2018-10-23 23:30:49 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2018-10-23 23:30:49 +0100
commitd8781d5edf104b0a6fc43f26c4d135ccada59b47 (patch)
treeb3cc236a82548b91f1e8ec870cf7b91c9d25fd68
parentrip-headers.sh: allow any DISTDIR, not just /usr/portage/distfiles (diff)
downloadlinux-headers-patches-d8781d5edf104b0a6fc43f26c4d135ccada59b47.tar.gz
linux-headers-patches-d8781d5edf104b0a6fc43f26c4d135ccada59b47.tar.bz2
linux-headers-patches-d8781d5edf104b0a6fc43f26c4d135ccada59b47.zip
rip-headers.sh: account for scripts/subarch.include in 4.19+
Patch-by: Tomáš Mózes Bug: https://bugs.gentoo.org/669388 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
-rwxr-xr-xrip-headers.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/rip-headers.sh b/rip-headers.sh
index 19efbd4..7c37991 100755
--- a/rip-headers.sh
+++ b/rip-headers.sh
@@ -45,6 +45,9 @@ cp -r \
${src}/scripts/unifdef.c \
${src}/scripts/*.{sh,pl} \
${dst}/scripts/
+if [[ -f ${src}/scripts/subarch.include ]]; then
+ cp ${src}/scripts/subarch.include ${dst}/scripts/
+fi
mkdir -p ${dst}/scripts/basic
printf '#!/bin/sh\nexit 0' > ${dst}/scripts/basic/fixdep
chmod a+rx ${dst}/scripts/basic/fixdep