summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-10-29 17:19:17 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2013-10-29 17:19:17 +0100
commiteee410e8adc42e7a505e0a4903b001caabb3b11f (patch)
treea5209bc26eccbd89ef5f7c842f46d75bdb08b6f1
parente71800981a4f6ab2f1f4101844ebb86ad71340ad (diff)
break out after the first error
-rw-r--r--mk/build.mk16
1 files changed, 11 insertions, 5 deletions
diff --git a/mk/build.mk b/mk/build.mk
index 112d53e5b..aeb6bbce0 100644
--- a/mk/build.mk
+++ b/mk/build.mk
@@ -574,12 +574,14 @@ bulk:
echo === building $$arch $$system $$libc on $$(date); \
$(GMAKE) prereq && \
$(GMAKE) ARCH=$$arch SYSTEM=$$system LIBC=$$libc FS=archive defconfig; \
- $(GMAKE) VERBOSE=1 all; if [ $$? -ne 0 ]; then touch .exit;fi; \
+ $(GMAKE) VERBOSE=1 all; if [ $$? -ne 0 ]; then touch .exit; exit 1;fi; \
rm .config; \
) 2>&1 | tee $(TOPDIR)/bin/$${system}_$${arch}_$$libc/build.log; \
+ if [ -f .exit ]; break;fi \
done; \
- if [ -f .exit ];then echo "Bulk build failed!"; rm .exit; exit 1;fi \
+ if [ -f .exit ]; break;fi \
done <${TOPDIR}/target/arch.lst ;\
+ if [ -f .exit ];then echo "Bulk build failed!"; rm .exit; break;fi \
done
bulkall:
@@ -592,12 +594,14 @@ bulkall:
echo === building $$arch $$system $$libc on $$(date); \
$(GMAKE) prereq && \
$(GMAKE) ARCH=$$arch SYSTEM=$$system LIBC=$$libc FS=archive allconfig; \
- $(GMAKE) VERBOSE=1 all; if [ $$? -ne 0 ]; then touch .exit;fi; \
+ $(GMAKE) VERBOSE=1 all; if [ $$? -ne 0 ]; then touch .exit; exit 1;fi; \
rm .config; \
) 2>&1 | tee $(TOPDIR)/bin/$${system}_$${arch}_$$libc/build.log; \
+ if [ -f .exit ]; break;fi \
done; \
- if [ -f .exit ];then echo "Bulk build failed!"; rm .exit; exit 1;fi \
+ if [ -f .exit ]; break;fi \
done <${TOPDIR}/target/arch.lst ;\
+ if [ -f .exit ];then echo "Bulk build failed!"; rm .exit; break;fi \
done
bulkallmod:
@@ -613,9 +617,11 @@ bulkallmod:
$(GMAKE) VERBOSE=1 all; if [ $$? -ne 0 ]; then echo $$system-$$libc >.exit; exit 1;fi; \
rm .config; \
) 2>&1 | tee $(TOPDIR)/bin/$${system}_$${arch}_$$libc/build.log; \
+ if [ -f .exit ]; break;fi \
done; \
- if [ -f .exit ];then echo "Bulk build failed!"; cat .exit;rm .exit; exit 1;fi \
+ if [ -f .exit ]; break;fi \
done <${TOPDIR}/target/arch.lst ;\
+ if [ -f .exit ];then echo "Bulk build failed!"; cat .exit;rm .exit; break;fi \
done
${TOPDIR}/bin/tools/pkgmaker: $(TOPDIR)/tools/adk/pkgmaker.c $(TOPDIR)/tools/adk/sortfile.c $(TOPDIR)/tools/adk/strmap.c