]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
opensbi-payloads: Add dependency on kernel if fdt is set
authorKhem Raj <raj.khem@gmail.com>
Sat, 16 Oct 2021 16:49:01 +0000 (09:49 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 17 Oct 2021 20:54:42 +0000 (21:54 +0100)
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.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-bsp/opensbi/opensbi-payloads.inc

index ce537c0587c63a73f56d568517adae536eacac61..e590a2757318bbcdd1387c8eb1f6cf8c2b9b5965 100644 (file)
@@ -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 ""