diff options
author | Andrey Zhizhikin <andrey.z@gmail.com> | 2020-12-18 10:57:01 +0000 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2021-03-17 10:53:42 -0300 |
commit | badc0f6a1b278c1d7012556efa78aefcdd80ed68 (patch) | |
tree | 3c2e3014de21947d62ce6d7f9e62df3c55031806 /conf | |
parent | c56750306053510d5e745657fba625497082f0fc (diff) | |
download | meta-freescale-badc0f6a1b278c1d7012556efa78aefcdd80ed68.tar.gz |
imx-base.inc: add boot container condition and wks dependency
Boot container provided by mainline U-Boot build can be used directly
int the result image file, and does not depends on the imx-boot
component provided by NXP.
Define variable to be used for conditional inheritance on the
imx-boot-container class when 'imx-boot-container' is present in
machine overrides.
Modify WKS dependency to imx-boot for mainline BSP built for aarch64 to
use imx-boot when derivative does not set the boot container
compatibility in its overrides.
Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
Diffstat (limited to 'conf')
-rw-r--r-- | conf/machine/include/imx-base.inc | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/conf/machine/include/imx-base.inc b/conf/machine/include/imx-base.inc index c0ee3fbc..6c9f3aa6 100644 --- a/conf/machine/include/imx-base.inc +++ b/conf/machine/include/imx-base.inc | |||
@@ -57,6 +57,12 @@ UBOOT_ENTRYPOINT_mx7ulp = "0x60008000" | |||
57 | UBOOT_ENTRYPOINT_mx8m = "0x40480000" | 57 | UBOOT_ENTRYPOINT_mx8m = "0x40480000" |
58 | UBOOT_ENTRYPOINT_vf = "0x80008000" | 58 | UBOOT_ENTRYPOINT_vf = "0x80008000" |
59 | 59 | ||
60 | # Some derivates can utilize the boot container provided by U-Boot, | ||
61 | # below variable sets that those machines which have a imx-boot-container | ||
62 | # in their MACHINEOVERRIDES can inherit a imx-boot-container class | ||
63 | UBOOT_PROVIDES_BOOT_CONTAINER = "0" | ||
64 | UBOOT_PROVIDES_BOOT_CONTAINER_imx-boot-container = "1" | ||
65 | |||
60 | PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg" | 66 | PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg" |
61 | XSERVER_DRIVER = "xf86-video-fbdev" | 67 | XSERVER_DRIVER = "xf86-video-fbdev" |
62 | XSERVER_DRIVER_imxgpu2d = "xf86-video-imx-vivante" | 68 | XSERVER_DRIVER_imxgpu2d = "xf86-video-imx-vivante" |
@@ -390,7 +396,20 @@ WKS_FILE_DEPENDS_append_mx8 = " imx-boot" | |||
390 | WKS_FILE_DEPENDS_append_mx8m = " imx-boot" | 396 | WKS_FILE_DEPENDS_append_mx8m = " imx-boot" |
391 | 397 | ||
392 | # We need to restrict the append so we don't add this for other i.MX SoC's. | 398 | # We need to restrict the append so we don't add this for other i.MX SoC's. |
393 | WKS_FILE_DEPENDS_append_use-mainline-bsp_aarch64 = " imx-boot" | 399 | # Derivatives that are not yet adopted the usage of boot container provided |
400 | # by U-Boot build are still targeted to use 'imx-boot' package provided by | ||
401 | # NXP. Moving those derivatives to mainline BSP would require to define an | ||
402 | # 'imx-boot-container' override, and test if the U-Boot built 'flash.bin' | ||
403 | # binary is used a replacement. | ||
404 | # Note, that the results binary name of the boot container is set to 'imx-boot' | ||
405 | # for both NXP and Mainline BSP. | ||
406 | # For Mainline BSP: the 'flash.bin' boot container is renamed during the | ||
407 | # deployment task extesion execution defined in imx-boot-container class. | ||
408 | # For NXP BSP: rename is done in 'imx-boot' recipe at the execution of compile | ||
409 | # task. | ||
410 | WKS_FILE_DEPENDS_append_use-mainline-bsp_aarch64 = " \ | ||
411 | ${@oe.utils.ifelse(d.getVar('UBOOT_PROVIDES_BOOT_CONTAINER') == '0', 'imx-boot', '')} \ | ||
412 | " | ||
394 | 413 | ||
395 | SOC_DEFAULT_WKS_FILE ?= "imx-uboot-bootpart.wks.in" | 414 | SOC_DEFAULT_WKS_FILE ?= "imx-uboot-bootpart.wks.in" |
396 | SOC_DEFAULT_WKS_FILE_mx8m ?= "imx-imx-boot-bootpart.wks.in" | 415 | SOC_DEFAULT_WKS_FILE_mx8m ?= "imx-imx-boot-bootpart.wks.in" |
@@ -398,6 +417,17 @@ SOC_DEFAULT_WKS_FILE_mx8m ?= "imx-imx-boot-bootpart.wks.in" | |||
398 | SOC_DEFAULT_WKS_FILE_mx8 ?= "imx-imx-boot-bootpart.wks.in" | 417 | SOC_DEFAULT_WKS_FILE_mx8 ?= "imx-imx-boot-bootpart.wks.in" |
399 | SOC_DEFAULT_WKS_FILE_mxs ?= "imx-uboot-mxs-bootpart.wks.in" | 418 | SOC_DEFAULT_WKS_FILE_mxs ?= "imx-uboot-mxs-bootpart.wks.in" |
400 | 419 | ||
420 | # Boot container built as a part of mainline U-Boot uses the same WKS | ||
421 | # file as the entire mx8m series, as it renames flash.bin binary to | ||
422 | # imx-boot before it is packed into the boot partition. | ||
423 | # This operation is performed in imx-boot-container class as a part of | ||
424 | # delopyment task. | ||
425 | # flash.bin binary is produced by U-Boot build itself, and is serves as a | ||
426 | # direct replacement of imx-boot from NXP. | ||
427 | # Creation of the flash.bin is controlled by UBOOT_PROVIDES_BOOT_CONTAINER | ||
428 | # variable defined above | ||
429 | SOC_DEFAULT_WKS_FILE_imx-boot-container ?= "imx-imx-boot-bootpart.wks.in" | ||
430 | |||
401 | WKS_FILE ?= "${SOC_DEFAULT_WKS_FILE}" | 431 | WKS_FILE ?= "${SOC_DEFAULT_WKS_FILE}" |
402 | 432 | ||
403 | SERIAL_CONSOLES = "115200;ttymxc0" | 433 | SERIAL_CONSOLES = "115200;ttymxc0" |