Skip to content
Snippets Groups Projects
Commit 23b41319 authored by Jerome Forissier's avatar Jerome Forissier
Browse files

qemu: virtfs: fix wrong variable name


"make QEMU_VIRTFS_ENABLE=y" does not enable VirtFS because of a bad
variable name in common.mk.

Test case:

(host) echo Hello >/tmp/hello
(host) make -j8 run QEMU_VIRTFS_ENABLE=y QEMU_VIRTFS_HOST_DIR=/tmp
(QEMU) mkdir /tmp/host
(QEMU) mount_shared /tmp/host
(QEMU) cat /tmp/host/hello
Hello

Fixes: 97d0529c ("Enable configuring QEMU with Virtfs support")
Signed-off-by: default avatarJerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: default avatarIgor Opaniuk <igor.opaniuk@linaro.org>
parent 2e789bd1
No related branches found
No related tags found
No related merge requests found
......@@ -191,7 +191,7 @@ edk2-clean-common:
QEMU_CONFIGURE_PARAMS_COMMON = --cc="$(CCACHE)gcc" --extra-cflags="-Wno-error"
ifeq ($(QEMU_VIRTFS_ENABLE),y)
QEMU_CONFIGURE_PARAMS += --enable-virtfs
QEMU_CONFIGURE_PARAMS_COMMON += --enable-virtfs
QEMU_EXTRA_ARGS +=\
-fsdev local,id=fsdev0,path=$(QEMU_VIRTFS_HOST_DIR),security_model=none \
-device virtio-9p-device,fsdev=fsdev0,mount_tag=host
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment