Tom Rini <tr...@konsulko.com> writes:
> We have a number of platforms that are a combination of a carrier board > and System-on-Module (SoM) that in turn allows for the board to have > different SoCs on it. In some cases, this is handled via board-specific > Kconfig options. In other cases we make use of > CONFIG_SYS_EXTRA_OPTIONS. This latter case however can lead to invalid > configurations as we will not in turn get options that in Kconfig are > selected by or depend on that setting. > > To resolve this, make the SoC option a choice in Kconfig and make boards > depend on what they can support. This change opens us up for further > clean-ups in the cases where a single CONFIG_TARGET_xxx can support > different SoCs and today they do not, or do not cleanly do so. > > Reported-by: Matt Porter <mpor...@konsulko.com> > Cc: Stefano Babic <sba...@denx.de> > Cc: Fabio Estevam <feste...@gmail.com> > Cc: "NXP i.MX U-Boot Team" <uboot-...@nxp.com> > Cc: Soeren Moch <sm...@web.de> > Cc: Markus Niebel <markus.nie...@tq-group.com> > Cc: Igor Opaniuk <igor.opan...@toradex.com> > Cc: Heiko Schocher <h...@denx.de> > Cc: Hannes Schmelzer <hannes.schmel...@br-automation.com> > Cc: Otavio Salvador <ota...@ossystems.com.br> > Cc: Nikita Kiryanov <nik...@compulab.co.il> > Cc: Andreas Geisreiter <ageisrei...@dh-electronics.de> > Cc: Ludwig Zenz <lz...@dh-electronics.de> > Cc: Lukasz Majewski <lu...@denx.de> > Cc: Akshay Bhat <akshayb...@timesys.com> > Cc: Ken Lin <ken....@advantech.com.tw> > Cc: Ian Ray <ian....@ge.com> > Cc: Tim Harvey <thar...@gateworks.com> > Cc: Jagan Teki <ja...@amarulasolutions.com> > Cc: Raffaele RECALCATI <raffaele.recalc...@bticino.it> > Cc: Simone CIANNI <simone.cia...@bticino.it> > Cc: Adam Ford <aford...@gmail.com> > Cc: Marcin Niestroj <m.niest...@grinn-global.com> > Cc: "Eric Bénard" <e...@eukrea.com> > Cc: Baruch Siach <bar...@tkos.co.il> > Cc: Jason Liu <jason.hui....@nxp.com> > Cc: Ye Li <ye...@nxp.com> > Cc: Eric Nelson <e...@nelint.com> > Cc: Troy Kisky <troy.ki...@boundarydevices.com> > Cc: Peng Fan <peng....@nxp.com> > Cc: Parthiban Nallathambi <parthi...@linumiz.com> > Cc: Marek Vasut <ma...@denx.de> > Cc: "Sébastien Szymanski" <sebastien.szyman...@armadeus.com> > Cc: Christian Gmeiner <christian.gmei...@gmail.com> > Cc: Niel Fourie <lu...@denx.de> > Cc: Martyn Welch <martyn.we...@collabora.com> > Cc: Richard Hu <richard...@technexion.com> > Cc: Stefan Roese <s...@denx.de> > Cc: Boris Brezillon <bbrezil...@kernel.org> > Cc: Arkadiusz Karas <arkadiusz.ka...@somlabs.com> > Cc: Breno Lima <breno.l...@nxp.com> > Cc: Francesco Montefoschi <francesco.montefos...@udoo.org> > Cc: Silvio Fricke <open-sou...@softing.de> > Tested-by: Matt Porter <mpor...@konsulko.com> [colibri_imx6] > Signed-off-by: Tom Rini <tr...@konsulko.com> > --- > Changes in v2: > - Fix LITESOM / OPOS6UL as noted by Peng Fan / Stefano Babic > --- Reviewed-by: Marcin Niestroj <m.niest...@grinn-global.com>