]> hackdaworld.org Git - outofuni/dib.git/blobdiff - build.sh
config.build -> build.config
[outofuni/dib.git] / build.sh
index 7b7e2ed3a6aef12df4f85f01e96729ebcb61947c..770d170b8e3a44ab9638333ae1a997366b3746b2 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -198,17 +198,17 @@ else
        . ./config.build
 fi
 
        . ./config.build
 fi
 
-# check prerequisites
-check_prereq
-
 # debootstrap
 if [ -z $1 ]; then
 # debootstrap
 if [ -z $1 ]; then
+       check_prereq
        build_all > ./build.log 2>&1
 elif [ "$1" = "chroot" ]; then
        build_in_chroot > ./build_in_chroot.log 2>&1
 elif [ "$1" = "uboot" ]; then
        build_all > ./build.log 2>&1
 elif [ "$1" = "chroot" ]; then
        build_in_chroot > ./build_in_chroot.log 2>&1
 elif [ "$1" = "uboot" ]; then
+       check_prereq
        build_uboot > ./build_uboot.log 2>&1
 elif [ "$1" = "kernel" ]; then
        build_uboot > ./build_uboot.log 2>&1
 elif [ "$1" = "kernel" ]; then
+       check_prereq
        build_kernel > ./build_kernel.log 2>&1
 else 
        echo "unknown option: '$1'"
        build_kernel > ./build_kernel.log 2>&1
 else 
        echo "unknown option: '$1'"