summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorLaura Abbott <labbott@redhat.com>2019-07-18 11:54:09 -0400
committerLaura Abbott <labbott@redhat.com>2019-07-18 11:54:09 -0400
commit932464d8506cc6278d2480270454801dc231ae6e (patch)
treee02fa4c4ec0f69f973a928b4508454deed1d4e41 /scripts
parent47006d595fd71c38f10e7caba99c882cc0ac1d7a (diff)
downloadkernel-932464d8506cc6278d2480270454801dc231ae6e.tar.gz
kernel-932464d8506cc6278d2480270454801dc231ae6e.tar.xz
kernel-932464d8506cc6278d2480270454801dc231ae6e.zip
Actually fix headers scripts to account for all archs
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/create_headers_tarball.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/create_headers_tarball.sh b/scripts/create_headers_tarball.sh
index 1c388381b..5ec563f8e 100755
--- a/scripts/create_headers_tarball.sh
+++ b/scripts/create_headers_tarball.sh
@@ -44,7 +44,14 @@ ARCH_LIST="arm arm64 powerpc s390 x86"
headers_dir=$(mktemp -d)
trap 'rm -rf "$headers_dir"' SIGHUP SIGINT SIGTERM EXIT
-make HDR_ARCH_LIST="$ARCH_LIST" INSTALL_HDR_PATH=$headers_dir headers_install
+archs=${ARCH_LIST:-$(ls arch)}
+echo $archs
+
+# Upstream rmeoved the headers_install_all target so do it manually
+for arch in $archs; do
+ mkdir $headers_dir/arch-$arch
+ make ARCH=$arch INSTALL_HDR_PATH=$headers_dir/arch-$arch KBUILD_HEADERS=install headers_install
+done
find $headers_dir \
\( -name .install -o -name .check -o \
-name ..install.cmd -o -name ..check.cmd \) | xargs rm -f