# HG changeset patch # User Rob Landley # Date 1286513894 18000 # Node ID 82a4e3d3a5ff3475e38c76efa08df3073744d9b1 # Parent f5c448622393c6ad2bdd9bbc04570782f948eb91 Teach native-build.sh to pass in the name of the build control image. diff -r f5c448622393 -r 82a4e3d3a5ff sources/toys/native-build.sh --- a/sources/toys/native-build.sh Thu Oct 07 23:55:46 2010 -0500 +++ b/sources/toys/native-build.sh Thu Oct 07 23:58:14 2010 -0500 @@ -69,8 +69,11 @@ # Run emulator as a child process, feeding in -hdc and some extra environment # variables so it auto-launches the build process. +export HDC="$HDCFILE" +NATIVE_BUILD="$(echo "$HDCFILE" | sed -e 's@.*/@@' -e 's@[.]hdc$@@')" +export KERNEL_EXTRA="FTP_SERVER=$FTP_SERVER FTP_PORT=$FTP_PORT NATIVE_BUILD=$NATIVE_BUILD $KERNEL_EXTRA" + rm -f hdb.img -HDC="$HDCFILE" KERNEL_EXTRA="FTP_SERVER=$FTP_SERVER FTP_PORT=$FTP_PORT" \ - ./dev-environment.sh +./dev-environment.sh echo === End native build