summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile3
-rw-r--r--mk/build.mk12
2 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2658c12dd..7a01e93d9 100644
--- a/Makefile
+++ b/Makefile
@@ -146,6 +146,9 @@ allmodconfig: .prereq_done
package_index: .prereq_done
@${GMAKE_INV} package_index
+release: .prereq_done
+ @${GMAKE_INV} release
+
bulk: .prereq_done
@${GMAKE_INV} bulk
diff --git a/mk/build.mk b/mk/build.mk
index f5d62460f..a6c5a7646 100644
--- a/mk/build.mk
+++ b/mk/build.mk
@@ -562,6 +562,18 @@ bulktoolchain:
if [ -f .exit ];then echo "Bulk build failed!"; rm .exit; exit 1;fi \
done
+release:
+ for libc in uclibc eglibc glibc musl;do \
+ mkdir -p $(TOPDIR)/bin/$(SYSTEM)_$(ARCH)_$$libc; \
+ ( \
+ echo === building $$libc on $$(date); \
+ $(GMAKE) prereq && \
+ $(GMAKE) ARCH=$(ARCH) SYSTEM=$(SYSTEM) LIBC=$$libc FS=archive allmodconfig; \
+ $(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; \
+ done
+
# build all target architecture, target systems and libc combinations
bulk:
for libc in uclibc eglibc glibc musl;do \