summaryrefslogtreecommitdiffstats
path: root/conf/machine/include
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2021-03-19 18:51:30 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2021-03-22 18:41:23 -0300
commitc1c5780dc536f2d405f3c9bfafbaeebfc68801f7 (patch)
tree207bc1b64d3c76ac1dc4c8f55ee8c8ef7c270a44 /conf/machine/include
parentb138e5cfad698e5add42b876edac443d22a25a52 (diff)
downloadmeta-freescale-c1c5780dc536f2d405f3c9bfafbaeebfc68801f7.tar.gz
Rework the u-boot-fslc and u-boot-imx settings logictopic/rework-bootloader
We need to make it more obvious what is in use, when we support both bootloaders and for it we are now using the _pn suffix for both. This also fixes the WIC_FILE depending on the choice otherwise image build fails. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'conf/machine/include')
-rw-r--r--conf/machine/include/imx-base.inc53
-rw-r--r--conf/machine/include/imx8mm-evk.inc5
-rw-r--r--conf/machine/include/imx8mn-evk.inc5
-rw-r--r--conf/machine/include/imx8x-mek.inc5
4 files changed, 58 insertions, 10 deletions
diff --git a/conf/machine/include/imx-base.inc b/conf/machine/include/imx-base.inc
index 4790005b..d52123e2 100644
--- a/conf/machine/include/imx-base.inc
+++ b/conf/machine/include/imx-base.inc
@@ -18,7 +18,50 @@ IMX_DEFAULT_BSP_mx5 ?= "mainline"
18 18
19MACHINEOVERRIDES =. "use-${IMX_DEFAULT_BSP}-bsp:" 19MACHINEOVERRIDES =. "use-${IMX_DEFAULT_BSP}-bsp:"
20 20
21# UBOOT_BINARY is used inside the wks files to dynamically find the required
22# U-Boot file.
23UBOOT_BINARY ?= "u-boot.${UBOOT_SUFFIX}"
24
25# Using the 'IMX_DEFAULT_BOOTLOADER' the machine can support multiple bootloader
26# versions. This is done for NXP reference board where we support 'u-boot-fslc'
27# and 'u-boot-imx'.
28#
29# So, for example in imx6qdlsabresd, we support both flavor and for this we
30# define:
31#
32# ,----[ imx6qdlsabresd.conf ]
33# | ### u-boot-fslc settings ###
34# |
35# | SPL_BINARY_pn-u-boot-fslc = "SPL"
36# | UBOOT_MACHINE_pn-u-boot-fslc ?= "mx6sabresd_defconfig"
37# | UBOOT_SUFFIX_pn-u-boot-fslc = "img"
38# |
39# | ### u-boot-imx settings ###
40# |
41# | # The u-boot-imx does not provide unified functionality for DL/Q/QP SoC
42# | # variants. Change the defconfig to the targeted SoC variant.
43# | UBOOT_MACHINE_pn-u-boot-imx ?= "mx6qsabresd_defconfig"
44# | UBOOT_SUFFIX_pn-u-boot-imx = "imx"
45# `----
46#
47# As result, the 'UBOOT_SUFFIX' is dynamically set based on the preferred U-Boot
48# flavor to use.
49#
50# For machines where one of the flavors is required, we can force it. An example
51# is the imx53qsb, which we define:
52#
53# ,----[ imx53qsb.conf ]
54# | # This machine is not supported by u-boot-imx as it is not tested by NXP on this
55# | # board. So we force it to use u-boot-fslc which is based on mainline here.
56# | IMX_DEFAULT_BOOTLOADER = "u-boot-fslc"
57# |
58# | UBOOT_MAKE_TARGET = "u-boot.imx"
59# | UBOOT_SUFFIX = "imx"
60# |
61# | UBOOT_MACHINE = "mx53loco_config"
62# `----
21IMX_DEFAULT_BOOTLOADER ??= "u-boot-fslc" 63IMX_DEFAULT_BOOTLOADER ??= "u-boot-fslc"
64UBOOT_SUFFIX ?= "${UBOOT_SUFFIX_pn-${IMX_DEFAULT_BOOTLOADER}}"
22 65
23IMX_DEFAULT_UBOOTTOOLS = "${@bb.utils.contains('IMX_DEFAULT_BOOTLOADER', 'u-boot-imx','u-boot-imx-tools', 'u-boot-tools', d)}" 66IMX_DEFAULT_UBOOTTOOLS = "${@bb.utils.contains('IMX_DEFAULT_BOOTLOADER', 'u-boot-imx','u-boot-imx-tools', 'u-boot-tools', d)}"
24 67
@@ -32,16 +75,6 @@ PREFERRED_PROVIDER_virtual/bootloader ??= "${IMX_DEFAULT_BOOTLOADER}"
32 75
33PREFERRED_PROVIDER_u-boot-mxsboot-native ??= "u-boot-fslc-mxsboot-native" 76PREFERRED_PROVIDER_u-boot-mxsboot-native ??= "u-boot-fslc-mxsboot-native"
34 77
35# Set specific make target and binary suffix
36UBOOT_BINARY ?= "u-boot.${UBOOT_SUFFIX}"
37UBOOT_MAKE_TARGET ?= "u-boot.${UBOOT_SUFFIX}"
38UBOOT_MAKE_TARGET_mxs ?= "u-boot.sb"
39UBOOT_MAKE_TARGET_mx8 ?= ""
40
41UBOOT_SUFFIX ?= "imx"
42UBOOT_SUFFIX_mxs ?= "sb"
43UBOOT_SUFFIX_mx8 ?= "bin"
44
45UBOOT_ENTRYPOINT_mxs = "0x40008000" 78UBOOT_ENTRYPOINT_mxs = "0x40008000"
46UBOOT_ENTRYPOINT_mx51 = "0x90008000" 79UBOOT_ENTRYPOINT_mx51 = "0x90008000"
47UBOOT_ENTRYPOINT_mx53 = "0x70008000" 80UBOOT_ENTRYPOINT_mx53 = "0x70008000"
diff --git a/conf/machine/include/imx8mm-evk.inc b/conf/machine/include/imx8mm-evk.inc
index 619ad663..9b590fe0 100644
--- a/conf/machine/include/imx8mm-evk.inc
+++ b/conf/machine/include/imx8mm-evk.inc
@@ -22,6 +22,11 @@ KERNEL_DEVICETREE_append_use-nxp-bsp = " \
22" 22"
23UBOOT_DTB_NAME = "${KERNEL_DEVICETREE_BASENAME}.dtb" 23UBOOT_DTB_NAME = "${KERNEL_DEVICETREE_BASENAME}.dtb"
24 24
25IMX_DEFAULT_BOOTLOADER_use-nxp-bsp = "u-boot-imx"
26IMX_DEFAULT_BOOTLOADER_use-mainline-bsp = "u-boot-fslc"
27
28UBOOT_SUFFIX = "bin"
29
25UBOOT_CONFIG ??= "sd" 30UBOOT_CONFIG ??= "sd"
26UBOOT_CONFIG[sd] = "${UBOOT_CONFIG_BASENAME}_defconfig,sdcard" 31UBOOT_CONFIG[sd] = "${UBOOT_CONFIG_BASENAME}_defconfig,sdcard"
27UBOOT_CONFIG[mfgtool] = "${UBOOT_CONFIG_BASENAME}_defconfig" 32UBOOT_CONFIG[mfgtool] = "${UBOOT_CONFIG_BASENAME}_defconfig"
diff --git a/conf/machine/include/imx8mn-evk.inc b/conf/machine/include/imx8mn-evk.inc
index ad4f5dea..6a5b31f7 100644
--- a/conf/machine/include/imx8mn-evk.inc
+++ b/conf/machine/include/imx8mn-evk.inc
@@ -22,6 +22,11 @@ KERNEL_DEVICETREE_append_use-nxp-bsp = " \
22" 22"
23UBOOT_DTB_NAME = "${KERNEL_DEVICETREE_BASENAME}.dtb" 23UBOOT_DTB_NAME = "${KERNEL_DEVICETREE_BASENAME}.dtb"
24 24
25IMX_DEFAULT_BOOTLOADER_use-nxp-bsp = "u-boot-imx"
26IMX_DEFAULT_BOOTLOADER_use-mainline-bsp = "u-boot-fslc"
27
28UBOOT_SUFFIX = "bin"
29
25UBOOT_CONFIG ??= "sd" 30UBOOT_CONFIG ??= "sd"
26UBOOT_CONFIG[sd] = "${UBOOT_CONFIG_BASENAME}_defconfig,sdcard" 31UBOOT_CONFIG[sd] = "${UBOOT_CONFIG_BASENAME}_defconfig,sdcard"
27UBOOT_CONFIG[fspi] = "${UBOOT_CONFIG_BASENAME}_defconfig" 32UBOOT_CONFIG[fspi] = "${UBOOT_CONFIG_BASENAME}_defconfig"
diff --git a/conf/machine/include/imx8x-mek.inc b/conf/machine/include/imx8x-mek.inc
index 490e00db..814a34c1 100644
--- a/conf/machine/include/imx8x-mek.inc
+++ b/conf/machine/include/imx8x-mek.inc
@@ -54,6 +54,11 @@ UBOOT_CONFIG[fspi] = "${UBOOT_CONFIG_BASENAME}_fspi_defconfig"
54 54
55IMX_BOOT_SEEK = "32" 55IMX_BOOT_SEEK = "32"
56 56
57# This machine is not supported by u-boot-fslc, so we force it to use
58# u-boot-imx here.
59IMX_DEFAULT_BOOTLOADER = "u-boot-imx"
60UBOOT_SUFFIX = "bin"
61
57# Set ATF platform name 62# Set ATF platform name
58ATF_PLATFORM = "imx8qx" 63ATF_PLATFORM = "imx8qx"
59 64