summaryrefslogtreecommitdiffstats
path: root/conf/machine/imx6qdlsabresd.conf
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2023-04-12 20:43:38 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2023-04-12 20:43:38 -0300
commit06fbf0e23c8f86742ed5000f953bd7a974a061d8 (patch)
treee7275758335462f10e8d74fb5a42b2f8a9d3145e /conf/machine/imx6qdlsabresd.conf
parent56ba9c32d6b3029fb1c2b3fc8ea8778d62f396a8 (diff)
downloadmeta-freescale-06fbf0e23c8f86742ed5000f953bd7a974a061d8.tar.gz
imx6qdlsabre*: ensure UBOOT_CONFIG setting is always availablefix/issue-1290
We cannot tie the UBOOT_CONFIG setting to the U-Boot recipe otherwise if kernel-fitimage is added in KERNEL_CLASSES, the following build errors is raised: ,---- | Nothing PROVIDES ‘virtual/kernel’ | ... | Either UBOOT_MACHINE or UBOOT_CONFIG must be set in the imx6qdlsabresd machine configuration. `---- kernel-fitimage class inherits uboot-sign which inherits uboot-config. uboot-config class checks UBOOT_CONFIG and it is not defined. The fix is essentially to move the conditional for the variable assignment instead of using the recipe override. Fixes: #1290 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'conf/machine/imx6qdlsabresd.conf')
-rw-r--r--conf/machine/imx6qdlsabresd.conf10
1 files changed, 5 insertions, 5 deletions
diff --git a/conf/machine/imx6qdlsabresd.conf b/conf/machine/imx6qdlsabresd.conf
index 046a7c7f..415b003c 100644
--- a/conf/machine/imx6qdlsabresd.conf
+++ b/conf/machine/imx6qdlsabresd.conf
@@ -41,17 +41,17 @@ KERNEL_DEVICETREE:use-mainline-bsp = " \
41 imx6dl-sabresd.dtb \ 41 imx6dl-sabresd.dtb \
42" 42"
43 43
44UBOOT_CONFIG ??= " \
45 sd \
46 ${@oe.utils.ifelse(d.getVar('IMX_DEFAULT_BOOTLOADER') == 'u-boot-imx', \
47 bb.utils.contains('MACHINE_FEATURES', 'optee', 'sd-optee', '', d), '')}"
48
44### u-boot-fslc settings ### 49### u-boot-fslc settings ###
45SPL_BINARY:pn-u-boot-fslc = "SPL" 50SPL_BINARY:pn-u-boot-fslc = "SPL"
46UBOOT_CONFIG:pn-u-boot-fslc ??= "sd"
47UBOOT_SUFFIX:pn-u-boot-fslc = "img" 51UBOOT_SUFFIX:pn-u-boot-fslc = "img"
48 52
49### u-boot-imx settings ### 53### u-boot-imx settings ###
50SPL_BINARY:pn-u-boot-imx = "" 54SPL_BINARY:pn-u-boot-imx = ""
51UBOOT_CONFIG:pn-u-boot-imx ??= " \
52 sd \
53 ${@bb.utils.contains('MACHINE_FEATURES', 'optee', 'sd-optee', '', d)} \
54"
55UBOOT_MAKE_TARGET:pn-u-boot-imx = "u-boot.imx" 55UBOOT_MAKE_TARGET:pn-u-boot-imx = "u-boot.imx"
56UBOOT_SUFFIX:pn-u-boot-imx = "imx" 56UBOOT_SUFFIX:pn-u-boot-imx = "imx"
57UBOOT_MAKE_TARGET:pn-u-boot-imx-mfgtool = "u-boot.imx" 57UBOOT_MAKE_TARGET:pn-u-boot-imx-mfgtool = "u-boot.imx"