1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-29 22:41:17 +02:00

distro: use imply to enable DISTRO_DEFAULTS as SoC default

The default of DISTRO_DEFAULTS is messy.  Using the 'imply' keyword
is equivalent and cleaner.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
Masahiro Yamada
2018-04-25 18:47:52 +09:00
committed by Tom Rini
parent b60cfb6a01
commit 7325f6cfdc
4 changed files with 6 additions and 7 deletions

View File

@@ -68,11 +68,6 @@ config CC_COVERAGE
config DISTRO_DEFAULTS config DISTRO_DEFAULTS
bool "Select defaults suitable for booting general purpose Linux distributions" bool "Select defaults suitable for booting general purpose Linux distributions"
default y if ARCH_SUNXI || TEGRA
default y if ARCH_LS2080A
default y if ARCH_MESON
default y if ARCH_ROCKCHIP
default n
imply USE_BOOTCOMMAND imply USE_BOOTCOMMAND
select CMD_BOOTZ if ARM && !ARM64 select CMD_BOOTZ if ARM && !ARM64
select CMD_BOOTI if ARM64 select CMD_BOOTI if ARM64

View File

@@ -584,6 +584,7 @@ config ARCH_OMAP2PLUS
config ARCH_MESON config ARCH_MESON
bool "Amlogic Meson" bool "Amlogic Meson"
imply DISTRO_DEFAULTS
help help
Support for the Meson SoC family developed by Amlogic Inc., Support for the Meson SoC family developed by Amlogic Inc.,
targeted at media players and tablet computers. We currently targeted at media players and tablet computers. We currently
@@ -723,6 +724,7 @@ config ARCH_SUNXI
select USB_KEYBOARD if DISTRO_DEFAULTS select USB_KEYBOARD if DISTRO_DEFAULTS
select USE_TINY_PRINTF select USE_TINY_PRINTF
imply CMD_GPT imply CMD_GPT
imply DISTRO_DEFAULTS
imply FAT_WRITE imply FAT_WRITE
imply OF_LIBFDT_OVERLAY imply OF_LIBFDT_OVERLAY
imply PRE_CONSOLE_BUFFER imply PRE_CONSOLE_BUFFER
@@ -784,6 +786,7 @@ config ARCH_ZYNQMP
config TEGRA config TEGRA
bool "NVIDIA Tegra" bool "NVIDIA Tegra"
imply DISTRO_DEFAULTS
imply FAT_WRITE imply FAT_WRITE
config TARGET_VEXPRESS64_AEMV8A config TARGET_VEXPRESS64_AEMV8A
@@ -1183,6 +1186,7 @@ config ARCH_ROCKCHIP
select ENABLE_ARM_SOC_BOOT0_HOOK select ENABLE_ARM_SOC_BOOT0_HOOK
select SPI select SPI
imply CMD_FASTBOOT imply CMD_FASTBOOT
imply DISTRO_DEFAULTS
imply FASTBOOT imply FASTBOOT
imply FAT_WRITE imply FAT_WRITE
imply USB_FUNCTION_FASTBOOT imply USB_FUNCTION_FASTBOOT

View File

@@ -167,6 +167,7 @@ config ARCH_LS2080A
select SYS_I2C_MXC_I2C2 select SYS_I2C_MXC_I2C2
select SYS_I2C_MXC_I2C3 select SYS_I2C_MXC_I2C3
select SYS_I2C_MXC_I2C4 select SYS_I2C_MXC_I2C4
imply DISTRO_DEFAULTS
imply PANIC_HANG imply PANIC_HANG
config FSL_LSCH2 config FSL_LSCH2

View File

@@ -165,8 +165,7 @@ Enabling the distro options
In your board's defconfig, enable the DISTRO_DEFAULTS option by adding 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 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 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 add a "imply DISTRO_DEFAULTS" to your SoC CONFIG option.
the Kconfig file in the root of the u-boot sources.
In your board configuration file, include the following: In your board configuration file, include the following: