diff options
| author | Otavio Salvador <otavio@ossystems.com.br> | 2021-03-19 18:51:30 -0300 |
|---|---|---|
| committer | Otavio Salvador <otavio@ossystems.com.br> | 2021-03-22 18:41:23 -0300 |
| commit | c1c5780dc536f2d405f3c9bfafbaeebfc68801f7 (patch) | |
| tree | 207bc1b64d3c76ac1dc4c8f55ee8c8ef7c270a44 /conf/machine/include/imx-base.inc | |
| parent | b138e5cfad698e5add42b876edac443d22a25a52 (diff) | |
| download | meta-freescale-topic/rework-bootloader.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/imx-base.inc')
| -rw-r--r-- | conf/machine/include/imx-base.inc | 53 |
1 files changed, 43 insertions, 10 deletions
diff --git a/conf/machine/include/imx-base.inc b/conf/machine/include/imx-base.inc index 4790005b2..d52123e27 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 | ||
| 19 | MACHINEOVERRIDES =. "use-${IMX_DEFAULT_BSP}-bsp:" | 19 | MACHINEOVERRIDES =. "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. | ||
| 23 | UBOOT_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 | # `---- | ||
| 21 | IMX_DEFAULT_BOOTLOADER ??= "u-boot-fslc" | 63 | IMX_DEFAULT_BOOTLOADER ??= "u-boot-fslc" |
| 64 | UBOOT_SUFFIX ?= "${UBOOT_SUFFIX_pn-${IMX_DEFAULT_BOOTLOADER}}" | ||
| 22 | 65 | ||
| 23 | IMX_DEFAULT_UBOOTTOOLS = "${@bb.utils.contains('IMX_DEFAULT_BOOTLOADER', 'u-boot-imx','u-boot-imx-tools', 'u-boot-tools', d)}" | 66 | IMX_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 | ||
| 33 | PREFERRED_PROVIDER_u-boot-mxsboot-native ??= "u-boot-fslc-mxsboot-native" | 76 | PREFERRED_PROVIDER_u-boot-mxsboot-native ??= "u-boot-fslc-mxsboot-native" |
| 34 | 77 | ||
| 35 | # Set specific make target and binary suffix | ||
| 36 | UBOOT_BINARY ?= "u-boot.${UBOOT_SUFFIX}" | ||
| 37 | UBOOT_MAKE_TARGET ?= "u-boot.${UBOOT_SUFFIX}" | ||
| 38 | UBOOT_MAKE_TARGET_mxs ?= "u-boot.sb" | ||
| 39 | UBOOT_MAKE_TARGET_mx8 ?= "" | ||
| 40 | |||
| 41 | UBOOT_SUFFIX ?= "imx" | ||
| 42 | UBOOT_SUFFIX_mxs ?= "sb" | ||
| 43 | UBOOT_SUFFIX_mx8 ?= "bin" | ||
| 44 | |||
| 45 | UBOOT_ENTRYPOINT_mxs = "0x40008000" | 78 | UBOOT_ENTRYPOINT_mxs = "0x40008000" |
| 46 | UBOOT_ENTRYPOINT_mx51 = "0x90008000" | 79 | UBOOT_ENTRYPOINT_mx51 = "0x90008000" |
| 47 | UBOOT_ENTRYPOINT_mx53 = "0x70008000" | 80 | UBOOT_ENTRYPOINT_mx53 = "0x70008000" |
