#
# Entry point for the project.

# Define the target.
export BR_PROJECT:=$(shell pwd)
export BR_PROJECT_NAME:=x86_64_qemu_domo

export BR_BOARD:=$(shell pwd)/../../bsp/board/domo/

include $(BR_BOARD)/main.mk
include qemu-args.mk

qemu:
	qemu-system-x86_64 -kernel "$(BR_STAGING)/buildroot/images/bzImage" -fsdev "local,id=root,path=$(BR_STAGING)/buildroot/target,security_model=mapped-xattr" -device virtio-9p-pci,fsdev=root,mount_tag=/dev/root -append "rootfs=root rootfstype=9p rootflags=trans=virtio,version=9p2000.L console=ttyS0" -serial mon:stdio -nographic -usb $(QEMU_ARGS)

qemu.map-all-xattr:
	PATH="${PATH}:$(BR_STAGING)/cross/usr/bin" $(BR_PROJECT)/map-all-xattr.sh "$(BR_STAGING)/buildroot/target"

.PHONY: qemu qemu.map-all-xattr
