Skip to contentSkip to conversation

opensbi-payloads: Add dependency on kernel if fdt is set

PATCH New Khem Raj 1 participant 1 message Oct 16, 2021

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 opensbi-payloads: Add dependency on kernel if fdt is set

fdts are built as part of kernel, so add missing dependency on kernel deploy task

Fixes opensbi build errors
| make: *** No rule to make target '/mnt/b/yoe/master/build/tmp/deploy/images/unmatched/hifive-unmatched-a00.dtb', needed
by '/mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux-musl/opensbi/0.9+gitAUTOINC+bd355213bf-r0/git/build/platform/gene
ric/firmware/fw_dynamic.o'. Stop.

Cc Alistair Francis <[email protected]>
---
 meta/recipes-bsp/opensbi/opensbi-payloads.inc | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-bsp/opensbi/opensbi-payloads.inc +2 -0
index ce537c0587..e590a27573 100644
@@ -30,5 +30,7 @@ def riscv_get_do_compile_depends(d):
         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 ""
Signature · 1 line
2.33.1