diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2008-06-08 06:28:22 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2008-07-25 16:08:41 -0400 |
commit | f6ecd4c84a279a7c82f45687a612302becd7b844 (patch) | |
tree | e4c42627851c8f08079b9d8e3e44cc47a18ba4fb /Makefile | |
parent | 62284a37dcd6725921410fb75446d270cc726b4f (diff) |
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>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1026,8 +1026,9 @@ __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)for arch in $(hdr-archs); do \ | 1029 | $(Q)set -e; for arch in $(hdr-archs); do \ |
1030 | $(MAKE) ARCH=$$arch $(hdr-inst)=include BIASMDIR=-bi-$$arch ;\ | 1030 | $(MAKE) ARCH=$$arch SRCARCH=$$arch $(hdr-inst)=include \ |
1031 | BIASMDIR=-bi-$$arch ;\ | ||
1031 | done | 1032 | done |
1032 | 1033 | ||
1033 | PHONY += headers_install | 1034 | PHONY += headers_install |
@@ -1040,8 +1041,9 @@ headers_install: __headers | |||
1040 | 1041 | ||
1041 | PHONY += headers_check_all | 1042 | PHONY += headers_check_all |
1042 | headers_check_all: headers_install_all | 1043 | headers_check_all: headers_install_all |
1043 | $(Q)for arch in $(hdr-archs); do \ | 1044 | $(Q)set -e; for arch in $(hdr-archs); do \ |
1044 | $(MAKE) ARCH=$$arch $(hdr-inst)=include BIASMDIR=-bi-$$arch HDRCHECK=1 ;\ | 1045 | $(MAKE) ARCH=$$arch SRCARCH=$$arch $(hdr-inst)=include \ |
1046 | BIASMDIR=-bi-$$arch HDRCHECK=1 ;\ | ||
1045 | done | 1047 | done |
1046 | 1048 | ||
1047 | PHONY += headers_check | 1049 | PHONY += headers_check |