summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-07-03 19:37:16 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-07-03 19:37:16 +0200
commite23746e37fa9f876eebdcd8cb37790c76fbb0a91 (patch)
tree6a36953b87275192f50bd8f65a6999d7f948e9f3
parentf666087a422a4c84b26a666fa065344b26aa9667 (diff)
add support for bulk builds with different endianess
-rw-r--r--mk/build.mk6
-rwxr-xr-x[-rw-r--r--]scripts/bulk-qemu.sh27
2 files changed, 30 insertions, 3 deletions
diff --git a/mk/build.mk b/mk/build.mk
index ac03c6881..29d5023d4 100644
--- a/mk/build.mk
+++ b/mk/build.mk
@@ -358,6 +358,12 @@ endif
|sed -e "s#^config \(.*\)#\1=y#" \
>> $(ADK_TOPDIR)/.defconfig; \
fi
+ if [ ! -z "$(ADK_TARGET_ENDIAN)" ];then \
+ grep "^config" target/config/Config.in.endian.choice \
+ |grep -i "$(ADK_TARGET_ENDIAN)" \
+ |sed -e "s#^config \(.*\)#\1=y#" \
+ >> $(ADK_TOPDIR)/.defconfig; \
+ fi
@if [ ! -z "$(ADK_TARGET_COLLECTION)" ];then \
grep -h "^config" target/collections/* \
|grep -i "$(ADK_TARGET_COLLECTION)" \
diff --git a/scripts/bulk-qemu.sh b/scripts/bulk-qemu.sh
index 491a695c8..ef3d11465 100644..100755
--- a/scripts/bulk-qemu.sh
+++ b/scripts/bulk-qemu.sh
@@ -1,12 +1,33 @@
#!/bin/sh
-for libc in glibc musl uclibc; do
+if [ ! -z $1 ];then
+ c=$1
+else
+ c="glibc musl uclibc"
+fi
+
+for libc in $c; do
for arch in $(cat toolchain/$libc/arch.lst);do
- make VERBOSE=1 ADK_TARGET_ARCH=$arch ADK_TARGET_SYSTEM=qemu-$arch ADK_TARGET_LIBC=$libc ADK_TARGET_FS=initramfspiggyback defconfig all
+ echo "Cleaning old stuff"
+ make cleandir
+ echo "Building $libc for $arch"
+ DEFAULT="VERBOSE=1 ADK_TARGET_ARCH=$arch ADK_TARGET_SYSTEM=qemu-$arch ADK_TARGET_LIBC=$libc ADK_TARGET_FS=initramfspiggyback"
+ case $arch in
+ mips|microblaze)
+ for endian in little big;do
+ make $DEFAULT ADK_TARGET_ENDIAN=$endian defconfig all
+ cp -a firmware firmware.$arch.$endian
+ done
+ ;;
+ *)
+ make $DEFAULT defconfig all
+ cp -a firmware firmware.$arch
+ ;;
+ esac
if [ $? -ne 0 ];then
echo "build failed"
exit 1
fi
+ make cleandir
done
done
-