qemu_v8.mk: Enable DomU in Dom0 rootfs

Xen tools are required to launch the other DomU's from
Dom0. Enable them in Buildroot. Since Xen is built outside
Buildroot, it is essential to maintain the same version of
Xen built in build system and Xen tools built in Buildroot.

DomU needs a rootfs without the Xen tools. So another target
is introduced to build rootfs for DOMU without Xen tools.

To launch & run DomU:

make XEN_BOOT=y run

From Dom0 prompt:

> cd /mnt/host/qemu_v8/xen
> xl create guest.cfg	# This will create a DomU
To goto DomU's console:
> xl console domu

To run and check xtests from Dom0 and DomU:
make XEN_BOOT=y check

Signed-off-by: Ruchika Gupta <ruchika.gupta@linaro.org>
Reviewed-by: Jerome Forissier <jerome@forissier.org>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
diff --git a/qemu_v8.mk b/qemu_v8.mk
index 9d6313f..24c4a43 100644
--- a/qemu_v8.mk
+++ b/qemu_v8.mk
@@ -26,6 +26,8 @@
 ifeq ($(XEN_BOOT),y)
 GICV3 = y
 UBOOT = y
+# For DomU, guest.cfg and other images can be picked up from mounted folder
+QEMU_VIRTFS_AUTOMOUNT = y
 endif
 
 include common.mk
@@ -112,8 +114,8 @@
 endif
 
 ifeq ($(XEN_BOOT),y)
-TARGET_DEPS		+= xen xen-create-image
-TARGET_CLEAN		+= xen-clean
+TARGET_DEPS		+= xen xen-create-image buildroot-domu
+TARGET_CLEAN		+= xen-clean buildroot-domu-clean
 endif
 
 all: $(TARGET_DEPS)