diff options
author | Hans de Goede <hdegoede@redhat.com> | 2016-06-20 23:16:28 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-06-20 21:30:13 -0400 |
commit | 9f823615af919c6b89f0b80197f009f78299dcde (patch) | |
tree | 1e952c22f008b9d9bcf69a9c236247dbcab6f5d5 /doc | |
parent | 4257f5f8f631147803cdc6693b5046deb1a57be6 (diff) | |
download | u-boot-imx-9f823615af919c6b89f0b80197f009f78299dcde.zip u-boot-imx-9f823615af919c6b89f0b80197f009f78299dcde.tar.gz u-boot-imx-9f823615af919c6b89f0b80197f009f78299dcde.tar.bz2 |
Kconfig: Add a new DISTRO_DEFAULTS Kconfig option
DISTRO_DEFAULTS is intended to mirror / replace
include/config_distro_defaults.h.
The intend is for boards which include this file to select this from
their Kconfig files and when moving setting to Kconfig which are #define-ed
in config_distro_defaults.h to select this from DISTRO_DEFAULTS so that
boards which have selected DISTRO_DEFAULTS will keep the same configuration
as before without needing any defconfig file changes.
The initial list of selected things matches all settings recently removed
from config_distro_defaults.h because they have been converted to Kconfig,
with the exception of CMD_ELF and CMD_NET, which have a default of y, if
the default of these ever changes they should be selected by DISTRO_DEFAULTS
too.
For testing and example purposes this commit also converts ARCH_SUNXI
to use DISTRO_DEFAULT instead of selecting everything it needs itself.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/README.distro | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/README.distro b/doc/README.distro index e1b7216..77d5c6d 100644 --- a/doc/README.distro +++ b/doc/README.distro @@ -162,6 +162,12 @@ U-Boot Implementation Enabling the distro options --------------------------- +In your board's defconfig, enable the DISTRO_DEFAULTS option by adding +a line with "CONFIG_DISTRO_DEFAULTS=y". If you want to enable this +from Kconfig itself, for e.g. all boards using a specific SoC then +add a "default y if ARCH_FOO" to the DISTRO_DEFAULTS section of +the Kconfig file in the root of the u-boot sources. + In your board configuration file, include the following: ------------------------------------------------------------ |