diff options
author | Alistair Francis <alistair.francis@wdc.com> | 2019-06-18 17:55:39 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-06-19 22:13:39 +0100 |
commit | ef82d0230e2286a22500aeb544277bef4c9dca15 (patch) | |
tree | cdedd7600583498e3986e76e86558c176efe82fe /meta/recipes-bsp/opensbi/opensbi-payloads.inc | |
parent | 462ae94d701a871fed7dc9868e03bae335f5e2d3 (diff) | |
download | poky-ef82d0230e2286a22500aeb544277bef4c9dca15.tar.gz |
opensbi: Initial commit of OpenSBI
This is used as a bootloader for RISC-V QEMU machines.
(From OE-Core rev: 112ca2174dd97f5ca9ea25f83007d44054abc487)
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp/opensbi/opensbi-payloads.inc')
-rw-r--r-- | meta/recipes-bsp/opensbi/opensbi-payloads.inc | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-bsp/opensbi/opensbi-payloads.inc b/meta/recipes-bsp/opensbi/opensbi-payloads.inc new file mode 100644 index 0000000000..7df168325a --- /dev/null +++ b/meta/recipes-bsp/opensbi/opensbi-payloads.inc | |||
@@ -0,0 +1,37 @@ | |||
1 | def riscv_get_extra_oemake_image(d): | ||
2 | sbi_payload = d.getVar('RISCV_SBI_PAYLOAD') | ||
3 | deploy_dir = d.getVar('DEPLOY_DIR_IMAGE') | ||
4 | |||
5 | if sbi_payload is None: | ||
6 | return "" | ||
7 | |||
8 | if d.getVar('RISCV_SBI_PAYLOAD'): | ||
9 | return "FW_PAYLOAD_PATH=" + deploy_dir + "/" + sbi_payload | ||
10 | |||
11 | return "" | ||
12 | |||
13 | def riscv_get_extra_oemake_fdt(d): | ||
14 | sbi_fdt_payload = d.getVar('RISCV_SBI_FDT') | ||
15 | deploy_dir = d.getVar('DEPLOY_DIR_IMAGE') | ||
16 | |||
17 | if sbi_fdt_payload is None: | ||
18 | return "" | ||
19 | |||
20 | if d.getVar('RISCV_SBI_PAYLOAD'): | ||
21 | # This is internal to openSBI, not a full path | ||
22 | return "FW_PAYLOAD_FDT=" + sbi_fdt_payload | ||
23 | |||
24 | return "" | ||
25 | |||
26 | def riscv_get_do_compile_depends(d): | ||
27 | sbi_payload = d.getVar('RISCV_SBI_PAYLOAD') | ||
28 | |||
29 | if sbi_payload is None: | ||
30 | return "" | ||
31 | |||
32 | if 'linux' in sbi_payload or 'Image' in sbi_payload: | ||
33 | return "virtual/kernel:do_deploy" | ||
34 | if 'u-boot' in sbi_payload: | ||
35 | return "virtual/bootloader:do_deploy" | ||
36 | |||
37 | return "" | ||