summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/opensbi/opensbi-payloads.inc
diff options
context:
space:
mode:
authorAlistair Francis <alistair.francis@wdc.com>2019-07-08 09:35:08 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-07-10 09:56:22 +0100
commit6085e491fba66708ee0e5bc1385c21845a3748ad (patch)
tree5d6889584abe30fcc8965eb192119430e397f2ca /meta/recipes-bsp/opensbi/opensbi-payloads.inc
parent505c70357d8e354748c326c22c82677dd51fa57a (diff)
downloadpoky-6085e491fba66708ee0e5bc1385c21845a3748ad.tar.gz
opensbi: Update from 0.3 to 0.4
The OpenSBI licence was updated to include contributors in the copyright notice. The payload logic has been updated to fix some bugs and handle the new optional dependency on the Linux kernel for device trees (From OE-Core rev: 76350b19945db458c60d3f233770543c00cb2067) 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.inc22
1 files changed, 12 insertions, 10 deletions
diff --git a/meta/recipes-bsp/opensbi/opensbi-payloads.inc b/meta/recipes-bsp/opensbi/opensbi-payloads.inc
index 7828599ce4..b9714a7acb 100644
--- a/meta/recipes-bsp/opensbi/opensbi-payloads.inc
+++ b/meta/recipes-bsp/opensbi/opensbi-payloads.inc
@@ -5,10 +5,7 @@ def riscv_get_extra_oemake_image(d):
5 if sbi_payload is None: 5 if sbi_payload is None:
6 return "" 6 return ""
7 7
8 if d.getVar('RISCV_SBI_PAYLOAD'): 8 return "FW_PAYLOAD_PATH=" + deploy_dir + "/" + sbi_payload
9 return "FW_PAYLOAD_PATH=" + deploy_dir + "/" + sbi_payload
10
11 return ""
12 9
13def riscv_get_extra_oemake_fdt(d): 10def riscv_get_extra_oemake_fdt(d):
14 sbi_fdt_payload = d.getVar('RISCV_SBI_FDT') 11 sbi_fdt_payload = d.getVar('RISCV_SBI_FDT')
@@ -17,14 +14,11 @@ def riscv_get_extra_oemake_fdt(d):
17 if sbi_fdt_payload is None: 14 if sbi_fdt_payload is None:
18 return "" 15 return ""
19 16
20 if d.getVar('RISCV_SBI_PAYLOAD'): 17 return "FW_PAYLOAD_FDT_PATH=" + deploy_dir + "/" + sbi_fdt_payload
21 # This is internal to openSBI, not a full path
22 return "FW_PAYLOAD_FDT=" + sbi_fdt_payload
23
24 return ""
25 18
26def riscv_get_do_compile_depends(d): 19def riscv_get_do_compile_depends(d):
27 sbi_payload = d.getVar('RISCV_SBI_PAYLOAD') 20 sbi_payload = d.getVar('RISCV_SBI_PAYLOAD')
21 sbi_fdt_payload = d.getVar('RISCV_SBI_FDT')
28 22
29 if sbi_payload is None: 23 if sbi_payload is None:
30 return "" 24 return ""
@@ -32,6 +26,14 @@ def riscv_get_do_compile_depends(d):
32 if 'linux' in sbi_payload or 'Image' in sbi_payload: 26 if 'linux' in sbi_payload or 'Image' in sbi_payload:
33 return "virtual/kernel:do_deploy" 27 return "virtual/kernel:do_deploy"
34 if 'u-boot.bin' in sbi_payload: 28 if 'u-boot.bin' in sbi_payload:
35 return "virtual/bootloader:do_deploy" 29 # If we want U-Boot and a FDT then we need to depend on U-Boot and
30 # the kernel
31 if sbi_fdt_payload is not None:
32 return "virtual/bootloader:do_deploy virtual/kernel:do_deploy"
33 else:
34 return "virtual/bootloader:do_deploy"
35 # If we want a custom FDT then we need to depend on the kernel
36 if sbi_fdt_payload is not None:
37 return "virtual/kernel:do_deploy"
36 38
37 return "" 39 return ""