diff options
| -rw-r--r-- | meta/recipes-bsp/opensbi/opensbi-payloads.inc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/meta/recipes-bsp/opensbi/opensbi-payloads.inc b/meta/recipes-bsp/opensbi/opensbi-payloads.inc index e590a27573..a55679632e 100644 --- a/meta/recipes-bsp/opensbi/opensbi-payloads.inc +++ b/meta/recipes-bsp/opensbi/opensbi-payloads.inc | |||
| @@ -1,13 +1,15 @@ | |||
| 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_extra_oemake_fdt(d): | 10 | def riscv_get_extra_oemake_fdt(d): |
| 11 | if d.getVar('RISCV_SBI_PAYLOAD') is None: | ||
| 12 | return "" | ||
| 11 | sbi_fdt = d.getVar('RISCV_SBI_FDT') | 13 | sbi_fdt = d.getVar('RISCV_SBI_FDT') |
| 12 | deploy_dir = d.getVar('DEPLOY_DIR_IMAGE') | 14 | deploy_dir = d.getVar('DEPLOY_DIR_IMAGE') |
| 13 | 15 | ||
| @@ -18,11 +20,11 @@ def riscv_get_extra_oemake_fdt(d): | |||
| 18 | 20 | ||
| 19 | def riscv_get_do_compile_depends(d): | 21 | def riscv_get_do_compile_depends(d): |
| 20 | sbi_payload = d.getVar('RISCV_SBI_PAYLOAD') or "" | 22 | sbi_payload = d.getVar('RISCV_SBI_PAYLOAD') or "" |
| 21 | sbi_fdt = d.getVar('RISCV_SBI_FDT') or "" | 23 | if sbi_payload == "": |
| 22 | |||
| 23 | if sbi_payload == "" and sbi_fdt == "": | ||
| 24 | return "" | 24 | return "" |
| 25 | 25 | ||
| 26 | sbi_fdt = d.getVar('RISCV_SBI_FDT') or "" | ||
| 27 | |||
| 26 | if sbi_fdt != "" and 'u-boot.bin' in sbi_payload: | 28 | if sbi_fdt != "" and 'u-boot.bin' in sbi_payload: |
| 27 | return "virtual/kernel:do_deploy virtual/bootloader:do_deploy" | 29 | return "virtual/kernel:do_deploy virtual/bootloader:do_deploy" |
| 28 | 30 | ||
