summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Hochstein <tom.hochstein@nxp.com>2021-03-12 23:21:43 -0600
committerOtavio Salvador <otavio@ossystems.com.br>2021-03-13 13:17:03 -0300
commitcc4b91bf3a3cf5c2034372c607783048aae44b65 (patch)
tree863d0c89dec3d9d80c9c6a547d6ef6b2e1f3270e
parentacefa6862884d1c8d06ead73e4088bc91e54b3ce (diff)
downloadmeta-freescale-cc4b91bf3a3cf5c2034372c607783048aae44b65.tar.gz
imx6*.conf: Rework machine assignments for u-boot variables
The u-boot settings in imx6qdlsabresd, imx6qdlsabreauto, and imx6ulevk are set to values that are correct for u-boot-fslc. Attempts to override these settings to fix u-boot-imx builds have broken u-boot-fslc builds, and vice versa. The u-boot-imx build is currently broken: ``` | install: cannot stat '/opt/work/upstream/fsl-xwayland/tmp/work/imx6qdlsabresd-fsl-linux-gnueabi/u-boot-imx/2020.04-r0/build/u-boot.img': No such file or directory ``` Rework the u-boot-fslc-specific overrides so they are used conditionally only for u-boot-fslc. The default settings are correct for u-boot-imx. Fixes: 880dbf2 ("fsl-base.inc: use conditional assignment for base variables") Fixes: e83f54d ("machines: imx-base.inc: fix failing u-boot builds") Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
-rw-r--r--conf/machine/imx6qdlsabreauto.conf11
-rw-r--r--conf/machine/imx6qdlsabresd.conf11
-rw-r--r--conf/machine/imx6ulevk.conf11
3 files changed, 18 insertions, 15 deletions
diff --git a/conf/machine/imx6qdlsabreauto.conf b/conf/machine/imx6qdlsabreauto.conf
index a6d5908b..7464cb08 100644
--- a/conf/machine/imx6qdlsabreauto.conf
+++ b/conf/machine/imx6qdlsabreauto.conf
@@ -34,11 +34,12 @@ KERNEL_DEVICETREE_use-mainline-bsp = " \
34 34
35UBOOT_MACHINE ?= "mx6sabreauto_defconfig" 35UBOOT_MACHINE ?= "mx6sabreauto_defconfig"
36 36
37# Use fslc u-boot by default. See also imx-base.inc. 37# These u-boot variables default to the correct settings for u-boot-imx.
38UBOOT_MAKE_TARGET = "all" 38# Set overrides for u-boot-fslc.
39UBOOT_SUFFIX = "img" 39UBOOT_MAKE_TARGET_pn-u-boot-fslc = "all"
40SPL_BINARY = "SPL" 40UBOOT_SUFFIX_pn-u-boot-fslc = "img"
41WKS_FILE = "imx-uboot-spl-bootpart.wks.in" 41SPL_BINARY_pn-u-boot-fslc = "SPL"
42WKS_FILE_pn-u-boot-fslc = "imx-uboot-spl-bootpart.wks.in"
42 43
43# The fsl distro uses u-boot-imx which does not provide unified functionality 44# The fsl distro uses u-boot-imx which does not provide unified functionality
44# for dl/q/qp SoC variants. Change the defconfig to the targeted SoC variant. 45# for dl/q/qp SoC variants. Change the defconfig to the targeted SoC variant.
diff --git a/conf/machine/imx6qdlsabresd.conf b/conf/machine/imx6qdlsabresd.conf
index 406ad7d7..a2b959e3 100644
--- a/conf/machine/imx6qdlsabresd.conf
+++ b/conf/machine/imx6qdlsabresd.conf
@@ -43,11 +43,12 @@ KERNEL_DEVICETREE_use-mainline-bsp = " \
43 43
44UBOOT_MACHINE ?= "mx6sabresd_defconfig" 44UBOOT_MACHINE ?= "mx6sabresd_defconfig"
45 45
46# Use fslc u-boot by default. See also imx-base.inc. 46# These u-boot variables default to the correct settings for u-boot-imx.
47UBOOT_MAKE_TARGET = "all" 47# Set overrides for u-boot-fslc.
48UBOOT_SUFFIX = "img" 48UBOOT_MAKE_TARGET_pn-u-boot-fslc = "all"
49SPL_BINARY = "SPL" 49UBOOT_SUFFIX_pn-u-boot-fslc = "img"
50WKS_FILE = "imx-uboot-spl-bootpart.wks.in" 50SPL_BINARY_pn-u-boot-fslc = "SPL"
51WKS_FILE_pn-u-boot-fslc = "imx-uboot-spl-bootpart.wks.in"
51 52
52# The fsl distro uses u-boot-imx which does not provide unified functionality 53# The fsl distro uses u-boot-imx which does not provide unified functionality
53# for dl/q/qp SoC variants. Change the defconfig to the targeted SoC variant. 54# for dl/q/qp SoC variants. Change the defconfig to the targeted SoC variant.
diff --git a/conf/machine/imx6ulevk.conf b/conf/machine/imx6ulevk.conf
index a8acb43d..63047d02 100644
--- a/conf/machine/imx6ulevk.conf
+++ b/conf/machine/imx6ulevk.conf
@@ -23,11 +23,12 @@ KERNEL_DEVICETREE = " \
23" 23"
24KERNEL_DEVICETREE_use-mainline-bsp = "imx6ul-14x14-evk.dtb" 24KERNEL_DEVICETREE_use-mainline-bsp = "imx6ul-14x14-evk.dtb"
25 25
26# Use fslc u-boot by default. See also imx-base.inc. 26# These u-boot variables default to the correct settings for u-boot-imx.
27UBOOT_MAKE_TARGET = "" 27# Set overrides for u-boot-fslc.
28UBOOT_SUFFIX = "img" 28UBOOT_MAKE_TARGET_pn-u-boot-fslc = ""
29SPL_BINARY = "SPL" 29UBOOT_SUFFIX_pn-u-boot-fslc = "img"
30WKS_FILE = "imx-uboot-spl-bootpart.wks.in" 30SPL_BINARY_pn-u-boot-fslc = "SPL"
31WKS_FILE_pn-u-boot-fslc = "imx-uboot-spl-bootpart.wks.in"
31 32
32UBOOT_CONFIG ??= " \ 33UBOOT_CONFIG ??= " \
33 sd \ 34 sd \