make gui ; make gui TEST=1 (for autotest) can work correctly. But the os kernel has a little bug on drawing screen for gui app
This commit is contained in:
parent
85d840dd56
commit
f3a5a45b94
1 changed files with 16 additions and 1 deletions
17
os/Makefile
17
os/Makefile
|
@ -89,6 +89,21 @@ disasm-vim: kernel
|
|||
|
||||
run: run-inner
|
||||
|
||||
gui: build
|
||||
ifeq ($(BOARD),qemu)
|
||||
@qemu-system-riscv64 \
|
||||
-M 128m \
|
||||
-machine virt \
|
||||
-bios $(BOOTLOADER) \
|
||||
-device loader,file=$(KERNEL_BIN),addr=$(KERNEL_ENTRY_PA) \
|
||||
-drive file=$(FS_IMG),if=none,format=raw,id=x0 \
|
||||
-device virtio-blk-device,drive=x0 \
|
||||
-device virtio-gpu-device \
|
||||
-device virtio-keyboard-device \
|
||||
-device virtio-mouse-device \
|
||||
-serial stdio
|
||||
endif
|
||||
|
||||
run-inner: build
|
||||
ifeq ($(BOARD),qemu)
|
||||
@qemu-system-riscv64 \
|
||||
|
@ -97,7 +112,7 @@ ifeq ($(BOARD),qemu)
|
|||
-bios $(BOOTLOADER) \
|
||||
-device loader,file=$(KERNEL_BIN),addr=$(KERNEL_ENTRY_PA) \
|
||||
-drive file=$(FS_IMG),if=none,format=raw,id=x0 \
|
||||
-device virtio-blk-device,drive=x0,bus=virtio-mmio-bus.0
|
||||
-device virtio-blk-device,drive=x0,bus=virtio-mmio-bus.0 \
|
||||
else
|
||||
(which $(K210-BURNER)) || (cd .. && git clone https://github.com/sipeed/kflash.py.git && mv kflash.py tools)
|
||||
@cp $(BOOTLOADER) $(BOOTLOADER).copy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue