Browse Source

add release target, to just build one system

Waldemar Brodkorb 10 years ago
parent
commit
df5c8cb4c8
2 changed files with 15 additions and 0 deletions
  1. 3 0
      Makefile
  2. 12 0
      mk/build.mk

+ 3 - 0
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
 

+ 12 - 0
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 \