From 54b915982e5adb5a5e41b9abb3ea823558ab37c4 Mon Sep 17 00:00:00 2001 From: Damon Lee Date: Tue, 14 May 2024 13:42:27 +1000 Subject: [PATCH] cmake: Support binary build for imx8mp-evk The imx8mp-evk as like with the other imx8m-* platforms require the resulting image to just be a binary and not an ELF or other special formats. Signed-off-by: Damon Lee --- cmake-tool/helpers/application_settings.cmake | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cmake-tool/helpers/application_settings.cmake b/cmake-tool/helpers/application_settings.cmake index 01580404..2d5350e7 100644 --- a/cmake-tool/helpers/application_settings.cmake +++ b/cmake-tool/helpers/application_settings.cmake @@ -12,7 +12,7 @@ include_guard(GLOBAL) function(ApplyData61ElfLoaderSettings kernel_platform kernel_sel4_arch) set( binary_list - "tx1;hikey;odroidc2;odroidc4;imx8mq-evk;imx8mm-evk;hifive;tqma8xqp1gb;bcm2711;rocketchip" + "tx1;hikey;odroidc2;odroidc4;imx8mq-evk;imx8mm-evk;imx8mp-evk;hifive;tqma8xqp1gb;bcm2711;rocketchip" ) set(efi_list "tk1;rockpro64;quartz64") set(uimage_list "tx2;am335x") @@ -36,9 +36,12 @@ function(ApplyData61ElfLoaderSettings kernel_platform kernel_sel4_arch) set(ElfloaderMode "hypervisor" CACHE STRING "" FORCE) set(ElfloaderMonitorHook ON CACHE BOOL "" FORCE) endif() - if((KernelPlatformImx8mm-evk OR KernelPlatImx8mq) AND KernelSel4ArchAarch32) + if( + (KernelPlatformImx8mm-evk OR KernelPlatImx8mq OR KernelPlatformImx8mp-evk) + AND KernelSel4ArchAarch32 + ) set(ElfloaderArmV8LeaveAarch64 ON CACHE BOOL "" FORCE) - # This applies to imx8mm, imx8mq (EVK and MaaXBoard) when in aarch32 configuration + # This applies to imx8mm, imx8mq (EVK and MaaXBoard), imx8mp when in aarch32 configuration # It should be possible to use a uimage format but when tried nothing # runs after uboot. set(IMAGE_START_ADDR 0x41000000 CACHE INTERNAL "" FORCE)