Skip to content

Commit

Permalink
cmake: Support binary build for imx8mp-evk
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
nomadeel committed May 15, 2024
1 parent 6789652 commit 54b9159
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions cmake-tool/helpers/application_settings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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)
Expand Down

0 comments on commit 54b9159

Please sign in to comment.