mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
recipes-bsp/opensbi: Add support for specifying a device tree
(From OE-Core rev: 48bc2f24796705dd7ab7fe4c74690e7e1715ddaf) Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
984066eb13
commit
139fb42023
|
@ -7,12 +7,25 @@ def riscv_get_extra_oemake_image(d):
|
||||||
|
|
||||||
return "FW_PAYLOAD_PATH=" + deploy_dir + "/" + sbi_payload
|
return "FW_PAYLOAD_PATH=" + deploy_dir + "/" + sbi_payload
|
||||||
|
|
||||||
|
def riscv_get_extra_oemake_fdt(d):
|
||||||
|
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):
|
def riscv_get_do_compile_depends(d):
|
||||||
sbi_payload = d.getVar('RISCV_SBI_PAYLOAD')
|
sbi_payload = d.getVar('RISCV_SBI_PAYLOAD')
|
||||||
|
sbi_fdt = d.getVar('RISCV_SBI_FDT')
|
||||||
|
|
||||||
if sbi_payload is None:
|
if sbi_payload is None and sbi_fdt is None:
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
|
if sbi_fdt is not None 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:
|
if 'linux' in sbi_payload or 'Image' in sbi_payload:
|
||||||
return "virtual/kernel:do_deploy"
|
return "virtual/kernel:do_deploy"
|
||||||
if 'u-boot.bin' in sbi_payload:
|
if 'u-boot.bin' in sbi_payload:
|
||||||
|
|
|
@ -18,6 +18,7 @@ S = "${WORKDIR}/git"
|
||||||
EXTRA_OEMAKE += "PLATFORM=${RISCV_SBI_PLAT} I=${D} FW_PIC=n"
|
EXTRA_OEMAKE += "PLATFORM=${RISCV_SBI_PLAT} I=${D} FW_PIC=n"
|
||||||
# If RISCV_SBI_PAYLOAD is set then include it as a payload
|
# If RISCV_SBI_PAYLOAD is set then include it as a payload
|
||||||
EXTRA_OEMAKE_append = " ${@riscv_get_extra_oemake_image(d)}"
|
EXTRA_OEMAKE_append = " ${@riscv_get_extra_oemake_image(d)}"
|
||||||
|
EXTRA_OEMAKE_append = " ${@riscv_get_extra_oemake_fdt(d)}"
|
||||||
|
|
||||||
# Required if specifying a custom payload
|
# Required if specifying a custom payload
|
||||||
do_compile[depends] += "${@riscv_get_do_compile_depends(d)}"
|
do_compile[depends] += "${@riscv_get_do_compile_depends(d)}"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user