1.1 --- a/uml-linux-build Wed Jul 13 00:43:11 2011 +0200
1.2 +++ b/uml-linux-build Mon Jul 18 01:00:41 2011 +0200
1.3 @@ -15,6 +15,10 @@
1.4 exit 1
1.5 fi
1.6
1.7 +if [ "$1" = '--root' ]; then
1.8 + AS_USER="sudo"
1.9 +fi
1.10 +
1.11 THISDIR=`dirname "$0"`
1.12
1.13 if [ ! -e linux ]; then
1.14 @@ -56,15 +60,15 @@
1.15 echo "Building..." 1>&2
1.16 make ARCH=um
1.17
1.18 - # Mount the root filesystem and install the modules.
1.19 - echo "Making the modules..." 1>&2
1.20 - make modules ARCH=um
1.21 + echo "Making the modules..." 1>&2
1.22 + make modules ARCH=um
1.23
1.24 - echo "Installing the modules..." 1>&2
1.25 - make modules_install INSTALL_MOD_PATH="$PACKAGEROOT" ARCH=um
1.26 cd ..
1.27 fi
1.28
1.29 +echo "Installing the modules..." 1>&2
1.30 +"$THISDIR/uml-access-image" "$AS_USER" make -C "$LINUXDIRNAME" modules_install INSTALL_MOD_PATH="$IMAGEDIR" ARCH=um
1.31 +
1.32 # Now get the executable and remove the build directory.
1.33 if [ ! -e linux ]; then
1.34 mv "$LINUXDIRNAME/linux" .