From a94d74d9c875b4a1c07945bf9af282221d0178b3 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 13 Dec 2015 17:18:40 +0100 Subject: rework prereq check The new prereq check is completely implemented in POSIX shell in scripts/prereq.sh. It combines the old features from Makefile, scan-tools.sh, scan-pkgs.sh, reloc.sh and some wrappers for tools. The big benefit is to have all portability stuff in one place. Furthermore we can compile GNU make and bash on the fly, for systems lacking the required tools. All changes on the host are detected on the fly, no make prereq required anymore. The build process is separated in following three phases: 1. small wrapper Makefile is used for BSD make or GNU make 2. prereq.sh is called, doing all checking, calling Makefile.adk 3. old logic in Makefile.adk or mk/build.mk is used Tested successfully on Linux, MacOS X, Cygwin, FreeBSD, OpenBSD and NetBSD. An old depmaker bug was fixed, only optional host tools are compiled. For example, even when a host provides xz, a local xz was compiled in the past, because other packages had a build dependency on it. Signed-off-by: Waldemar Brodkorb --- scripts/bulk-qemu.sh | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100755 scripts/bulk-qemu.sh (limited to 'scripts/bulk-qemu.sh') diff --git a/scripts/bulk-qemu.sh b/scripts/bulk-qemu.sh deleted file mode 100755 index 4bd153f83..000000000 --- a/scripts/bulk-qemu.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/sh - -if [ ! -z $1 ];then - c=$1 -else - c="uclibc-ng glibc musl uclibc" -fi - -for libc in $c; do - for arch in $(cat toolchain/$libc/arch.lst);do - echo "Cleaning old stuff" - make cleandir - echo "Building $libc for $arch" - DEFAULT="ADK_VERBOSE=1 ADK_APPLIANCE=new 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 -- cgit v1.2.3