summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlistair Francis <alistair.francis@wdc.com>2019-06-19 16:48:32 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-06-20 13:26:47 +0100
commit12dc5569d832d57b52ed68bc9009506b2d183795 (patch)
treea13f133fe78366f309cc19e2fadc26e0aeb9dbf5
parent0fdf76305a3cb543c23d6122c523ce5c2af04a0c (diff)
downloadopenembedded-core-contrib-12dc5569d832d57b52ed68bc9009506b2d183795.tar.gz
openembedded-core-contrib-12dc5569d832d57b52ed68bc9009506b2d183795.tar.bz2
openembedded-core-contrib-12dc5569d832d57b52ed68bc9009506b2d183795.zip
qemuriscv: Build uImage for RISC-V machines
Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/conf/machine/include/riscv/qemuriscv.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/conf/machine/include/riscv/qemuriscv.inc b/meta/conf/machine/include/riscv/qemuriscv.inc
index aa1eba77da..84d09fa78e 100644
--- a/meta/conf/machine/include/riscv/qemuriscv.inc
+++ b/meta/conf/machine/include/riscv/qemuriscv.inc
@@ -6,6 +6,8 @@ require conf/machine/include/riscv/tune-riscv.inc
MACHINE_FEATURES = "screen keyboard ext2 ext3 serial"
KERNEL_IMAGETYPE = "Image"
+KERNEL_IMAGETYPES += "uImage"
+KEEPUIMAGE = "no"
SERIAL_CONSOLES ?= "115200;ttyS0 115200;hvc0"
@@ -17,6 +19,9 @@ EXTRA_IMAGEDEPENDS += "opensbi"
RISCV_SBI_PLAT ?= "qemu/virt"
RISCV_SBI_PAYLOAD ?= "${KERNEL_IMAGETYPE}-${MACHINE}.bin"
+UBOOT_ENTRYPOINT_riscv32 = "0x80400000"
+UBOOT_ENTRYPOINT_riscv64 = "0x80200000"
+
# qemuboot options
QB_KERNEL_CMDLINE_APPEND = "earlycon=sbi"
QB_MEM = "-m 512"