Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

kbuild: error out early in make headers_install

Fix the a.out.h case by setting SRCARCH and error
out early in case of an error.
The a.out.h case failed with the *_all targets.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>

+6 -4
+6 -4
Makefile
··· 1026 1026 1027 1027 PHONY += headers_install_all 1028 1028 headers_install_all: __headers 1029 - $(Q)for arch in $(hdr-archs); do \ 1030 - $(MAKE) ARCH=$$arch $(hdr-inst)=include BIASMDIR=-bi-$$arch ;\ 1029 + $(Q)set -e; for arch in $(hdr-archs); do \ 1030 + $(MAKE) ARCH=$$arch SRCARCH=$$arch $(hdr-inst)=include \ 1031 + BIASMDIR=-bi-$$arch ;\ 1031 1032 done 1032 1033 1033 1034 PHONY += headers_install ··· 1041 1040 1042 1041 PHONY += headers_check_all 1043 1042 headers_check_all: headers_install_all 1044 - $(Q)for arch in $(hdr-archs); do \ 1045 - $(MAKE) ARCH=$$arch $(hdr-inst)=include BIASMDIR=-bi-$$arch HDRCHECK=1 ;\ 1043 + $(Q)set -e; for arch in $(hdr-archs); do \ 1044 + $(MAKE) ARCH=$$arch SRCARCH=$$arch $(hdr-inst)=include \ 1045 + BIASMDIR=-bi-$$arch HDRCHECK=1 ;\ 1046 1046 done 1047 1047 1048 1048 PHONY += headers_check