]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
spl: Kconfig: Record proper dependency for SPL_ATF
authorMichal Simek <michal.simek@xilinx.com>
Thu, 3 Sep 2020 09:23:39 +0000 (11:23 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 23 Sep 2020 08:31:41 +0000 (10:31 +0200)
ATF support was all the time based on FIT image support but this dependency
is not recorded anywhere.
For !SPL_FIT && SPL_ATF there is compilation error:
common/spl/spl.c: In function 'board_init_r':
common/spl/spl.c:689:26: error: 'struct spl_image_info' has no member named 'fdt_addr'
  689 |   spl_fixup_fdt(spl_image.fdt_addr);

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
common/spl/Kconfig

index 6e31d756296c806c5aca196331e1a075c3247195..807b1dc05937a91112c97971accdabc50662762c 100644 (file)
@@ -1271,7 +1271,7 @@ config SPL_YMODEM_SUPPORT
 
 config SPL_ATF
        bool "Support ARM Trusted Firmware"
-       depends on ARM64
+       depends on ARM64 && SPL_FIT
        help
          ATF(ARM Trusted Firmware) is a component for ARM AArch64 which
          is loaded by SPL (which is considered as BL2 in ATF terminology).