diff options
author | Laura Abbott <labbott@redhat.com> | 2019-10-08 08:18:46 -0400 |
---|---|---|
committer | Laura Abbott <labbott@redhat.com> | 2019-10-08 08:18:46 -0400 |
commit | 7351cafa208c8a64077210173d9f635a125bcb16 (patch) | |
tree | d97f772c74965258c50ce8916126132d96871fa4 /scripts | |
parent | f9334ffb03fd47d23351ac827fe1115a97771817 (diff) | |
download | kernel-7351cafa208c8a64077210173d9f635a125bcb16.tar.gz kernel-7351cafa208c8a64077210173d9f635a125bcb16.tar.xz kernel-7351cafa208c8a64077210173d9f635a125bcb16.zip |
Update headers script
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/create_headers_tarball.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/create_headers_tarball.sh b/scripts/create_headers_tarball.sh index 5105f790c..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_all +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 |