summaryrefslogtreecommitdiffstats
path: root/conf/machine/include/imx-base.inc
diff options
context:
space:
mode:
Diffstat (limited to 'conf/machine/include/imx-base.inc')
-rw-r--r--conf/machine/include/imx-base.inc53
1 files changed, 43 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"