changeset 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 e20d4f39809e
children 06a4b05971a7
files simple-root-filesystem.sh
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
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.