Brad Bishop | f3fd288 | 2019-06-21 08:06:37 -0400 | [diff] [blame] | 1 | def riscv_get_extra_oemake_image(d): |
| 2 | sbi_payload = d.getVar('RISCV_SBI_PAYLOAD') |
Brad Bishop | f3fd288 | 2019-06-21 08:06:37 -0400 | [diff] [blame] | 3 | if sbi_payload is None: |
| 4 | return "" |
| 5 | |
Andrew Geissler | 6aa7eec | 2023-03-03 12:41:14 -0600 | [diff] [blame] | 6 | deploy_dir = d.getVar('DEPLOY_DIR_IMAGE') |
| 7 | |
Brad Bishop | 96ff198 | 2019-08-19 13:50:42 -0400 | [diff] [blame] | 8 | return "FW_PAYLOAD_PATH=" + deploy_dir + "/" + sbi_payload |
Brad Bishop | f3fd288 | 2019-06-21 08:06:37 -0400 | [diff] [blame] | 9 | |
Andrew Geissler | 0903674 | 2021-06-25 14:25:14 -0500 | [diff] [blame] | 10 | def riscv_get_extra_oemake_fdt(d): |
Andrew Geissler | 6aa7eec | 2023-03-03 12:41:14 -0600 | [diff] [blame] | 11 | if d.getVar('RISCV_SBI_PAYLOAD') is None: |
| 12 | return "" |
Andrew Geissler | 0903674 | 2021-06-25 14:25:14 -0500 | [diff] [blame] | 13 | sbi_fdt = d.getVar('RISCV_SBI_FDT') |
| 14 | deploy_dir = d.getVar('DEPLOY_DIR_IMAGE') |
| 15 | |
| 16 | if sbi_fdt is None: |
| 17 | return "" |
| 18 | |
| 19 | return "FW_FDT_PATH=" + deploy_dir + "/" + sbi_fdt |
| 20 | |
Brad Bishop | f3fd288 | 2019-06-21 08:06:37 -0400 | [diff] [blame] | 21 | def riscv_get_do_compile_depends(d): |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame] | 22 | sbi_payload = d.getVar('RISCV_SBI_PAYLOAD') or "" |
Andrew Geissler | 6aa7eec | 2023-03-03 12:41:14 -0600 | [diff] [blame] | 23 | if sbi_payload == "": |
Brad Bishop | f3fd288 | 2019-06-21 08:06:37 -0400 | [diff] [blame] | 24 | return "" |
| 25 | |
Andrew Geissler | 6aa7eec | 2023-03-03 12:41:14 -0600 | [diff] [blame] | 26 | sbi_fdt = d.getVar('RISCV_SBI_FDT') or "" |
| 27 | |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame] | 28 | if sbi_fdt != "" and 'u-boot.bin' in sbi_payload: |
Andrew Geissler | 0903674 | 2021-06-25 14:25:14 -0500 | [diff] [blame] | 29 | return "virtual/kernel:do_deploy virtual/bootloader:do_deploy" |
| 30 | |
Brad Bishop | f3fd288 | 2019-06-21 08:06:37 -0400 | [diff] [blame] | 31 | if 'linux' in sbi_payload or 'Image' in sbi_payload: |
| 32 | return "virtual/kernel:do_deploy" |
Brad Bishop | c8f4712 | 2019-06-24 09:36:18 -0400 | [diff] [blame] | 33 | if 'u-boot.bin' in sbi_payload: |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 34 | return "virtual/bootloader:do_deploy" |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame] | 35 | if sbi_fdt != "": |
| 36 | return "virtual/kernel:do_deploy" |
Brad Bishop | f3fd288 | 2019-06-21 08:06:37 -0400 | [diff] [blame] | 37 | |
| 38 | return "" |