Skip to content

Commit

Permalink
kbuild: error out early in make headers_install
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sam Ravnborg committed Jul 25, 2008
1 parent 62284a3 commit f6ecd4c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1026,8 +1026,9 @@ __headers: include/linux/version.h scripts_basic FORCE

PHONY += headers_install_all
headers_install_all: __headers
$(Q)for arch in $(hdr-archs); do \
$(MAKE) ARCH=$$arch $(hdr-inst)=include BIASMDIR=-bi-$$arch ;\
$(Q)set -e; for arch in $(hdr-archs); do \
$(MAKE) ARCH=$$arch SRCARCH=$$arch $(hdr-inst)=include \
BIASMDIR=-bi-$$arch ;\
done

PHONY += headers_install
Expand All @@ -1040,8 +1041,9 @@ headers_install: __headers

PHONY += headers_check_all
headers_check_all: headers_install_all
$(Q)for arch in $(hdr-archs); do \
$(MAKE) ARCH=$$arch $(hdr-inst)=include BIASMDIR=-bi-$$arch HDRCHECK=1 ;\
$(Q)set -e; for arch in $(hdr-archs); do \
$(MAKE) ARCH=$$arch SRCARCH=$$arch $(hdr-inst)=include \
BIASMDIR=-bi-$$arch HDRCHECK=1 ;\
done

PHONY += headers_check
Expand Down

0 comments on commit f6ecd4c

Please sign in to comment.