summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/baremetal-image.bbclass14
1 files changed, 13 insertions, 1 deletions
diff --git a/meta/classes/baremetal-image.bbclass b/meta/classes/baremetal-image.bbclass
index b0f5e885b5..319b61c7cd 100644
--- a/meta/classes/baremetal-image.bbclass
+++ b/meta/classes/baremetal-image.bbclass
@@ -73,7 +73,19 @@ QB_DEFAULT_KERNEL ?= "${IMAGE_LINK_NAME}.bin"
73QB_MEM ?= "-m 256" 73QB_MEM ?= "-m 256"
74QB_DEFAULT_FSTYPE ?= "bin" 74QB_DEFAULT_FSTYPE ?= "bin"
75QB_DTB ?= "" 75QB_DTB ?= ""
76QB_OPT_APPEND = "-nographic" 76QB_OPT_APPEND_append = " -nographic"
77
78# RISC-V tunes set the BIOS, unset, and instruct QEMU to
79# ignore the BIOS and boot from -kernel
80QB_DEFAULT_BIOS_qemuriscv64 = ""
81QB_OPT_APPEND_append_qemuriscv64 = " -bios none"
82
83
84# Use the medium-any code model for the RISC-V 64 bit implementation,
85# since medlow can only access addresses below 0x80000000 and RAM
86# starts at 0x80000000 on RISC-V 64
87CFLAGS_append_qemuriscv64 = " -mcmodel=medany"
88
77 89
78# This next part is necessary to trick the build system into thinking 90# This next part is necessary to trick the build system into thinking
79# its building an image recipe so it generates the qemuboot.conf 91# its building an image recipe so it generates the qemuboot.conf