mirror of
https://git.yoctoproject.org/poky
synced 2026-04-28 06:32:34 +02:00
Dependencies only make sense when opensbi is being used to deliver payload which maybe an artifact of kernel or u-boot, otherwise it should be not added. This avoids circular dependencies when RISCV machines do not define RISCV_SBI_PAYLOAD but do define RISCV_SBI_FDT (From OE-Core rev: 83a986fcac535415108caf70a9fdee8edc59f7d5) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
39 lines
1.1 KiB
PHP
39 lines
1.1 KiB
PHP
def riscv_get_extra_oemake_image(d):
|
|
sbi_payload = d.getVar('RISCV_SBI_PAYLOAD')
|
|
if sbi_payload is None:
|
|
return ""
|
|
|
|
deploy_dir = d.getVar('DEPLOY_DIR_IMAGE')
|
|
|
|
return "FW_PAYLOAD_PATH=" + deploy_dir + "/" + sbi_payload
|
|
|
|
def riscv_get_extra_oemake_fdt(d):
|
|
if d.getVar('RISCV_SBI_PAYLOAD') is None:
|
|
return ""
|
|
sbi_fdt = d.getVar('RISCV_SBI_FDT')
|
|
deploy_dir = d.getVar('DEPLOY_DIR_IMAGE')
|
|
|
|
if sbi_fdt is None:
|
|
return ""
|
|
|
|
return "FW_FDT_PATH=" + deploy_dir + "/" + sbi_fdt
|
|
|
|
def riscv_get_do_compile_depends(d):
|
|
sbi_payload = d.getVar('RISCV_SBI_PAYLOAD') or ""
|
|
if sbi_payload == "":
|
|
return ""
|
|
|
|
sbi_fdt = d.getVar('RISCV_SBI_FDT') or ""
|
|
|
|
if sbi_fdt != "" and 'u-boot.bin' in sbi_payload:
|
|
return "virtual/kernel:do_deploy virtual/bootloader:do_deploy"
|
|
|
|
if 'linux' in sbi_payload or 'Image' in sbi_payload:
|
|
return "virtual/kernel:do_deploy"
|
|
if 'u-boot.bin' in sbi_payload:
|
|
return "virtual/bootloader:do_deploy"
|
|
if sbi_fdt != "":
|
|
return "virtual/kernel:do_deploy"
|
|
|
|
return ""
|