]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
spl: Kconfig: Add SPL dependency to CONFIG_HANDOFF
authorOvidiu Panait <ovidiu.panait@windriver.com>
Sat, 28 Nov 2020 08:43:19 +0000 (10:43 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 15 Jan 2021 19:36:12 +0000 (14:36 -0500)
CONFIG_HANDOFF is used in u-boot proper to locate handoff info from SPL
during pre-relocation init (in setup_spl_handoff). Add explicit dependency
on CONFIG_SPL, to fix the following build error when CONFIG_HANDOFF &&
!CONFIG_SPL:

common/board_f.c: In function ‘setup_spl_handoff’:
common/board_f.c:283:4: error: ‘gd_t {aka struct global_data}’
has no member named ‘spl_handoff’
  gd->spl_handoff = bloblist_find(BLOBLISTT_SPL_HANDOFF,
    ^~

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/spl/Kconfig

index 6b0186763b236cb43e07b87f082a8a1bc8c65754..7561335bfd8482544dee19c1c1d1d14dc860e481 100644 (file)
@@ -126,7 +126,7 @@ endmenu
 
 config HANDOFF
        bool "Pass hand-off information from SPL to U-Boot proper"
-       depends on BLOBLIST
+       depends on SPL && BLOBLIST
        help
          It is useful to be able to pass information from SPL to U-Boot
          proper to preserve state that is known in SPL and is needed in U-Boot.