Commit f6ecd4c8 authored by Sam Ravnborg's avatar Sam Ravnborg

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: default avatarSam Ravnborg <sam@ravnborg.org>
parent 62284a37
...@@ -1026,8 +1026,9 @@ __headers: include/linux/version.h scripts_basic FORCE ...@@ -1026,8 +1026,9 @@ __headers: include/linux/version.h scripts_basic FORCE
PHONY += headers_install_all PHONY += headers_install_all
headers_install_all: __headers headers_install_all: __headers
$(Q)for arch in $(hdr-archs); do \ $(Q)set -e; for arch in $(hdr-archs); do \
$(MAKE) ARCH=$$arch $(hdr-inst)=include BIASMDIR=-bi-$$arch ;\ $(MAKE) ARCH=$$arch SRCARCH=$$arch $(hdr-inst)=include \
BIASMDIR=-bi-$$arch ;\
done done
PHONY += headers_install PHONY += headers_install
...@@ -1040,8 +1041,9 @@ headers_install: __headers ...@@ -1040,8 +1041,9 @@ headers_install: __headers
PHONY += headers_check_all PHONY += headers_check_all
headers_check_all: headers_install_all headers_check_all: headers_install_all
$(Q)for arch in $(hdr-archs); do \ $(Q)set -e; for arch in $(hdr-archs); do \
$(MAKE) ARCH=$$arch $(hdr-inst)=include BIASMDIR=-bi-$$arch HDRCHECK=1 ;\ $(MAKE) ARCH=$$arch SRCARCH=$$arch $(hdr-inst)=include \
BIASMDIR=-bi-$$arch HDRCHECK=1 ;\
done done
PHONY += headers_check PHONY += headers_check
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment