path: root/scripts/
diff options
authorSam Ravnborg <>2008-06-16 21:29:38 +0200
committerSam Ravnborg <>2008-07-25 22:12:18 +0200
commitdb1bec4f5271d7799d481cd4d95fdc268bdd7614 (patch)
treeafdb6d5c490c1cd31670c6cbf0cc58c97c7d2c86 /scripts/
parent6b36ab27d7161bc233e014ff38d8b17ae9975dee (diff)
kbuild: install all headers when arch is changed
We see some header files that are selected dependent on the actual architecture so force a reinstallation of all header files when the arch changes. This slows down "make headers_check_all" but then we better reflect reality. Signed-off-by: Sam Ravnborg <>
Diffstat (limited to 'scripts/')
1 files changed, 8 insertions, 5 deletions
diff --git a/scripts/ b/scripts/
index f0ff9a35acd0..68591cd08731 100644
--- a/scripts/
+++ b/scripts/
@@ -3,10 +3,13 @@
# headers_install prepare the listed header files for use in
# user space and copy the files to their destination.
-# Usage: odir installdir [files...]
-# odir: dir to open files
-# install: dir to install the files
-# files: list of files to check
+# Usage: readdir installdir arch [files...]
+# readdir: dir to open files
+# installdir: dir to install the files
+# arch: current architecture
+# arch is used to force a reinstallation when the arch
+# changes because kbuild then detect a command line change.
+# files: list of files to check
# Step in preparation for users space:
# 1) Drop all use of compiler.h definitions
@@ -16,7 +19,7 @@
use strict;
use warnings;
-my ($readdir, $installdir, @files) = @ARGV;
+my ($readdir, $installdir, $arch, @files) = @ARGV;
my $unifdef = "scripts/unifdef -U__KERNEL__";