diff options
Diffstat (limited to 'meta/classes/baremetal-image.bbclass')
| -rw-r--r-- | meta/classes/baremetal-image.bbclass | 14 |
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" | |||
| 73 | QB_MEM ?= "-m 256" | 73 | QB_MEM ?= "-m 256" |
| 74 | QB_DEFAULT_FSTYPE ?= "bin" | 74 | QB_DEFAULT_FSTYPE ?= "bin" |
| 75 | QB_DTB ?= "" | 75 | QB_DTB ?= "" |
| 76 | QB_OPT_APPEND = "-nographic" | 76 | QB_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 | ||
| 80 | QB_DEFAULT_BIOS_qemuriscv64 = "" | ||
| 81 | QB_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 | ||
| 87 | CFLAGS_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 |
