blob: 2e329432452fe3c8283230a4d2b34ba504fe2681 [file] [log] [blame]
Brad Bishopf3fd2882019-06-21 08:06:37 -04001def 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
Brad Bishop96ff1982019-08-19 13:50:42 -04008 return "FW_PAYLOAD_PATH=" + deploy_dir + "/" + sbi_payload
Brad Bishopf3fd2882019-06-21 08:06:37 -04009
Brad Bishopf3fd2882019-06-21 08:06:37 -040010def riscv_get_do_compile_depends(d):
11 sbi_payload = d.getVar('RISCV_SBI_PAYLOAD')
12
13 if sbi_payload is None:
14 return ""
15
16 if 'linux' in sbi_payload or 'Image' in sbi_payload:
17 return "virtual/kernel:do_deploy"
Brad Bishopc8f47122019-06-24 09:36:18 -040018 if 'u-boot.bin' in sbi_payload:
Andrew Geissler82c905d2020-04-13 13:39:40 -050019 return "virtual/bootloader:do_deploy"
Brad Bishopf3fd2882019-06-21 08:06:37 -040020
21 return ""