#
copy_qemu()
{
- check_use_emulator || return
-
echo "copying qemu"
mkdir -p $BUILD_ROOT/usr/bin $BUILD_ROOT/usr/sbin
install -m755 /usr/bin/qemu-* $BUILD_ROOT/usr/bin
mkdir -p $BUILD_ROOT/bin
install -m755 /bin/bash-static $BUILD_ROOT/bin
install -m755 /bin/mount-static $BUILD_ROOT/bin
- # XXX: not needed if vm is used
- if ! check_binfmt_registered; then
- echo "registering binfmt handlers"
- /usr/sbin/qemu-binfmt-conf.sh
- fi
}
check_binfmt_registered()
fi
#
-# register the QEMU emulator
-# reset mmap_min_addr for QEMU
-#
-copy_qemu
-
-#
# store that we start to build system
#
mkdir -p $BUILD_ROOT
cleanup_and_exit 0
fi
+ #
+ # copy the QEMU emulator
+ #
+ if check_use_emulator; then
+ copy_qemu
+ if [ -z "$PREPARE_VM" ]; then
+ if ! check_binfmt_registered; then
+ echo "registering binfmt handlers"
+ /usr/sbin/qemu-binfmt-conf.sh
+ fi
+ fi
+ fi
+
PACKAGES_TO_INSTALL=
PACKAGES_TO_PREINSTALL=
PACKAGES_TO_RUNSCRIPTS=