summaryrefslogtreecommitdiffstats
path: root/recipes-bsp
diff options
context:
space:
mode:
authorAndrey Zhizhikin <andrey.z@gmail.com>2020-12-11 16:16:03 +0000
committerOtavio Salvador <otavio@ossystems.com.br>2020-12-11 19:37:54 -0300
commit64fe53c2f23bd802a3090f5c6c8b3b45326b40d6 (patch)
tree2569b80b8e4e71bb267d6ff2b5e01857122e576e /recipes-bsp
parentb93dcbeb9cf7709f3593690cb25f87558347c239 (diff)
downloadmeta-freescale-64fe53c2f23bd802a3090f5c6c8b3b45326b40d6.tar.gz
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 <andrey.z@gmail.com>
Diffstat (limited to 'recipes-bsp')
-rw-r--r--recipes-bsp/imx-atf/imx-atf_2.2.bb25
1 files changed, 11 insertions, 14 deletions
diff --git a/recipes-bsp/imx-atf/imx-atf_2.2.bb b/recipes-bsp/imx-atf/imx-atf_2.2.bb
index ca07dcad..e89822da 100644
--- a/recipes-bsp/imx-atf/imx-atf_2.2.bb
+++ b/recipes-bsp/imx-atf/imx-atf_2.2.bb
@@ -20,20 +20,17 @@ inherit deploy
20 20
21BOOT_TOOLS = "imx-boot-tools" 21BOOT_TOOLS = "imx-boot-tools"
22 22
23PLATFORM ?= "INVALID" 23ATF_PLATFORM ??= "INVALID"
24PLATFORM_mx8qm = "imx8qm" 24ATF_PLATFORM_mx8qm = "imx8qm"
25PLATFORM_mx8x = "imx8qx" 25ATF_PLATFORM_mx8x = "imx8qx"
26PLATFORM_mx8mq = "imx8mq" 26ATF_PLATFORM_mx8mq = "imx8mq"
27PLATFORM_mx8mm = "imx8mm" 27ATF_PLATFORM_mx8dx = "imx8dx"
28PLATFORM_mx8mn = "imx8mn" 28ATF_PLATFORM_imx8dxlevk = "imx8dxl"
29PLATFORM_mx8mp = "imx8mp" 29ATF_PLATFORM_mx8dxlevk-phantom = "imx8qx"
30PLATFORM_mx8dx = "imx8dx"
31PLATFORM_imx8dxlevk = "imx8dxl"
32PLATFORM_mx8dxlevk-phantom = "imx8qx"
33 30
34EXTRA_OEMAKE += " \ 31EXTRA_OEMAKE += " \
35 CROSS_COMPILE="${TARGET_PREFIX}" \ 32 CROSS_COMPILE="${TARGET_PREFIX}" \
36 PLAT=${PLATFORM} \ 33 PLAT=${ATF_PLATFORM} \
37" 34"
38 35
39BUILD_OPTEE = "${@bb.utils.contains('MACHINE_FEATURES', 'optee', 'true', 'false', d)}" 36BUILD_OPTEE = "${@bb.utils.contains('MACHINE_FEATURES', 'optee', 'true', 'false', d)}"
@@ -51,12 +48,12 @@ do_compile() {
51do_install[noexec] = "1" 48do_install[noexec] = "1"
52 49
53do_deploy() { 50do_deploy() {
54 install -Dm 0644 ${S}/build/${PLATFORM}/release/bl31.bin ${DEPLOYDIR}/${BOOT_TOOLS}/bl31-${PLATFORM}.bin 51 install -Dm 0644 ${S}/build/${ATF_PLATFORM}/release/bl31.bin ${DEPLOYDIR}/${BOOT_TOOLS}/bl31-${ATF_PLATFORM}.bin
55 if ${BUILD_OPTEE}; then 52 if ${BUILD_OPTEE}; then
56 install -m 0644 ${S}/build-optee/${PLATFORM}/release/bl31.bin ${DEPLOYDIR}/${BOOT_TOOLS}/bl31-${PLATFORM}.bin-optee 53 install -m 0644 ${S}/build-optee/${ATF_PLATFORM}/release/bl31.bin ${DEPLOYDIR}/${BOOT_TOOLS}/bl31-${ATF_PLATFORM}.bin-optee
57 fi 54 fi
58} 55}
59addtask deploy after do_compile 56addtask deploy after do_compile
60 57
61PACKAGE_ARCH = "${MACHINE_SOCARCH}" 58PACKAGE_ARCH = "${MACHINE_SOCARCH}"
62COMPATIBLE_MACHINE = "(mx8)" 59COMPATIBLE_MACHINE = "(mx8|use-mainline-bsp)"