diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-10-03 23:56:04 -0400 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-10-09 21:00:47 -0400 |
commit | 9d022c540606a5a8ae5d1cc02fc12de362ba4585 (patch) | |
tree | c2278e0213b56c25d411429604ea03dbdab2042d /Makefile | |
parent | 37131ec4f9cb60750be6f75fca20ff6bbf1b8efd (diff) |
kbuild: replace $(hdr-arch) with $(SRCARCH)
Since commit 5e53879008b9 ("sparc,sparc64: unify Makefile"), hdr-arch
and SRCARCH always match.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 21 |
1 files changed, 9 insertions, 12 deletions
@@ -283,9 +283,6 @@ ifeq ($(ARCH),tilegx) | |||
283 | SRCARCH := tile | 283 | SRCARCH := tile |
284 | endif | 284 | endif |
285 | 285 | ||
286 | # Where to locate arch specific headers | ||
287 | hdr-arch := $(SRCARCH) | ||
288 | |||
289 | KCONFIG_CONFIG ?= .config | 286 | KCONFIG_CONFIG ?= .config |
290 | export KCONFIG_CONFIG | 287 | export KCONFIG_CONFIG |
291 | 288 | ||
@@ -378,8 +375,8 @@ CFLAGS_KCOV := $(call cc-option,-fsanitize-coverage=trace-pc,) | |||
378 | 375 | ||
379 | # Use USERINCLUDE when you must reference the UAPI directories only. | 376 | # Use USERINCLUDE when you must reference the UAPI directories only. |
380 | USERINCLUDE := \ | 377 | USERINCLUDE := \ |
381 | -I$(srctree)/arch/$(hdr-arch)/include/uapi \ | 378 | -I$(srctree)/arch/$(SRCARCH)/include/uapi \ |
382 | -I$(objtree)/arch/$(hdr-arch)/include/generated/uapi \ | 379 | -I$(objtree)/arch/$(SRCARCH)/include/generated/uapi \ |
383 | -I$(srctree)/include/uapi \ | 380 | -I$(srctree)/include/uapi \ |
384 | -I$(objtree)/include/generated/uapi \ | 381 | -I$(objtree)/include/generated/uapi \ |
385 | -include $(srctree)/include/linux/kconfig.h | 382 | -include $(srctree)/include/linux/kconfig.h |
@@ -387,8 +384,8 @@ USERINCLUDE := \ | |||
387 | # Use LINUXINCLUDE when you must reference the include/ directory. | 384 | # Use LINUXINCLUDE when you must reference the include/ directory. |
388 | # Needed to be compatible with the O= option | 385 | # Needed to be compatible with the O= option |
389 | LINUXINCLUDE := \ | 386 | LINUXINCLUDE := \ |
390 | -I$(srctree)/arch/$(hdr-arch)/include \ | 387 | -I$(srctree)/arch/$(SRCARCH)/include \ |
391 | -I$(objtree)/arch/$(hdr-arch)/include/generated \ | 388 | -I$(objtree)/arch/$(SRCARCH)/include/generated \ |
392 | $(if $(KBUILD_SRC), -I$(srctree)/include) \ | 389 | $(if $(KBUILD_SRC), -I$(srctree)/include) \ |
393 | -I$(objtree)/include \ | 390 | -I$(objtree)/include \ |
394 | $(USERINCLUDE) | 391 | $(USERINCLUDE) |
@@ -1134,8 +1131,8 @@ headerdep: | |||
1134 | #Default location for installed headers | 1131 | #Default location for installed headers |
1135 | export INSTALL_HDR_PATH = $(objtree)/usr | 1132 | export INSTALL_HDR_PATH = $(objtree)/usr |
1136 | 1133 | ||
1137 | # If we do an all arch process set dst to include/arch-$(hdr-arch) | 1134 | # If we do an all arch process set dst to include/arch-$(SRCARCH) |
1138 | hdr-dst = $(if $(KBUILD_HEADERS), dst=include/arch-$(hdr-arch), dst=include) | 1135 | hdr-dst = $(if $(KBUILD_HEADERS), dst=include/arch-$(SRCARCH), dst=include) |
1139 | 1136 | ||
1140 | PHONY += archheaders | 1137 | PHONY += archheaders |
1141 | archheaders: | 1138 | archheaders: |
@@ -1153,10 +1150,10 @@ headers_install_all: | |||
1153 | 1150 | ||
1154 | PHONY += headers_install | 1151 | PHONY += headers_install |
1155 | headers_install: __headers | 1152 | headers_install: __headers |
1156 | $(if $(wildcard $(srctree)/arch/$(hdr-arch)/include/uapi/asm/Kbuild),, \ | 1153 | $(if $(wildcard $(srctree)/arch/$(SRCARCH)/include/uapi/asm/Kbuild),, \ |
1157 | $(error Headers not exportable for the $(SRCARCH) architecture)) | 1154 | $(error Headers not exportable for the $(SRCARCH) architecture)) |
1158 | $(Q)$(MAKE) $(hdr-inst)=include/uapi dst=include | 1155 | $(Q)$(MAKE) $(hdr-inst)=include/uapi dst=include |
1159 | $(Q)$(MAKE) $(hdr-inst)=arch/$(hdr-arch)/include/uapi $(hdr-dst) | 1156 | $(Q)$(MAKE) $(hdr-inst)=arch/$(SRCARCH)/include/uapi $(hdr-dst) |
1160 | 1157 | ||
1161 | PHONY += headers_check_all | 1158 | PHONY += headers_check_all |
1162 | headers_check_all: headers_install_all | 1159 | headers_check_all: headers_install_all |
@@ -1165,7 +1162,7 @@ headers_check_all: headers_install_all | |||
1165 | PHONY += headers_check | 1162 | PHONY += headers_check |
1166 | headers_check: headers_install | 1163 | headers_check: headers_install |
1167 | $(Q)$(MAKE) $(hdr-inst)=include/uapi dst=include HDRCHECK=1 | 1164 | $(Q)$(MAKE) $(hdr-inst)=include/uapi dst=include HDRCHECK=1 |
1168 | $(Q)$(MAKE) $(hdr-inst)=arch/$(hdr-arch)/include/uapi $(hdr-dst) HDRCHECK=1 | 1165 | $(Q)$(MAKE) $(hdr-inst)=arch/$(SRCARCH)/include/uapi $(hdr-dst) HDRCHECK=1 |
1169 | 1166 | ||
1170 | # --------------------------------------------------------------------------- | 1167 | # --------------------------------------------------------------------------- |
1171 | # Kernel selftest | 1168 | # Kernel selftest |