Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1663224

[PATCH 26/27] kbuild: split exported generic header creation into uapi-asm-generic

From Masahiro Yamada <yamada.masahiro@socionext.com>
Newsgroups linux.kernel
Subject [PATCH 26/27] kbuild: split exported generic header creation into uapi-asm-generic
Date 2017-06-12 05:40 +0200
Message-ID <tRomT-5hX-25@gated-at.bofh.it> (permalink)
References <tRodb-5eV-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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>
---

 Makefile | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 1bb8c07db134..4fe556511c0d 100644
--- a/Makefile
+++ b/Makefile
@@ -465,10 +465,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
 
@@ -1151,7 +1152,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
-- 
2.7.4

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 00/27] kbuild, arch: complete UAPI de-coupling and cleanup scripts/Makefile.headersinst Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-06-12 05:40 +0200
  [PATCH 26/27] kbuild: split exported generic header creation into uapi-asm-generic Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-06-12 05:40 +0200
  [PATCH 24/27] xtensa: move generic-y of exported headers to uapi/asm/Kbuild Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-06-12 05:40 +0200
  [PATCH 10/27] h8300: move generic-y of exported headers to uapi/asm/Kbuild Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-06-12 05:40 +0200
  [PATCH 09/27] cris: move generic-y of exported headers to uapi/asm/Kbuild Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-06-12 05:40 +0200
  [PATCH 01/27] kbuild: remove useless $(gen) variable in Makefile.headersinst Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-06-12 05:40 +0200
  [PATCH 20/27] sh: move generic-y of exported headers to uapi/asm/Kbuild Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-06-12 05:40 +0200

csiph-web