We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 188a157 commit c6f08a6Copy full SHA for c6f08a6
Makefile
@@ -400,6 +400,7 @@ ECHR ?= 1
400
ROOT ?= /dev/vda
401
RW ?= rw
402
KASLR ?= 0
403
+UBOOT ?= 0
404
405
QEMU_KERNEL_CMDLINE := selinux=0
406
@@ -415,6 +416,10 @@ QEMU_ARGS := \
415
416
-echr $(ECHR) \
417
$(QEMU_EXTRA_ARGS)
418
419
+ifeq ($(UBOOT),1)
420
+ QEMU_ARGS += -bios $(UBOOT_BIN)
421
+endif
422
+
423
ifneq ($(INITRD),)
424
ifeq ($(INITRD),1)
425
INITRD := $(CPIO_FILE)
@@ -469,6 +474,9 @@ endif
469
474
QEMU_ARGS += -append "$(QEMU_KERNEL_CMDLINE) $(QEMU_EXTRA_KERNEL_CMDLINE)"
470
475
471
476
RUN_DEPS := $(QEMU_KERNEL_IMAGE)
477
478
+ RUN_DEPS += $(UBOOT_BIN)
479
472
480
473
481
# Make sure the modules directory exists, even if it's empty. Otherwise mount
482
# will fail.
0 commit comments