diff host-tools.sh @ 508:909a4921273d

Move genext2fs build to host-tools, remove dead code, add comments.
author Rob Landley <rob@landley.net>
date Sun, 30 Nov 2008 06:20:35 -0600
parents 3fe5916931e5
children 8d2b9cd1a52e
line wrap: on
line diff
--- a/host-tools.sh	Sun Nov 30 06:18:43 2008 -0600
+++ b/host-tools.sh	Sun Nov 30 06:20:35 2008 -0600
@@ -147,6 +147,20 @@
   fi
 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)" ]
+then
+  setupfor genext2fs &&
+  ./configure &&
+  make -j $CPUS &&
+  cp genext2fs "${HOSTTOOLS}" &&
+  cd ..
+
+  cleanup genext2fs
+fi
+
 # Everything after here is stuff we _could_ build, but currently don't.
 
 # Build squashfs