diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-07-10 03:32:59 +0900 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-07-11 21:33:54 +0900 |
commit | a9d9a400e0753491e3eacc9f4dbc60547ea1de45 (patch) | |
tree | 7acab07b06631e8c9bdd6be94369eec507af8f33 /Makefile | |
parent | d1b32bacffe189a0cdc2c36905a753535638cb1c (diff) | |
download | linux-a9d9a400e0753491e3eacc9f4dbc60547ea1de45.tar.gz linux-a9d9a400e0753491e3eacc9f4dbc60547ea1de45.tar.bz2 linux-a9d9a400e0753491e3eacc9f4dbc60547ea1de45.zip |
kbuild: split exported generic header creation into uapi-asm-generic
When we install headers, we are interested only in headers under uapi
directories. Split out uapi-asm-generic target and make headers_install
depend on it. It will avoid generating unneeded asm-generic wrappers.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -456,10 +456,11 @@ ifneq ($(KBUILD_SRC),) endif # Support for using generic headers in asm-generic -PHONY += asm-generic -asm-generic: +PHONY += asm-generic uapi-asm-generic +asm-generic: uapi-asm-generic $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.asm-generic \ src=asm obj=arch/$(SRCARCH)/include/generated/asm +uapi-asm-generic: $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.asm-generic \ src=uapi/asm obj=arch/$(SRCARCH)/include/generated/uapi/asm @@ -1143,7 +1144,7 @@ PHONY += archscripts archscripts: PHONY += __headers -__headers: $(version_h) scripts_basic asm-generic archheaders archscripts +__headers: $(version_h) scripts_basic uapi-asm-generic archheaders archscripts $(Q)$(MAKE) $(build)=scripts build_unifdef PHONY += headers_install_all |