aboutsummaryrefslogtreecommitdiffstats
path: root/conf/machine/include/utilities.inc
diff options
context:
space:
mode:
Diffstat (limited to 'conf/machine/include/utilities.inc')
-rw-r--r--conf/machine/include/utilities.inc11
1 files changed, 11 insertions, 0 deletions
diff --git a/conf/machine/include/utilities.inc b/conf/machine/include/utilities.inc
index 164d77f4..34ce7abc 100644
--- a/conf/machine/include/utilities.inc
+++ b/conf/machine/include/utilities.inc
@@ -6,6 +6,11 @@ def make_dtb_boot_files(d):
# Use only the basename for dtb files:
alldtbs = d.getVar('KERNEL_DEVICETREE')
+
+ # DTBs may be built out of kernel with devicetree.bbclass
+ if not alldtbs:
+ return ''
+
def transform(dtb):
if not (dtb.endswith('dtb') or dtb.endswith('dtbo')):
# eg: whatever/bcm2708-rpi-b.dtb has:
@@ -15,3 +20,9 @@ def make_dtb_boot_files(d):
return os.path.basename(dtb)
return ' '.join([transform(dtb) for dtb in alldtbs.split() if dtb])
+
+def get_spl_binary(d):
+ imx_default_bootloader = d.get('IMX_DEFAULT_BOOTLOADER')
+ spl_binary = d.getVar("SPL_BINARY:pn-%s" % imx_default_bootloader)
+
+ return spl_binary or ""