aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-05-10 23:45:36 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2017-05-10 23:45:36 -0400
commit791a9a666d1afe2603bcb2c6a4852d684e879252 (patch)
tree5ebffa701b75c843fb10455b1e776e5df798d715 /Makefile
parent23ea3f62f3f90caaa7b4bf32690c341101228cca (diff)
parent3e18c637fa3e2f6836a4034c80ca0a86be968efc (diff)
Merge tag 'kbuild-uapi-v4.12' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
Pull Kbuild UAPI updates from Masahiro Yamada: "Improvement of headers_install by Nicolas Dichtel. It has been long since the introduction of uapi directories, but the de-coupling of exported headers has not been completed. Headers listed in header-y are exported whether they exist in uapi directories or not. His work fixes this inconsistency. All (and only) headers under uapi directories are now exported. The asm-generic wrappers are still exceptions, but this is a big step forward" * tag 'kbuild-uapi-v4.12' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild: arch/include: remove empty Kbuild files uapi: export all arch specifics directories uapi: export all headers under uapi directories smc_diag.h: fix include from userland btrfs_tree.h: fix include from userland uapi: includes linux/types.h before exporting files Makefile.headersinst: remove destination-y option Makefile.headersinst: cleanup input files x86: stop exporting msr-index.h to userland nios2: put setup.h in uapi h8300: put bitsperlong.h in uapi
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index c0a5fab8d14c..2c2dfd8e04f9 100644
--- a/Makefile
+++ b/Makefile
@@ -1142,7 +1142,7 @@ firmware_install:
1142export INSTALL_HDR_PATH = $(objtree)/usr 1142export INSTALL_HDR_PATH = $(objtree)/usr
1143 1143
1144# If we do an all arch process set dst to asm-$(hdr-arch) 1144# If we do an all arch process set dst to asm-$(hdr-arch)
1145hdr-dst = $(if $(KBUILD_HEADERS), dst=include/asm-$(hdr-arch), dst=include/asm) 1145hdr-dst = $(if $(KBUILD_HEADERS), dst=include/arch-$(hdr-arch), dst=include)
1146 1146
1147PHONY += archheaders 1147PHONY += archheaders
1148archheaders: 1148archheaders:
@@ -1163,7 +1163,7 @@ headers_install: __headers
1163 $(if $(wildcard $(srctree)/arch/$(hdr-arch)/include/uapi/asm/Kbuild),, \ 1163 $(if $(wildcard $(srctree)/arch/$(hdr-arch)/include/uapi/asm/Kbuild),, \
1164 $(error Headers not exportable for the $(SRCARCH) architecture)) 1164 $(error Headers not exportable for the $(SRCARCH) architecture))
1165 $(Q)$(MAKE) $(hdr-inst)=include/uapi 1165 $(Q)$(MAKE) $(hdr-inst)=include/uapi
1166 $(Q)$(MAKE) $(hdr-inst)=arch/$(hdr-arch)/include/uapi/asm $(hdr-dst) 1166 $(Q)$(MAKE) $(hdr-inst)=arch/$(hdr-arch)/include/uapi $(hdr-dst)
1167 1167
1168PHONY += headers_check_all 1168PHONY += headers_check_all
1169headers_check_all: headers_install_all 1169headers_check_all: headers_install_all
@@ -1172,7 +1172,7 @@ headers_check_all: headers_install_all
1172PHONY += headers_check 1172PHONY += headers_check
1173headers_check: headers_install 1173headers_check: headers_install
1174 $(Q)$(MAKE) $(hdr-inst)=include/uapi HDRCHECK=1 1174 $(Q)$(MAKE) $(hdr-inst)=include/uapi HDRCHECK=1
1175 $(Q)$(MAKE) $(hdr-inst)=arch/$(hdr-arch)/include/uapi/asm $(hdr-dst) HDRCHECK=1 1175 $(Q)$(MAKE) $(hdr-inst)=arch/$(hdr-arch)/include/uapi/ $(hdr-dst) HDRCHECK=1
1176 1176
1177# --------------------------------------------------------------------------- 1177# ---------------------------------------------------------------------------
1178# Kernel selftest 1178# Kernel selftest