aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/kbuild/makefiles.txt8
-rw-r--r--scripts/Makefile.headersinst7
2 files changed, 6 insertions, 9 deletions
diff --git a/Documentation/kbuild/makefiles.txt b/Documentation/kbuild/makefiles.txt
index ab0a984530d8..ec9ae6708691 100644
--- a/Documentation/kbuild/makefiles.txt
+++ b/Documentation/kbuild/makefiles.txt
@@ -45,7 +45,7 @@ This document describes the Linux kernel Makefiles.
45 45
46 === 7 Kbuild syntax for exported headers 46 === 7 Kbuild syntax for exported headers
47 --- 7.1 header-y 47 --- 7.1 header-y
48 --- 7.2 objhdr-y 48 --- 7.2 genhdr-y
49 --- 7.3 destination-y 49 --- 7.3 destination-y
50 --- 7.4 generic-y 50 --- 7.4 generic-y
51 51
@@ -1282,15 +1282,15 @@ See subsequent chapter for the syntax of the Kbuild file.
1282 1282
1283 Subdirectories are visited before their parent directories. 1283 Subdirectories are visited before their parent directories.
1284 1284
1285 --- 7.2 objhdr-y 1285 --- 7.2 genhdr-y
1286 1286
1287 objhdr-y specifies generated files to be exported. 1287 genhdr-y specifies generated files to be exported.
1288 Generated files are special as they need to be looked 1288 Generated files are special as they need to be looked
1289 up in another directory when doing 'make O=...' builds. 1289 up in another directory when doing 'make O=...' builds.
1290 1290
1291 Example: 1291 Example:
1292 #include/linux/Kbuild 1292 #include/linux/Kbuild
1293 objhdr-y += version.h 1293 genhdr-y += version.h
1294 1294
1295 --- 7.3 destination-y 1295 --- 7.3 destination-y
1296 1296
diff --git a/scripts/Makefile.headersinst b/scripts/Makefile.headersinst
index d3bae5e7b601..463b95acc15b 100644
--- a/scripts/Makefile.headersinst
+++ b/scripts/Makefile.headersinst
@@ -3,8 +3,7 @@
3# 3#
4# header-y - list files to be installed. They are preprocessed 4# header-y - list files to be installed. They are preprocessed
5# to remove __KERNEL__ section of the file 5# to remove __KERNEL__ section of the file
6# objhdr-y - Same as header-y but for generated files 6# genhdr-y - Same as header-y but in a generated/ directory
7# genhdr-y - Same as objhdr-y but in a generated/ directory
8# 7#
9# ========================================================================== 8# ==========================================================================
10 9
@@ -37,9 +36,8 @@ wrapper-files := $(filter $(header-y), $(generic-y))
37 36
38# all headers files for this dir 37# all headers files for this dir
39header-y := $(filter-out $(generic-y), $(header-y)) 38header-y := $(filter-out $(generic-y), $(header-y))
40all-files := $(header-y) $(objhdr-y) $(genhdr-y) $(wrapper-files) 39all-files := $(header-y) $(genhdr-y) $(wrapper-files)
41input-files := $(addprefix $(srctree)/$(obj)/,$(header-y)) \ 40input-files := $(addprefix $(srctree)/$(obj)/,$(header-y)) \
42 $(addprefix $(objtree)/$(obj)/,$(objhdr-y)) \
43 $(addprefix $(objtree)/$(gen)/,$(genhdr-y)) 41 $(addprefix $(objtree)/$(gen)/,$(genhdr-y))
44output-files := $(addprefix $(install)/, $(all-files)) 42output-files := $(addprefix $(install)/, $(all-files))
45 43
@@ -56,7 +54,6 @@ quiet_cmd_install = INSTALL $(printdir) ($(words $(all-files))\
56 file$(if $(word 2, $(all-files)),s)) 54 file$(if $(word 2, $(all-files)),s))
57 cmd_install = \ 55 cmd_install = \
58 $(PERL) $< $(srctree)/$(obj) $(install) $(SRCARCH) $(header-y); \ 56 $(PERL) $< $(srctree)/$(obj) $(install) $(SRCARCH) $(header-y); \
59 $(PERL) $< $(objtree)/$(obj) $(install) $(SRCARCH) $(objhdr-y); \
60 $(PERL) $< $(objtree)/$(gen) $(install) $(SRCARCH) $(genhdr-y); \ 57 $(PERL) $< $(objtree)/$(gen) $(install) $(SRCARCH) $(genhdr-y); \
61 for F in $(wrapper-files); do \ 58 for F in $(wrapper-files); do \
62 echo "\#include <asm-generic/$$F>" > $(install)/$$F; \ 59 echo "\#include <asm-generic/$$F>" > $(install)/$$F; \