]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
spl: Kconfig: Fix SPL_OPTEE_IMAGE dependency
authorJagan Teki <jagan@edgeble.ai>
Thu, 3 Nov 2022 06:19:47 +0000 (11:49 +0530)
committerTom Rini <trini@konsulko.com>
Thu, 22 Dec 2022 20:39:13 +0000 (15:39 -0500)
fdt_addr will build as part of SPL_LOAD_FIT or SPL_LOAD_FIT_FULL
which is indeed required to build optee image support in SPL.

common/spl/spl.c: In function ‘jump_to_image_optee’:
common/spl/spl.c:220:46: error: ‘struct spl_image_info’ has no member named ‘fdt_addr’
  220 |         spl_optee_entry(NULL, NULL, spl_image->fdt_addr,

Fix the dependency support.

Signed-off-by: Jagan Teki <jagan@edgeble.ai>
common/spl/Kconfig

index 6c4848f3b9d15ad7cfa9a528b5e85866e2b8d5de..d774c930a80b0772e29188ebfbd7b5edbe1219a8 100644 (file)
@@ -1481,6 +1481,7 @@ config SPL_AM33XX_ENABLE_RTC32K_OSC
 config SPL_OPTEE_IMAGE
        bool "Support OP-TEE Trusted OS image in SPL"
        depends on ARM
+       depends on SPL_LOAD_FIT || SPL_LOAD_FIT_FULL
        help
          OP-TEE is an open source Trusted OS which is loaded by SPL.
          More detail at: https://github.com/OP-TEE/optee_os