toolchain mods, glibc and gcc still need some checking
[hdw-linux/hdw-linux.git] / scripts / Build-Distro
index a5c3a9a..70d501e 100755 (executable)
@@ -6,7 +6,7 @@
 # 
 
 # define max priority
-max=13
+max=18
 stages="0 1"
 no_src_del=""
 
@@ -114,7 +114,7 @@ for stage in $stages; do
                                echo_g "done, `date | awk '{ print $4 }'`"
                                # make binary tar package
                                if [ "$hdw_make_package" = "1" -a \
-                                    "$hdw_status" -ge "2" ] ; then
+                                    "$stage" -ge "2" ] ; then
                                        echo -n "creating binary package ..."
                                        if [ -d binaries/{$hdw_arch}-${hdw_arch_opt}/$package ] ; then
                                                echo -n " (deleting old first)"
@@ -248,7 +248,7 @@ EOT
                        exit 1
                fi
                # remove buildorder files
-               rm -f $root/usr/src/hdw-linux/build_order*
+               rm -f $root/chroot.sh
                # last message
                echo 
                echo_w "you should now have build your hdw-linux distro"