Commit a9d9a400 authored by Masahiro Yamada's avatar Masahiro Yamada

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: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent d1b32bac
...@@ -456,10 +456,11 @@ ifneq ($(KBUILD_SRC),) ...@@ -456,10 +456,11 @@ ifneq ($(KBUILD_SRC),)
endif endif
# Support for using generic headers in asm-generic # Support for using generic headers in asm-generic
PHONY += asm-generic PHONY += asm-generic uapi-asm-generic
asm-generic: asm-generic: uapi-asm-generic
$(Q)$(MAKE) -f $(srctree)/scripts/Makefile.asm-generic \ $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.asm-generic \
src=asm obj=arch/$(SRCARCH)/include/generated/asm src=asm obj=arch/$(SRCARCH)/include/generated/asm
uapi-asm-generic:
$(Q)$(MAKE) -f $(srctree)/scripts/Makefile.asm-generic \ $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.asm-generic \
src=uapi/asm obj=arch/$(SRCARCH)/include/generated/uapi/asm src=uapi/asm obj=arch/$(SRCARCH)/include/generated/uapi/asm
...@@ -1143,7 +1144,7 @@ PHONY += archscripts ...@@ -1143,7 +1144,7 @@ PHONY += archscripts
archscripts: archscripts:
PHONY += __headers 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 $(Q)$(MAKE) $(build)=scripts build_unifdef
PHONY += headers_install_all PHONY += headers_install_all
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment