diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 24 |
1 files changed, 13 insertions, 11 deletions
@@ -1014,7 +1014,7 @@ firmware_install: FORCE | |||
1014 | #Default location for installed headers | 1014 | #Default location for installed headers |
1015 | export INSTALL_HDR_PATH = $(objtree)/usr | 1015 | export INSTALL_HDR_PATH = $(objtree)/usr |
1016 | 1016 | ||
1017 | hdr-filter := generic um ppc | 1017 | hdr-filter := generic um ppc sparc64 cris |
1018 | hdr-archs := $(filter-out $(hdr-filter), \ | 1018 | hdr-archs := $(filter-out $(hdr-filter), \ |
1019 | $(patsubst $(srctree)/include/asm-%/Kbuild,%, \ | 1019 | $(patsubst $(srctree)/include/asm-%/Kbuild,%, \ |
1020 | $(wildcard $(srctree)/include/asm-*/Kbuild))) | 1020 | $(wildcard $(srctree)/include/asm-*/Kbuild))) |
@@ -1026,29 +1026,31 @@ __headers: include/linux/version.h scripts_basic FORCE | |||
1026 | 1026 | ||
1027 | PHONY += headers_install_all | 1027 | PHONY += headers_install_all |
1028 | headers_install_all: __headers | 1028 | headers_install_all: __headers |
1029 | $(Q)$(MAKE) $(hdr-inst)=include | ||
1029 | $(Q)set -e; for arch in $(hdr-archs); do \ | 1030 | $(Q)set -e; for arch in $(hdr-archs); do \ |
1030 | $(MAKE) ARCH=$$arch SRCARCH=$$arch $(hdr-inst)=include \ | 1031 | $(MAKE) $(hdr-inst)=include/asm-$$arch \ |
1031 | BIASMDIR=-bi-$$arch ;\ | 1032 | SRCARCH=$$arch dst=include/asm-$$arch; \ |
1032 | done | 1033 | done |
1033 | 1034 | ||
1034 | PHONY += headers_install | 1035 | PHONY += headers_install |
1035 | headers_install: __headers | 1036 | headers_install: __headers |
1036 | $(Q)if [ ! -r $(srctree)/include/asm-$(SRCARCH)/Kbuild ]; then \ | 1037 | $(if $(wildcard $(srctree)/include/asm-$(SRCARCH)/Kbuild),, \ |
1037 | echo '*** Error: Headers not exportable for this architecture ($(SRCARCH))'; \ | 1038 | $(error Headers not exportable for this architecture ($(SRCARCH)))) |
1038 | exit 1 ; \ | 1039 | $(Q)$(MAKE) $(hdr-inst)=include |
1039 | fi | 1040 | $(Q)$(MAKE) $(hdr-inst)=include/asm-$(SRCARCH) dst=include/asm |
1040 | $(Q)$(MAKE) $(hdr-inst)=include ARCH=$(SRCARCH) | ||
1041 | 1041 | ||
1042 | PHONY += headers_check_all | 1042 | PHONY += headers_check_all |
1043 | headers_check_all: headers_install_all | 1043 | headers_check_all: headers_install_all |
1044 | $(Q)$(MAKE) $(hdr-inst)=include HDRCHECK=1 | ||
1044 | $(Q)set -e; for arch in $(hdr-archs); do \ | 1045 | $(Q)set -e; for arch in $(hdr-archs); do \ |
1045 | $(MAKE) ARCH=$$arch SRCARCH=$$arch $(hdr-inst)=include \ | 1046 | $(MAKE) SRCARCH=$$arch $(hdr-inst)=include/asm-$$arch HDRCHECK=1 ;\ |
1046 | BIASMDIR=-bi-$$arch HDRCHECK=1 ;\ | ||
1047 | done | 1047 | done |
1048 | 1048 | ||
1049 | PHONY += headers_check | 1049 | PHONY += headers_check |
1050 | headers_check: headers_install | 1050 | headers_check: headers_install |
1051 | $(Q)$(MAKE) $(hdr-inst)=include ARCH=$(SRCARCH) HDRCHECK=1 | 1051 | $(Q)$(MAKE) $(hdr-inst)=include HDRCHECK=1 |
1052 | $(Q)$(MAKE) $(hdr-inst)=include/asm-$(SRCARCH) \ | ||
1053 | dst=include/asm HDRCHECK=1 | ||
1052 | 1054 | ||
1053 | # --------------------------------------------------------------------------- | 1055 | # --------------------------------------------------------------------------- |
1054 | # Modules | 1056 | # Modules |