[U-Boot] [PATCH v2 04/34] Convert CONFIG_ENV_IS_IN_MMC et al to Kconfig

Tom Rini trini at konsulko.com
Wed Jul 26 01:36:04 UTC 2017


On Sun, Jul 23, 2017 at 09:19:39PM -0600, Simon Glass wrote:

> This converts the following to Kconfig:
>    CONFIG_ENV_IS_IN_MMC
>    CONFIG_ENV_IS_IN_NAND
>    CONFIG_ENV_IS_IN_UBI
>    CONFIG_ENV_IS_NOWHERE
> 
> In fact this already exists for sunxi as a 'choice' config. However not
> all the choices are available in Kconfig yet so we cannot use that. It
> would lead to more than one option being set.
> 
> In addition, one purpose of this series is to allow the environment to be
> stored in more than one place. So the existing choice is converted to a
> normal config allowing each option to be set independently.
> 
> There are not many opportunities for Kconfig updates to reduce the size of
> this patch. This was tested with
> 
>    ./tools/moveconfig.py -i CONFIG_ENV_IS_IN_MMC
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>

With a few minor changes so that CHAIN_OF_TRUST enforces
CONFIG_ENV_IS_NOWHERE, and so that CHIP_pro is ENV_IN_UBI (which is what
the old result was, build-wise):

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170725/c0e2f844/attachment.sig>


More information about the U-Boot mailing list