summaryrefslogtreecommitdiff
path: root/mk/build.mk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-03-02 15:26:07 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2014-03-02 15:26:07 +0100
commitf6c5a79972bcd216429484eb706fc47c7bb52a75 (patch)
tree4f5e17701c66df5d2359486687f1fd41b2fb469e /mk/build.mk
parent00fa581bc6acc3158b3008019e81802a5d70418c (diff)
parentb8e1fbce6811e906e7c8bd21f4e7fe1aa4881585 (diff)
resolve merge conflict
Diffstat (limited to 'mk/build.mk')
-rw-r--r--mk/build.mk25
1 files changed, 16 insertions, 9 deletions
diff --git a/mk/build.mk b/mk/build.mk
index c0f05556f..37f27b12b 100644
--- a/mk/build.mk
+++ b/mk/build.mk
@@ -104,7 +104,7 @@ POSTCONFIG= -@\
fi; \
done; \
if [ "$$(grep ^ADK_RUNTIME_TIMEZONE .config|md5sum)" != "$$(grep ^ADK_RUNTIME_TIMEZONE .config.old|md5sum)" ];then \
- touch .rebuild.eglibc .rebuild.uclibc .rebuild.glibc;\
+ touch .rebuild.musl .rebuild.uclibc .rebuild.glibc;\
rebuild=1;\
fi; \
if [ "$$(grep ^ADK_RUNTIME_SSH_PUBKEY .config|md5sum)" != "$$(grep ^ADK_RUNTIME_SSH_PUBKEY .config.old|md5sum)" ];then \
@@ -389,6 +389,12 @@ endif
|sed -e "s#^config \(.*\)#\1=y#" \
>> $(TOPDIR)/.defconfig; \
fi
+ @if [ ! -z "$(COLLECTION)" ];then \
+ grep -h "^config" target/packages/pkg-available/* \
+ |grep -i "$(COLLECTION)" \
+ |sed -e "s#^config \(.*\)#\1=y#" \
+ >> $(TOPDIR)/.defconfig; \
+ fi
@if [ ! -z "$(PKG)" ];then \
grep "^config" target/config/Config.in \
|grep -i "$(PKG)" \
@@ -533,7 +539,7 @@ endif # ! ifeq ($(strip $(ADK_HAVE_DOT_CONFIG)),y)
# build all target architecture and libc combinations (toolchain only)
bulktoolchain:
- for libc in glibc eglibc uclibc musl;do \
+ for libc in glibc uclibc musl;do \
while read arch; do \
mkdir -p $(TOPDIR)/firmware/toolchain_$${arch}_$$libc; \
( \
@@ -552,13 +558,14 @@ bulktoolchain:
done
test-framework:
- for libc in uclibc eglibc glibc musl;do \
+ for libc in uclibc glibc musl;do \
mkdir -p $(TOPDIR)/firmware/$(SYSTEM)_$(ARCH)_$$libc; \
( \
for arch in arm mips mipsel x86 x86_64;do \
- echo === building qemu-$$arch for $$libc on $$(date); \
+ tarch=$$(echo $$arch|sed -e "s#el##" -e "s#eb##" -e "s#mips64.*#mips#"); \
+ echo === building qemu-$$arch for $$libc with $$tarch on $$(date); \
$(GMAKE) prereq && \
- $(GMAKE) ARCH=$$arch SYSTEM=qemu-$$arch LIBC=$$libc FS=archive defconfig; \
+ $(GMAKE) ARCH=$$tarch SYSTEM=qemu-$$arch LIBC=$$libc FS=archive COLLECTION=test defconfig; \
$(GMAKE) VERBOSE=1 all; if [ $$? -ne 0 ]; then touch .exit; exit 1;fi; \
rm .config; \
done; \
@@ -568,7 +575,7 @@ test-framework:
if [ -f .exit ];then rm .exit;exit 1;fi
release:
- for libc in uclibc eglibc glibc musl;do \
+ for libc in uclibc glibc musl;do \
mkdir -p $(TOPDIR)/firmware/$(SYSTEM)_$(ARCH)_$$libc; \
( \
echo === building $$libc on $$(date); \
@@ -583,7 +590,7 @@ release:
# build all target architecture, target systems and libc combinations
bulk:
- for libc in uclibc eglibc glibc musl;do \
+ for libc in uclibc glibc musl;do \
while read arch; do \
systems=$$(./scripts/getsystems $$arch|grep -v toolchain); \
for system in $$systems;do \
@@ -603,7 +610,7 @@ bulk:
done
bulkall:
- for libc in uclibc eglibc glibc musl;do \
+ for libc in uclibc glibc musl;do \
while read arch; do \
systems=$$(./scripts/getsystems $$arch| grep -v toolchain); \
for system in $$systems;do \
@@ -623,7 +630,7 @@ bulkall:
done
bulkallmod:
- for libc in uclibc eglibc glibc musl;do \
+ for libc in uclibc glibc musl;do \
while read arch; do \
systems=$$(./scripts/getsystems $$arch| grep -v toolchain); \
for system in $$systems;do \