summaryrefslogtreecommitdiff
path: root/mk/build.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/build.mk')
-rw-r--r--mk/build.mk12
1 files changed, 8 insertions, 4 deletions
diff --git a/mk/build.mk b/mk/build.mk
index 6761d2b40..ea0adbb95 100644
--- a/mk/build.mk
+++ b/mk/build.mk
@@ -460,9 +460,10 @@ bulk:
echo === building $$target $$libc $$fs on $$(date); \
$(GMAKE) prereq && \
$(GMAKE) TARGET=$$target LIBC=$$libc FS=$$fs defconfig; \
- $(GMAKE) VERBOSE=1 all; \
+ $(GMAKE) VERBOSE=1 all; if [ $$? -ne 0 ]; then touch .exit;fi; \
rm .config; \
) 2>&1 | tee $(TOPDIR)/bin/$${target}_$$libc/$$target-$$libc-$$fs.log; \
+ if [ -f .exit ];then echo "Bulk build failed!"; rm .exit; exit 1;fi \
done <${TOPDIR}/target/bulkdef.lst
bulktoolchain:
@@ -472,9 +473,10 @@ bulktoolchain:
echo === building $$target $$libc on $$(date); \
$(GMAKE) prereq && \
$(GMAKE) TARGET=$$target LIBC=$$libc defconfig; \
- $(GMAKE) VERBOSE=1 all; \
+ $(GMAKE) VERBOSE=1 all; if [ $$? -ne 0 ]; then touch .exit;fi; \
rm .config; \
) 2>&1 | tee $(TOPDIR)/bin/$${target}_$$libc/$$target-$$libc.log; \
+ if [ -f .exit ];then echo "Bulk build failed!"; rm .exit; exit 1;fi \
done <${TOPDIR}/target/bulktool.lst
bulkall:
@@ -484,9 +486,10 @@ bulkall:
echo === building $$target $$libc $$fs on $$(date); \
$(GMAKE) prereq && \
$(GMAKE) TARGET=$$target LIBC=$$libc FS=$$fs allconfig; \
- $(GMAKE) VERBOSE=1 all; \
+ $(GMAKE) VERBOSE=1 all; if [ $$? -ne 0 ]; then touch .exit;fi; \
rm .config; \
) 2>&1 | tee $(TOPDIR)/bin/$${target}_$$libc/$$target-$$libc-$$fs.log; \
+ if [ -f .exit ];then echo "Bulk build failed!"; rm .exit; exit 1;fi \
done <${TOPDIR}/target/bulk.lst
bulkallmod:
@@ -496,9 +499,10 @@ bulkallmod:
echo === building $$target $$libc $$fs on $$(date); \
$(GMAKE) prereq && \
$(GMAKE) TARGET=$$target LIBC=$$libc FS=$$fs allmodconfig; \
- $(GMAKE) VERBOSE=1 all; \
+ $(GMAKE) VERBOSE=1 all; if [ $$? -ne 0 ]; then touch .exit;fi; \
rm .config; \
) 2>&1 | tee $(TOPDIR)/bin/$${target}_$$libc/$$target-$$libc-$$fs.log; \
+ if [ -f .exit ];then echo "Bulk build failed!"; rm .exit; exit 1;fi \
done <${TOPDIR}/target/bulk.lst
${TOPDIR}/bin/tools/pkgmaker: