Commit 85c07a5a379e5874aef0e5a0560536a2e6fa6114

Authored by Andre Przywara
Committed by Jagan Teki
1 parent 411cf32d20

Kconfig: fix SPL_FIT dependency

SPL_FIT obviously requires libfdt in SPL, so let Kconfig express that by
selecting SPL_OF_LIBFDT.
Also make the actual options that users want (SPL signature and SPL FIT
loading) visible in the menu and let them select the SPL_FIT as a
requirement.
Also remove the now redundant SPL_OF_LIBFDT from those Kconfigs that had
it in for the SPL FIT loading feature.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
[Remove change from configs/evb-rk3399_defconfig]
Signed-off-by: Jagan Teki <jagan@openedev.com>

Showing 2 changed files with 3 additions and 2 deletions Side-by-side Diff

... ... @@ -208,15 +208,17 @@
208 208 config SPL_FIT
209 209 bool "Support Flattened Image Tree within SPL"
210 210 depends on SPL
  211 + select SPL_OF_LIBFDT
211 212  
212 213 config SPL_FIT_SIGNATURE
213 214 bool "Enable signature verification of FIT firmware within SPL"
214   - depends on SPL_FIT
215 215 depends on SPL_DM
  216 + select SPL_FIT
216 217 select SPL_RSA
217 218  
218 219 config SPL_LOAD_FIT
219 220 bool "Enable SPL loading U-Boot as a FIT"
  221 + select SPL_FIT
220 222 help
221 223 Normally with the SPL framework a legacy image is generated as part
222 224 of the build. This contains U-Boot along with information as to
configs/am335x_evm_defconfig
... ... @@ -48,5 +48,4 @@
48 48 CONFIG_G_DNL_VENDOR_NUM=0x0451
49 49 CONFIG_G_DNL_PRODUCT_NUM=0xd022
50 50 CONFIG_RSA=y
51   -CONFIG_SPL_OF_LIBFDT=y