diff options
author | David Howells <dhowells@redhat.com> | 2012-10-02 13:01:56 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2012-10-02 13:01:56 -0400 |
commit | 40f1d4c200187e4057380432d0d7f27450c34518 (patch) | |
tree | 7a9a647e4e3f184c9ac61ab6ec1e2de665369cfe | |
parent | d183e6f570f3c0c23d253fd262c90244e72d7ffd (diff) |
UAPI: Remove the objhdr-y export list
Remove the objhdr-y export list as it is no longer used. genhdr-y should be
used instead.
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Acked-by: Dave Jones <davej@redhat.com>
-rw-r--r-- | Documentation/kbuild/makefiles.txt | 8 | ||||
-rw-r--r-- | scripts/Makefile.headersinst | 7 |
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 |
39 | header-y := $(filter-out $(generic-y), $(header-y)) | 38 | header-y := $(filter-out $(generic-y), $(header-y)) |
40 | all-files := $(header-y) $(objhdr-y) $(genhdr-y) $(wrapper-files) | 39 | all-files := $(header-y) $(genhdr-y) $(wrapper-files) |
41 | input-files := $(addprefix $(srctree)/$(obj)/,$(header-y)) \ | 40 | input-files := $(addprefix $(srctree)/$(obj)/,$(header-y)) \ |
42 | $(addprefix $(objtree)/$(obj)/,$(objhdr-y)) \ | ||
43 | $(addprefix $(objtree)/$(gen)/,$(genhdr-y)) | 41 | $(addprefix $(objtree)/$(gen)/,$(genhdr-y)) |
44 | output-files := $(addprefix $(install)/, $(all-files)) | 42 | output-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; \ |