diff simple-root-filesystem.sh @ 1221:6a4968ae5ac8

Add new "/src/host-info" file to target, with CROSS_TARGET and KARCH values.
author Rob Landley <rob@landley.net>
date Mon, 23 Aug 2010 00:25:07 -0500
parents 99c49806ea6d
children 313c702a0984
line wrap: on
line diff
--- a/simple-root-filesystem.sh	Mon Aug 23 00:22:38 2010 -0500
+++ b/simple-root-filesystem.sh	Mon Aug 23 00:25:07 2010 -0500
@@ -40,7 +40,9 @@
 
 # Copy qemu setup script and so on.
 
-cp -r "${SOURCES}/root-filesystem/." "$STAGE_DIR/" &&
+cp -r "$SOURCES/root-filesystem/." "$STAGE_DIR/" &&
+echo -e "CROSS_TARGET=$CROSS_TARGET\nKARCH=$KARCH" > \
+  "$STAGE_DIR/src/host-info" &&
 cp "$SRCDIR"/MANIFEST "$STAGE_DIR/src" || dienow
 
 # If user specified different files to put in the root filesystem, add them.