|
@@ -1,45 +0,0 @@
|
|
|
-PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot"
|
|
|
-
|
|
|
-require conf/machine/include/qemu.inc
|
|
|
-require conf/machine/include/tune-riscv.inc
|
|
|
-
|
|
|
-MACHINE_FEATURES = "screen keyboard ext2 ext3 serial"
|
|
|
-
|
|
|
-KERNEL_IMAGETYPE = "Image"
|
|
|
-
|
|
|
-SERIAL_CONSOLES ?= "115200;ttyS0 115200;hvc0"
|
|
|
-
|
|
|
-IMAGE_FSTYPES_append = " ext4"
|
|
|
-
|
|
|
-MACHINE_EXTRA_RRECOMMENDS += " kernel-modules"
|
|
|
-
|
|
|
-EXTRA_IMAGEDEPENDS += "opensbi"
|
|
|
-RISCV_SBI_PLAT ?= "qemu/virt"
|
|
|
-RISCV_SBI_PAYLOAD ?= "${KERNEL_IMAGETYPE}-${MACHINE}.bin"
|
|
|
-
|
|
|
-# qemuboot options
|
|
|
-QB_KERNEL_CMDLINE_APPEND = "earlycon=sbi"
|
|
|
-QB_MEM = "-m 512"
|
|
|
-QB_MACHINE = "-machine virt"
|
|
|
-QB_DEFAULT_KERNEL = "fw_jump.elf"
|
|
|
-QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no"
|
|
|
-QB_NETWORK_DEVICE = "-device virtio-net-device,netdev=net0,mac=@MAC@"
|
|
|
-QB_ROOTFS_OPT = "-drive id=disk0,file=@ROOTFS@,if=none,format=raw -device virtio-blk-device,drive=disk0"
|
|
|
-QB_SERIAL_OPT = "-device virtio-serial-device -chardev null,id=virtcon -device virtconsole,chardev=virtcon"
|
|
|
-QB_TCPSERIAL_OPT = " -device virtio-serial-device -chardev socket,id=virtcon,port=@PORT@,host=127.0.0.1 -device virtconsole,chardev=virtcon"
|
|
|
-# Add the 'virtio-rng-pci' device otherwise the guest may run out of entropy
|
|
|
-QB_OPT_APPEND = " -object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-device,rng=rng0"
|
|
|
-
|
|
|
-BAD_RECOMMENDATIONS += "\
|
|
|
- libcxx-dev \
|
|
|
- libcxx-staticdev \
|
|
|
- compiler-rt-dev \
|
|
|
- compiler-rt-staticdev \
|
|
|
-"
|
|
|
-
|
|
|
-ASSUME_PROVIDED += "\
|
|
|
- libcxx-dev \
|
|
|
- libcxx-staticdev \
|
|
|
- compiler-rt-dev \
|
|
|
- compiler-rt-staticdev \
|
|
|
-"
|