From: Zachary Booth <[email protected]>

Correctly handle parsing when KERNEL_DEVICETREE is not set.

Signed-off-by: Zachary Booth <[email protected]>
Signed-off-by: Joshua Watt <[email protected]>
Signed-off-by: Joshua Watt <[email protected]>
---
 conf/machine/include/omap-a15.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/conf/machine/include/omap-a15.inc 
b/conf/machine/include/omap-a15.inc
index 02225a4e..4f57e6d1 100644
--- a/conf/machine/include/omap-a15.inc
+++ b/conf/machine/include/omap-a15.inc
@@ -19,7 +19,7 @@ UBOOT_ARCH = "arm"
 UBOOT_ENTRYPOINT = "0x80008000"
 UBOOT_LOADADDRESS = "0x80008000"
 
-DEVICETREE_FILE = "${@d.getVar('KERNEL_DEVICETREE').replace("ti/","")}"
+DEVICETREE_FILE = "${@(d.getVar('KERNEL_DEVICETREE') or "").replace("ti/","")}"
 
 # Generate an extlinux.conf file
 UBOOT_EXTLINUX = "1"
-- 
2.33.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#15332): 
https://lists.yoctoproject.org/g/meta-ti/message/15332
Mute This Topic: https://lists.yoctoproject.org/mt/94875941/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to