summaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.headersinst
diff options
context:
space:
mode:
authorNicolas Dichtel <nicolas.dichtel@6wind.com>2017-03-27 08:20:16 -0400
committerMasahiro Yamada <yamada.masahiro@socionext.com>2017-05-10 11:22:17 -0400
commit61562f981e9284ff7dfb2769d89c750986a5f677 (patch)
treeea4e0e77ffc22af3ed6bfb8814f5c3289de97d70 /scripts/Makefile.headersinst
parentfcc8487d477a3452a1d0ccbdd4c5e0e1e3cb8bed (diff)
uapi: export all arch specifics directories
This patch removes the need of subdir-y. Now all files/directories under arch/<arch>/include/uapi/ are exported. The only change for userland is the layout of the command 'make headers_install_all': directories asm-<arch> are replaced by arch-<arch>/. Those new directories contains all files/directories of the specified arch. Note that only cris and tile have more directories than only asm: - arch-v[10|32] for cris; - arch for tile. Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts/Makefile.headersinst')
-rw-r--r--scripts/Makefile.headersinst3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/Makefile.headersinst b/scripts/Makefile.headersinst
index 20be1fbc19cc..6ba97a1f9c5a 100644
--- a/scripts/Makefile.headersinst
+++ b/scripts/Makefile.headersinst
@@ -2,7 +2,7 @@
2# Installing headers 2# Installing headers
3# 3#
4# All headers under include/uapi, include/generated/uapi, 4# All headers under include/uapi, include/generated/uapi,
5# arch/<arch>/include/uapi/asm and arch/<arch>/include/generated/uapi/asm are 5# arch/<arch>/include/uapi and arch/<arch>/include/generated/uapi are
6# exported. 6# exported.
7# They are preprocessed to remove __KERNEL__ section of the file. 7# They are preprocessed to remove __KERNEL__ section of the file.
8# 8#
@@ -30,7 +30,6 @@ installdir := $(INSTALL_HDR_PATH)/$(subst uapi/,,$(_dst))
30srcdir := $(srctree)/$(obj) 30srcdir := $(srctree)/$(obj)
31gendir := $(objtree)/$(gen) 31gendir := $(objtree)/$(gen)
32subdirs := $(patsubst $(srcdir)/%/.,%,$(wildcard $(srcdir)/*/.)) 32subdirs := $(patsubst $(srcdir)/%/.,%,$(wildcard $(srcdir)/*/.))
33subdirs += $(subdir-y)
34header-files := $(notdir $(wildcard $(srcdir)/*.h)) 33header-files := $(notdir $(wildcard $(srcdir)/*.h))
35header-files += $(notdir $(wildcard $(srcdir)/*.agh)) 34header-files += $(notdir $(wildcard $(srcdir)/*.agh))
36header-files := $(filter-out $(no-export-headers), $(header-files)) 35header-files := $(filter-out $(no-export-headers), $(header-files))