diff options
| author | Sam Ravnborg <sam@ravnborg.org> | 2008-06-16 15:29:38 -0400 |
|---|---|---|
| committer | Sam Ravnborg <sam@ravnborg.org> | 2008-07-25 16:12:18 -0400 |
| commit | db1bec4f5271d7799d481cd4d95fdc268bdd7614 (patch) | |
| tree | afdb6d5c490c1cd31670c6cbf0cc58c97c7d2c86 /scripts | |
| parent | 6b36ab27d7161bc233e014ff38d8b17ae9975dee (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 <sam@ravnborg.org>
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/Makefile.headersinst | 7 | ||||
| -rw-r--r-- | scripts/headers_install.pl | 13 |
2 files changed, 12 insertions, 8 deletions
diff --git a/scripts/Makefile.headersinst b/scripts/Makefile.headersinst index be2b70c48a3b..612dc13ddd85 100644 --- a/scripts/Makefile.headersinst +++ b/scripts/Makefile.headersinst | |||
| @@ -43,9 +43,10 @@ printdir = $(patsubst $(INSTALL_HDR_PATH)/%/,%,$(dir $@)) | |||
| 43 | 43 | ||
| 44 | quiet_cmd_install = INSTALL $(printdir) ($(words $(all-files))\ | 44 | quiet_cmd_install = INSTALL $(printdir) ($(words $(all-files))\ |
| 45 | file$(if $(word 2, $(all-files)),s)) | 45 | file$(if $(word 2, $(all-files)),s)) |
| 46 | cmd_install = $(PERL) $< $(srctree)/$(obj) $(install) $(header-y); \ | 46 | cmd_install = \ |
| 47 | $(PERL) $< $(objtree)/$(obj) $(install) $(objhdr-y); \ | 47 | $(PERL) $< $(srctree)/$(obj) $(install) $(SRCARCH) $(header-y); \ |
| 48 | touch $@ | 48 | $(PERL) $< $(objtree)/$(obj) $(install) $(SRCARCH) $(objhdr-y); \ |
| 49 | touch $@ | ||
| 49 | 50 | ||
| 50 | quiet_cmd_remove = REMOVE $(unwanted) | 51 | quiet_cmd_remove = REMOVE $(unwanted) |
| 51 | cmd_remove = rm -f $(unwanted-file) | 52 | cmd_remove = rm -f $(unwanted-file) |
diff --git a/scripts/headers_install.pl b/scripts/headers_install.pl index f0ff9a35acd0..68591cd08731 100644 --- a/scripts/headers_install.pl +++ b/scripts/headers_install.pl | |||
| @@ -3,10 +3,13 @@ | |||
| 3 | # headers_install prepare the listed header files for use in | 3 | # headers_install prepare the listed header files for use in |
| 4 | # user space and copy the files to their destination. | 4 | # user space and copy the files to their destination. |
| 5 | # | 5 | # |
| 6 | # Usage: headers_install.pl odir installdir [files...] | 6 | # Usage: headers_install.pl readdir installdir arch [files...] |
| 7 | # odir: dir to open files | 7 | # readdir: dir to open files |
| 8 | # install: dir to install the files | 8 | # installdir: dir to install the files |
| 9 | # files: list of files to check | 9 | # arch: current architecture |
| 10 | # arch is used to force a reinstallation when the arch | ||
| 11 | # changes because kbuild then detect a command line change. | ||
| 12 | # files: list of files to check | ||
| 10 | # | 13 | # |
| 11 | # Step in preparation for users space: | 14 | # Step in preparation for users space: |
| 12 | # 1) Drop all use of compiler.h definitions | 15 | # 1) Drop all use of compiler.h definitions |
| @@ -16,7 +19,7 @@ | |||
| 16 | use strict; | 19 | use strict; |
| 17 | use warnings; | 20 | use warnings; |
| 18 | 21 | ||
| 19 | my ($readdir, $installdir, @files) = @ARGV; | 22 | my ($readdir, $installdir, $arch, @files) = @ARGV; |
| 20 | 23 | ||
| 21 | my $unifdef = "scripts/unifdef -U__KERNEL__"; | 24 | my $unifdef = "scripts/unifdef -U__KERNEL__"; |
| 22 | 25 | ||
