aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2012-10-02 13:01:57 -0400
committerDavid Howells <dhowells@redhat.com>2012-10-02 13:01:57 -0400
commit10b63956fce7f369cc37fd4d994f09bd5203efe4 (patch)
tree4b0e607507b19a89a8c22f21d2552e66255faac5 /Makefile
parentec28b7f250b19f31e14b69b015d61d0818bf43a0 (diff)
UAPI: Plumb the UAPI Kbuilds into the user header installation and checking
Plumb the UAPI Kbuilds into the user header installation and checking system. As the headers are split the entries will be transferred across from the old Kbuild files to the UAPI Kbuild files. The changes made in this commit are: (1) Exported generated files (of which there are currently four) are moved to uapi/ directories under the appropriate generated/ directory, thus we get: include/generated/uapi/linux/version.h arch/x86/include/generated/uapi/asm/unistd_32.h arch/x86/include/generated/uapi/asm/unistd_64.h arch/x86/include/generated/uapi/asm/unistd_x32.h These paths were added to the build as -I flags in a previous patch. (2) scripts/Makefile.headersinst is now given the UAPI path to install from rather than the old path. It then determines the old path from that and includes that Kbuild also if it exists, thus permitting the headers to exist in either directory during the changeover. I also renamed the "install" variable to "installdir" as it refers to a directory not the install program. (3) scripts/headers_install.pl is altered to take a list of source file paths instead of just their names so that the makefile can tell it exactly where to find each file. For the moment, files can be obtained from one of four places for each output directory: .../include/uapi/foo/ .../include/generated/uapi/foo/ .../include/foo/ .../include/generated/foo/ The non-UAPI paths will be dropped later. 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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 1a5d315e2842..86eb6acb3978 100644
--- a/Makefile
+++ b/Makefile
@@ -447,7 +447,7 @@ asm-generic:
447# Detect when mixed targets is specified, and make a second invocation 447# Detect when mixed targets is specified, and make a second invocation
448# of make so .config is not included in this case either (for *config). 448# of make so .config is not included in this case either (for *config).
449 449
450version_h := include/generated/linux/version.h 450version_h := include/generated/uapi/linux/version.h
451 451
452no-dot-config-targets := clean mrproper distclean \ 452no-dot-config-targets := clean mrproper distclean \
453 cscope gtags TAGS tags help %docs check% coccicheck \ 453 cscope gtags TAGS tags help %docs check% coccicheck \
@@ -908,10 +908,10 @@ headers_install_all:
908 908
909PHONY += headers_install 909PHONY += headers_install
910headers_install: __headers 910headers_install: __headers
911 $(if $(wildcard $(srctree)/arch/$(hdr-arch)/include/asm/Kbuild),, \ 911 $(if $(wildcard $(srctree)/arch/$(hdr-arch)/include/uapi/asm/Kbuild),, \
912 $(error Headers not exportable for the $(SRCARCH) architecture)) 912 $(error Headers not exportable for the $(SRCARCH) architecture))
913 $(Q)$(MAKE) $(hdr-inst)=include 913 $(Q)$(MAKE) $(hdr-inst)=include/uapi
914 $(Q)$(MAKE) $(hdr-inst)=arch/$(hdr-arch)/include/asm $(hdr-dst) 914 $(Q)$(MAKE) $(hdr-inst)=arch/$(hdr-arch)/include/uapi/asm $(hdr-dst)
915 915
916PHONY += headers_check_all 916PHONY += headers_check_all
917headers_check_all: headers_install_all 917headers_check_all: headers_install_all
@@ -919,8 +919,8 @@ headers_check_all: headers_install_all
919 919
920PHONY += headers_check 920PHONY += headers_check
921headers_check: headers_install 921headers_check: headers_install
922 $(Q)$(MAKE) $(hdr-inst)=include HDRCHECK=1 922 $(Q)$(MAKE) $(hdr-inst)=include/uapi HDRCHECK=1
923 $(Q)$(MAKE) $(hdr-inst)=arch/$(hdr-arch)/include/asm $(hdr-dst) HDRCHECK=1 923 $(Q)$(MAKE) $(hdr-inst)=arch/$(hdr-arch)/include/uapi/asm $(hdr-dst) HDRCHECK=1
924 924
925# --------------------------------------------------------------------------- 925# ---------------------------------------------------------------------------
926# Modules 926# Modules