diff options
| -rw-r--r-- | conf/machine/include/imx-base.inc | 2 | ||||
| -rw-r--r-- | conf/machine/include/utilities.inc | 6 | 
2 files changed, 7 insertions, 1 deletions
| diff --git a/conf/machine/include/imx-base.inc b/conf/machine/include/imx-base.inc index 2b434133b..14008927c 100644 --- a/conf/machine/include/imx-base.inc +++ b/conf/machine/include/imx-base.inc | |||
| @@ -65,7 +65,7 @@ UBOOT_SUFFIX ?= "${UBOOT_SUFFIX_pn-${IMX_DEFAULT_BOOTLOADER}}" | |||
| 65 | 65 | ||
| 66 | # We need to export the original variable to allow it to be used when generating | 66 | # We need to export the original variable to allow it to be used when generating | 
| 67 | # wic based images. | 67 | # wic based images. | 
| 68 | SPL_BINARY ?= "${SPL_BINARY_pn-${IMX_DEFAULT_BOOTLOADER}}" | 68 | SPL_BINARY ??= "${@get_spl_binary(d)}" | 
| 69 | 69 | ||
| 70 | IMX_DEFAULT_UBOOTTOOLS = "${@bb.utils.contains('IMX_DEFAULT_BOOTLOADER', 'u-boot-imx','u-boot-imx-tools', 'u-boot-tools', d)}" | 70 | IMX_DEFAULT_UBOOTTOOLS = "${@bb.utils.contains('IMX_DEFAULT_BOOTLOADER', 'u-boot-imx','u-boot-imx-tools', 'u-boot-tools', d)}" | 
| 71 | IMX_DEFAULT_MFGTOOL = "${@bb.utils.contains('IMX_DEFAULT_BOOTLOADER', 'u-boot-imx','u-boot-imx-mfgtool', 'u-boot-fslc', d)}" | 71 | IMX_DEFAULT_MFGTOOL = "${@bb.utils.contains('IMX_DEFAULT_BOOTLOADER', 'u-boot-imx','u-boot-imx-mfgtool', 'u-boot-fslc', d)}" | 
| diff --git a/conf/machine/include/utilities.inc b/conf/machine/include/utilities.inc index e9695bde0..f11b588bb 100644 --- a/conf/machine/include/utilities.inc +++ b/conf/machine/include/utilities.inc | |||
| @@ -20,3 +20,9 @@ def make_dtb_boot_files(d): | |||
| 20 | return os.path.basename(dtb) | 20 | return os.path.basename(dtb) | 
| 21 | 21 | ||
| 22 | return ' '.join([transform(dtb) for dtb in alldtbs.split() if dtb]) | 22 | return ' '.join([transform(dtb) for dtb in alldtbs.split() if dtb]) | 
| 23 | |||
| 24 | def get_spl_binary(d): | ||
| 25 | imx_default_bootloader = d.get('IMX_DEFAULT_BOOTLOADER') | ||
| 26 | spl_binary = d.getVar("SPL_BINARY_pn-%s" % imx_default_bootloader) | ||
| 27 | |||
| 28 | return spl_binary or "" | ||
