diff options
Diffstat (limited to 'meta/classes/qemuboot.bbclass')
-rw-r--r-- | meta/classes/qemuboot.bbclass | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/meta/classes/qemuboot.bbclass b/meta/classes/qemuboot.bbclass index a181fa2213..be5d7a4c8f 100644 --- a/meta/classes/qemuboot.bbclass +++ b/meta/classes/qemuboot.bbclass | |||
@@ -18,11 +18,15 @@ | |||
18 | # QB_AUDIO_OPT: qemu audio option, e.g., "-soundhw ac97,es1370", used | 18 | # QB_AUDIO_OPT: qemu audio option, e.g., "-soundhw ac97,es1370", used |
19 | # when QB_AUDIO_DRV is set. | 19 | # when QB_AUDIO_DRV is set. |
20 | # QB_KERNEL_ROOT: kernel's root, e.g., /dev/vda | 20 | # QB_KERNEL_ROOT: kernel's root, e.g., /dev/vda |
21 | # QB_NETWORK_DEVICE: network device, e.g., "-device virtio-net-pci,netdev=net0,mac=@MAC@", | ||
22 | # it needs work with QB_TAP_OPT and QB_SLIRP_OPT. | ||
23 | # Note, runqemu will replace @MAC@ with a predefined mac, you can set | ||
24 | # a custom one, but that may cause conflicts when multiple qemus are | ||
25 | # running on the same host. | ||
21 | # QB_TAP_OPT: netowrk option for 'tap' mode, e.g., | 26 | # QB_TAP_OPT: netowrk option for 'tap' mode, e.g., |
22 | # "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no -device virtio-net-device,netdev=net0" | 27 | # "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no" |
23 | # Note, runqemu will replace "@TAP@" with the one which is used, such as tap0, tap1 ... | 28 | # Note, runqemu will replace "@TAP@" with the one which is used, such as tap0, tap1 ... |
24 | # QB_SLIRP_OPT: network option for SLIRP mode, e.g., | 29 | # QB_SLIRP_OPT: network option for SLIRP mode, e.g., -netdev user,id=net0" |
25 | # "-netdev user,id=net0 -device virtio-net-device,netdev=net0" | ||
26 | # QB_ROOTFS_OPT: used as rootfs, e.g., | 30 | # QB_ROOTFS_OPT: used as rootfs, e.g., |
27 | # "-drive id=disk0,file=@ROOTFS@,if=none,format=raw -device virtio-blk-device,drive=disk0" | 31 | # "-drive id=disk0,file=@ROOTFS@,if=none,format=raw -device virtio-blk-device,drive=disk0" |
28 | # Note, runqemu will replace "@ROOTFS@" with the one which is used, such as core-image-minimal-qemuarm64.ext4. | 32 | # Note, runqemu will replace "@ROOTFS@" with the one which is used, such as core-image-minimal-qemuarm64.ext4. |
@@ -40,6 +44,7 @@ QB_SERIAL_OPT ?= "-serial mon:stdio -serial null" | |||
40 | QB_DEFAULT_KERNEL ?= "${KERNEL_IMAGETYPE}" | 44 | QB_DEFAULT_KERNEL ?= "${KERNEL_IMAGETYPE}" |
41 | QB_DEFAULT_FSTYPE ?= "ext4" | 45 | QB_DEFAULT_FSTYPE ?= "ext4" |
42 | QB_OPT_APPEND ?= "-show-cursor" | 46 | QB_OPT_APPEND ?= "-show-cursor" |
47 | QB_NETWORK_DEVICE ?= "-device virtio-net-pci,netdev=net0,mac=@MAC@" | ||
43 | 48 | ||
44 | # Create qemuboot.conf | 49 | # Create qemuboot.conf |
45 | addtask do_write_qemuboot_conf after do_rootfs before do_image | 50 | addtask do_write_qemuboot_conf after do_rootfs before do_image |