diff host-tools.sh @ 571:f07d714321fe

Fix a couple brown paper bag bugs (oops) and general cleanups.
author Rob Landley <rob@landley.net>
date Thu, 08 Jan 2009 00:05:53 -0600
parents 8d2b9cd1a52e
children 90bea985c98e
line wrap: on
line diff
--- a/host-tools.sh	Wed Jan 07 17:15:52 2009 -0600
+++ b/host-tools.sh	Thu Jan 08 00:05:53 2009 -0600
@@ -98,10 +98,6 @@
 
   # Build busybox
 
-  # Yes this is an old version of busybox.  (It's the last version I released
-  # as busybox maintainer.)  We're gradually replacing busybox with toybox, one
-  # command at a time.
-
   if [ ! -f "${HOSTTOOLS}/busybox" ]
   then
     setupfor busybox &&
@@ -122,33 +118,32 @@
   fi
 fi
 
-
 # This is optionally used by mini-native to accelerate native builds when
 # running under qemu.  It's not used to build mini-native, or to build
 # the cross compiler, but it needs to be on the host system in order to
 # use the distcc acceleration trick.
 
+# Note that this one we can use off of the host, it's used on the host where
+# the system image runs.  The build doesn't actually use it, we only bother
+# to build it at all here as a convenience for run-from-build.sh.
+
 # Build distcc (if it's not in $PATH)
-if [ ! -f "${HOSTTOOLS}"/distccd ]
+if [ ! -f "${HOSTTOOLS}"/distccd ] && [ -z "$(which distccd)" ]
 then
-  if [ -z "$(which distccd)" ]
-  then
-    setupfor distcc &&
-    ./configure --with-included-popt &&
-    make -j "$CPUS" &&
-    cp distcc distccd "${HOSTTOOLS}" &&
-    cd ..
+echo build distcc
+  setupfor distcc &&
+  ./configure --with-included-popt &&
+  make -j "$CPUS" &&
+  cp distcc distccd "${HOSTTOOLS}" &&
+  cd ..
 
-    cleanup distcc
-  else
-    ln -s "$(which distccd)" "${HOSTTOOLS}"/distccd
-  fi
+  cleanup distcc
 fi
 
 # If the host system hasn't got genext2fs, build it.  We use it to build the
 # ext2 image to boot qemu with in package-mini-native.sh.
 
-if [ -z "$(which genext2fs)" ]
+if [ ! -f "${HOSTTOOLS}"/genext2fs ]
 then
   setupfor genext2fs &&
   ./configure &&