From 64fe53c2f23bd802a3090f5c6c8b3b45326b40d6 Mon Sep 17 00:00:00 2001 From: Andrey Zhizhikin Date: Fri, 11 Dec 2020 16:16:03 +0000 Subject: imx-atf: allow to be used with mainline bsp for mx8m machines Since ATF is required for i.MX8M series to boot the SOC, allow it to be built when use-mainline-bsp is set. Move ATF build platform definition to target machine configuration files, since MACHINEOVERRIDES extender filters out the override that is used to identify it in the recipe. Therefore, for those mx8m machines that are ready to be built with mainline BSP - ATF build platform is explicitly defined in the machine config in order to be properly set for ATF build. Signed-off-by: Andrey Zhizhikin --- conf/machine/imx8mmevk.conf | 3 +++ conf/machine/imx8mnevk.conf | 3 +++ conf/machine/imx8mpevk.conf | 3 +++ 3 files changed, 9 insertions(+) (limited to 'conf') diff --git a/conf/machine/imx8mmevk.conf b/conf/machine/imx8mmevk.conf index 231d7ff7..fcd78fb5 100644 --- a/conf/machine/imx8mmevk.conf +++ b/conf/machine/imx8mmevk.conf @@ -56,6 +56,9 @@ DDR_FIRMWARE_NAME = " \ # Set u-boot DTB UBOOT_DTB_NAME = "imx8mm-evk.dtb" +# Set ATF platform name +ATF_PLATFORM = "imx8mm" + # Set imx-mkimage boot target IMXBOOT_TARGETS = "${@bb.utils.contains('UBOOT_CONFIG', 'fspi', 'flash_evk_flexspi', 'flash_evk', d)}" diff --git a/conf/machine/imx8mnevk.conf b/conf/machine/imx8mnevk.conf index f0d785cd..fa0cb7b4 100644 --- a/conf/machine/imx8mnevk.conf +++ b/conf/machine/imx8mnevk.conf @@ -44,6 +44,9 @@ DDR_FIRMWARE_NAME = "ddr4_imem_1d_201810.bin \ # Set u-boot DTB UBOOT_DTB_NAME = "imx8mn-ddr4-evk.dtb" +# Set ATF platform name +ATF_PLATFORM = "imx8mn" + # Set imx-mkimage boot target IMXBOOT_TARGETS = "${@bb.utils.contains('UBOOT_CONFIG', 'fspi', 'flash_ddr4_evk_flexspi', 'flash_ddr4_evk', d)}" diff --git a/conf/machine/imx8mpevk.conf b/conf/machine/imx8mpevk.conf index f76240b6..9addae7d 100644 --- a/conf/machine/imx8mpevk.conf +++ b/conf/machine/imx8mpevk.conf @@ -51,6 +51,9 @@ DDR_FIRMWARE_NAME = " \ # Set u-boot DTB UBOOT_DTB_NAME = "imx8mp-evk.dtb" +# Set ATF platform name +ATF_PLATFORM = "imx8mp" + # Set imx-mkimage boot target IMXBOOT_TARGETS = "${@bb.utils.contains('UBOOT_CONFIG', 'fspi', 'flash_evk_flexspi', 'flash_evk', d)}" -- cgit v1.2.3-54-g00ecf