Actually fix headers scripts to account for all archs
This commit is contained in:
parent
47006d595f
commit
932464d850
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user