[PATCH 05/24] kbuild: error out early in make headers_install

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Sam Ravnborg
Date: Monday, June 30, 2008 - 2:34 pm

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>
---
 Makefile |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index c65fe4f..d676c39 100644
--- a/Makefile
+++ b/Makefile
@@ -1012,8 +1012,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
@@ -1026,8 +1027,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
-- 
1.5.6.1.93.gef98

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
kbuild - pending stuff, and Maintainer news, Sam Ravnborg, (Mon Jun 30, 2:31 pm)
[PATCH 05/24] kbuild: error out early in make headers_install, Sam Ravnborg, (Mon Jun 30, 2:34 pm)
[PATCH 07/24] kbuild: optimize headers_* targets, Sam Ravnborg, (Mon Jun 30, 2:35 pm)
[PATCH 08/24] kbuild: make clean removes *.o.* as well, Sam Ravnborg, (Mon Jun 30, 2:35 pm)
[PATCH 16/24] kernel-doc: handle/strip __init, Sam Ravnborg, (Mon Jun 30, 2:35 pm)
[PATCH 17/24] kbuild: sparse needs CF not CHECKFLAGS, Sam Ravnborg, (Mon Jun 30, 2:35 pm)
[PATCH 19/24] kconfig: add diffconfig utility, Sam Ravnborg, (Mon Jun 30, 2:35 pm)
[PATCH 22/24] kconfig: speed up all*config + randconfig, Sam Ravnborg, (Mon Jun 30, 2:35 pm)