aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 3 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index b9d747e4e7c0..924c62ee4d61 100644
--- a/Makefile
+++ b/Makefile
@@ -1070,11 +1070,6 @@ firmware_install: FORCE
1070export INSTALL_HDR_PATH = $(objtree)/usr 1070export INSTALL_HDR_PATH = $(objtree)/usr
1071 1071
1072hdr-inst := -rR -f $(srctree)/scripts/Makefile.headersinst obj 1072hdr-inst := -rR -f $(srctree)/scripts/Makefile.headersinst obj
1073# Find out where the Kbuild file is located to support
1074# arch/$(ARCH)/include/asm
1075hdr-dir = $(strip \
1076 $(if $(wildcard $(srctree)/arch/$(hdr-arch)/include/asm/Kbuild), \
1077 arch/$(hdr-arch)/include/asm, include/asm-$(hdr-arch)))
1078 1073
1079# If we do an all arch process set dst to asm-$(hdr-arch) 1074# If we do an all arch process set dst to asm-$(hdr-arch)
1080hdr-dst = $(if $(KBUILD_HEADERS), dst=include/asm-$(hdr-arch), dst=include/asm) 1075hdr-dst = $(if $(KBUILD_HEADERS), dst=include/asm-$(hdr-arch), dst=include/asm)
@@ -1089,10 +1084,10 @@ headers_install_all:
1089 1084
1090PHONY += headers_install 1085PHONY += headers_install
1091headers_install: __headers 1086headers_install: __headers
1092 $(if $(wildcard $(srctree)/$(hdr-dir)/Kbuild),, \ 1087 $(if $(wildcard $(srctree)/arch/$(hdr-arch)/include/asm/Kbuild),, \
1093 $(error Headers not exportable for the $(SRCARCH) architecture)) 1088 $(error Headers not exportable for the $(SRCARCH) architecture))
1094 $(Q)$(MAKE) $(hdr-inst)=include 1089 $(Q)$(MAKE) $(hdr-inst)=include
1095 $(Q)$(MAKE) $(hdr-inst)=$(hdr-dir) $(hdr-dst) 1090 $(Q)$(MAKE) $(hdr-inst)=arch/$(hdr-arch)/include/asm $(hdr-dst)
1096 1091
1097PHONY += headers_check_all 1092PHONY += headers_check_all
1098headers_check_all: headers_install_all 1093headers_check_all: headers_install_all
@@ -1101,7 +1096,7 @@ headers_check_all: headers_install_all
1101PHONY += headers_check 1096PHONY += headers_check
1102headers_check: headers_install 1097headers_check: headers_install
1103 $(Q)$(MAKE) $(hdr-inst)=include HDRCHECK=1 1098 $(Q)$(MAKE) $(hdr-inst)=include HDRCHECK=1
1104 $(Q)$(MAKE) $(hdr-inst)=$(hdr-dir) $(hdr-dst) HDRCHECK=1 1099 $(Q)$(MAKE) $(hdr-inst)=arch/$(hdr-arch)/include/asm $(hdr-dst) HDRCHECK=1
1105 1100
1106# --------------------------------------------------------------------------- 1101# ---------------------------------------------------------------------------
1107# Modules 1102# Modules