summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-10-03 23:56:04 -0400
committerMasahiro Yamada <yamada.masahiro@socionext.com>2017-10-09 21:00:47 -0400
commit9d022c540606a5a8ae5d1cc02fc12de362ba4585 (patch)
treec2278e0213b56c25d411429604ea03dbdab2042d /Makefile
parent37131ec4f9cb60750be6f75fca20ff6bbf1b8efd (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--Makefile21
1 files changed, 9 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index 9aa47218100e..27fcdc1d4ec9 100644
--- a/Makefile
+++ b/Makefile
@@ -283,9 +283,6 @@ ifeq ($(ARCH),tilegx)
283 SRCARCH := tile 283 SRCARCH := tile
284endif 284endif
285 285
286# Where to locate arch specific headers
287hdr-arch := $(SRCARCH)
288
289KCONFIG_CONFIG ?= .config 286KCONFIG_CONFIG ?= .config
290export KCONFIG_CONFIG 287export 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.
380USERINCLUDE := \ 377USERINCLUDE := \
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
389LINUXINCLUDE := \ 386LINUXINCLUDE := \
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
1135export INSTALL_HDR_PATH = $(objtree)/usr 1132export 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)
1138hdr-dst = $(if $(KBUILD_HEADERS), dst=include/arch-$(hdr-arch), dst=include) 1135hdr-dst = $(if $(KBUILD_HEADERS), dst=include/arch-$(SRCARCH), dst=include)
1139 1136
1140PHONY += archheaders 1137PHONY += archheaders
1141archheaders: 1138archheaders:
@@ -1153,10 +1150,10 @@ headers_install_all:
1153 1150
1154PHONY += headers_install 1151PHONY += headers_install
1155headers_install: __headers 1152headers_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
1161PHONY += headers_check_all 1158PHONY += headers_check_all
1162headers_check_all: headers_install_all 1159headers_check_all: headers_install_all
@@ -1165,7 +1162,7 @@ headers_check_all: headers_install_all
1165PHONY += headers_check 1162PHONY += headers_check
1166headers_check: headers_install 1163headers_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