[PATCH v2 2/2] Makefile: Don't allow new boards with SPL_FIT_GENERATOR

Simon Glass sjg at chromium.org
Mon Jan 31 00:14:37 CET 2022


Hi Michal,

On Sun, 30 Jan 2022 at 12:41, Michal Simek <monstr at monstr.eu> wrote:
>
>
>
> On 1/30/22 16:52, Simon Glass wrote:
> > More than a year after this migration message appeared, we still have new
> > boards being added with this option. Add a check against this.
> >
> > Signed-off-by: Simon Glass <sjg at chromium.org>
> > ---
> >
> > Changes in v2:
> > - Rebase to master
> >
> >   Makefile                      |  6 ++++
> >   scripts/fit_gen_whitelist.txt | 65 +++++++++++++++++++++++++++++++++++
> >   2 files changed, 71 insertions(+)
> >   create mode 100644 scripts/fit_gen_whitelist.txt
> >
> > diff --git a/Makefile b/Makefile
> > index 212124522e6..55faff3952f 100644
> > --- a/Makefile
> > +++ b/Makefile
> > @@ -1110,6 +1110,12 @@ ifeq ($(CONFIG_OF_EMBED)$(CONFIG_EFI_APP),y)
> >       @echo >&2 "===================================================="
> >   endif
> >   ifneq ($(CONFIG_SPL_FIT_GENERATOR),)
> > +     # Only allow existing users of this deprecated option. Please migrate!
> > +     @if ! grep -q $(shell cat .defconfig_name) \
> > +                     $(srctree)/scripts/fit_gen_whitelist.txt; then \
> > +             echo >&2 "Error: CONFIG_SPL_FIT_GENERATOR is deprecated"; \
> > +             exit 1; \
> > +     fi
> >       @echo >&2 "===================== WARNING ======================"
> >       @echo >&2 "This board uses CONFIG_SPL_FIT_GENERATOR. Please migrate"
> >       @echo >&2 "to binman instead, to avoid the proliferation of"
> > diff --git a/scripts/fit_gen_whitelist.txt b/scripts/fit_gen_whitelist.txt
> > new file mode 100644
> > index 00000000000..ac0890b3f39
> > --- /dev/null
> > +++ b/scripts/fit_gen_whitelist.txt
> > @@ -0,0 +1,65 @@
> > +# List of boards that need to be migrated from SPL_FIT_GENERATOR to binman
> > +# See https://patchwork.ozlabs.org/project/uboot/list/?series=242992&state=*
> > +# for an example series (see patches 7 and 13 in particular)
> > +
> > +# Please do not add to this file
> > +
> > +# Some TI boards need migration
> > +am335x_evm_spiboot
> > +am64x_evm_a53
> > +am64x_evm_r5
> > +am65x_evm_r5_usbdfu
> > +am65x_evm_r5_usbmsc
> > +
> > +# MX8 needs migration
> > +cgtqmx8
> > +imx8mm-icore-mx8mm-ctouch2
> > +imx8mm-icore-mx8mm-edimm2.2
> > +imx8qm_rom7720_a1_4G
> > +
> > +# Rockchip needs migration
> > +chromebook_bob
> > +evb-px30
> > +evb-px5
> > +evb-rk3308
> > +evb-rk3328
> > +evb-rk3399
> > +evb-rk3568
> > +ficus-rk3399
> > +firefly-px30
> > +firefly-rk3399
> > +khadas-edge-captain-rk3399
> > +khadas-edge-rk3399
> > +khadas-edge-v-rk3399
> > +leez-rk3399
> > +lion-rk3368
> > +nanopc-t4-rk3399
> > +nanopi-m4-2gb-rk3399
> > +nanopi-m4b-rk3399
> > +nanopi-m4-rk3399
> > +nanopi-neo4-rk3399
> > +nanopi-r2s-rk3328
> > +nanopi-r4s-rk3399
> > +odroid-go2
> > +roc-cc-rk3308
> > +orangepi-rk3399
> > +pinebook-pro-rk3399
> > +puma-rk3399
> > +px30-core-ctouch2-of10-px30
> > +px30-core-ctouch2-px30
> > +px30-core-edimm2.2-px30
> > +roc-cc-rk3308
> > +roc-cc-rk3328
> > +rock64-rk3328
> > +rock960-rk3399
> > +rock-pi-4c-rk3399
> > +rock-pi-4-rk3399
> > +rock-pi-e-rk3328
> > +rock-pi-n10-rk3399pro
> > +rockpro64-rk3399
> > +roc-pc-mezzanine-rk3399
> > +roc-pc-rk3399
> > +
> > +# Zynqmp needs mnigration
>
> nit: I normally use zynqmp or ZynqMP.
> But there is typo.

OK will fix.

>
> What's the migration path? Buildman?

Actually it is a binman description, see the imx8 ones, for example.
It can generate a FIT for you.

Regards,
Simon


More information about the U-Boot mailing list