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-24 11:18:34 -0300 |
| commit | 776932e187f38ca53ed57fc662461ba0da005520 (patch) | |
| tree | 490e1782ed6e800bdc0146ed8990934abed5af97 /conf/machine/include | |
| parent | d9d5068e7ae6b6e2b55236ff515b50172d44f803 (diff) | |
| download | meta-freescale-776932e187f38ca53ed57fc662461ba0da005520.tar.gz | |
Rework the u-boot-fslc and u-boot-imx settings logic
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.inc | 53 | ||||
| -rw-r--r-- | conf/machine/include/imx8mm-evk.inc | 5 | ||||
| -rw-r--r-- | conf/machine/include/imx8mn-evk.inc | 5 | ||||
| -rw-r--r-- | conf/machine/include/imx8x-mek.inc | 5 |
4 files changed, 58 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" |
diff --git a/conf/machine/include/imx8mm-evk.inc b/conf/machine/include/imx8mm-evk.inc index 619ad6632..9b590fe01 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 | " |
| 23 | UBOOT_DTB_NAME = "${KERNEL_DEVICETREE_BASENAME}.dtb" | 23 | UBOOT_DTB_NAME = "${KERNEL_DEVICETREE_BASENAME}.dtb" |
| 24 | 24 | ||
| 25 | IMX_DEFAULT_BOOTLOADER_use-nxp-bsp = "u-boot-imx" | ||
| 26 | IMX_DEFAULT_BOOTLOADER_use-mainline-bsp = "u-boot-fslc" | ||
| 27 | |||
| 28 | UBOOT_SUFFIX = "bin" | ||
| 29 | |||
| 25 | UBOOT_CONFIG ??= "sd" | 30 | UBOOT_CONFIG ??= "sd" |
| 26 | UBOOT_CONFIG[sd] = "${UBOOT_CONFIG_BASENAME}_defconfig,sdcard" | 31 | UBOOT_CONFIG[sd] = "${UBOOT_CONFIG_BASENAME}_defconfig,sdcard" |
| 27 | UBOOT_CONFIG[mfgtool] = "${UBOOT_CONFIG_BASENAME}_defconfig" | 32 | UBOOT_CONFIG[mfgtool] = "${UBOOT_CONFIG_BASENAME}_defconfig" |
diff --git a/conf/machine/include/imx8mn-evk.inc b/conf/machine/include/imx8mn-evk.inc index ad4f5dea8..6a5b31f7e 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 | " |
| 23 | UBOOT_DTB_NAME = "${KERNEL_DEVICETREE_BASENAME}.dtb" | 23 | UBOOT_DTB_NAME = "${KERNEL_DEVICETREE_BASENAME}.dtb" |
| 24 | 24 | ||
| 25 | IMX_DEFAULT_BOOTLOADER_use-nxp-bsp = "u-boot-imx" | ||
| 26 | IMX_DEFAULT_BOOTLOADER_use-mainline-bsp = "u-boot-fslc" | ||
| 27 | |||
| 28 | UBOOT_SUFFIX = "bin" | ||
| 29 | |||
| 25 | UBOOT_CONFIG ??= "sd" | 30 | UBOOT_CONFIG ??= "sd" |
| 26 | UBOOT_CONFIG[sd] = "${UBOOT_CONFIG_BASENAME}_defconfig,sdcard" | 31 | UBOOT_CONFIG[sd] = "${UBOOT_CONFIG_BASENAME}_defconfig,sdcard" |
| 27 | UBOOT_CONFIG[fspi] = "${UBOOT_CONFIG_BASENAME}_defconfig" | 32 | UBOOT_CONFIG[fspi] = "${UBOOT_CONFIG_BASENAME}_defconfig" |
diff --git a/conf/machine/include/imx8x-mek.inc b/conf/machine/include/imx8x-mek.inc index 490e00dbf..814a34c1a 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 | ||
| 55 | IMX_BOOT_SEEK = "32" | 55 | IMX_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. | ||
| 59 | IMX_DEFAULT_BOOTLOADER = "u-boot-imx" | ||
| 60 | UBOOT_SUFFIX = "bin" | ||
| 61 | |||
| 57 | # Set ATF platform name | 62 | # Set ATF platform name |
| 58 | ATF_PLATFORM = "imx8qx" | 63 | ATF_PLATFORM = "imx8qx" |
| 59 | 64 | ||
