diff options
Diffstat (limited to 'meta/recipes-bsp/opensbi/opensbi-payloads.inc')
-rw-r--r-- | meta/recipes-bsp/opensbi/opensbi-payloads.inc | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/meta/recipes-bsp/opensbi/opensbi-payloads.inc b/meta/recipes-bsp/opensbi/opensbi-payloads.inc index 2e32943245..a55679632e 100644 --- a/meta/recipes-bsp/opensbi/opensbi-payloads.inc +++ b/meta/recipes-bsp/opensbi/opensbi-payloads.inc | |||
@@ -1,21 +1,38 @@ | |||
1 | def riscv_get_extra_oemake_image(d): | 1 | def riscv_get_extra_oemake_image(d): |
2 | sbi_payload = d.getVar('RISCV_SBI_PAYLOAD') | 2 | sbi_payload = d.getVar('RISCV_SBI_PAYLOAD') |
3 | deploy_dir = d.getVar('DEPLOY_DIR_IMAGE') | ||
4 | |||
5 | if sbi_payload is None: | 3 | if sbi_payload is None: |
6 | return "" | 4 | return "" |
7 | 5 | ||
6 | deploy_dir = d.getVar('DEPLOY_DIR_IMAGE') | ||
7 | |||
8 | return "FW_PAYLOAD_PATH=" + deploy_dir + "/" + sbi_payload | 8 | return "FW_PAYLOAD_PATH=" + deploy_dir + "/" + sbi_payload |
9 | 9 | ||
10 | def riscv_get_do_compile_depends(d): | 10 | def riscv_get_extra_oemake_fdt(d): |
11 | sbi_payload = d.getVar('RISCV_SBI_PAYLOAD') | 11 | if d.getVar('RISCV_SBI_PAYLOAD') is None: |
12 | return "" | ||
13 | sbi_fdt = d.getVar('RISCV_SBI_FDT') | ||
14 | deploy_dir = d.getVar('DEPLOY_DIR_IMAGE') | ||
12 | 15 | ||
13 | if sbi_payload is None: | 16 | if sbi_fdt is None: |
17 | return "" | ||
18 | |||
19 | return "FW_FDT_PATH=" + deploy_dir + "/" + sbi_fdt | ||
20 | |||
21 | def riscv_get_do_compile_depends(d): | ||
22 | sbi_payload = d.getVar('RISCV_SBI_PAYLOAD') or "" | ||
23 | if sbi_payload == "": | ||
14 | return "" | 24 | return "" |
15 | 25 | ||
26 | sbi_fdt = d.getVar('RISCV_SBI_FDT') or "" | ||
27 | |||
28 | if sbi_fdt != "" and 'u-boot.bin' in sbi_payload: | ||
29 | return "virtual/kernel:do_deploy virtual/bootloader:do_deploy" | ||
30 | |||
16 | if 'linux' in sbi_payload or 'Image' in sbi_payload: | 31 | if 'linux' in sbi_payload or 'Image' in sbi_payload: |
17 | return "virtual/kernel:do_deploy" | 32 | return "virtual/kernel:do_deploy" |
18 | if 'u-boot.bin' in sbi_payload: | 33 | if 'u-boot.bin' in sbi_payload: |
19 | return "virtual/bootloader:do_deploy" | 34 | return "virtual/bootloader:do_deploy" |
35 | if sbi_fdt != "": | ||
36 | return "virtual/kernel:do_deploy" | ||
20 | 37 | ||
21 | return "" | 38 | return "" |