diff mbox series

distro: use imply to default to DISTRO_DEFAULTS

Message ID 1524109926-2282-1-git-send-email-yamada.masahiro@socionext.com
State New
Headers show
Series distro: use imply to default to DISTRO_DEFAULTS | expand

Commit Message

Masahiro Yamada April 19, 2018, 3:52 a.m. UTC
The default of DISTRO_DEFAULTS is messy.  Using the 'imply' keyword
is equivalent and cleaner.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---

 Kconfig                                   | 5 -----
 arch/arm/Kconfig                          | 4 ++++
 arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 1 +
 3 files changed, 5 insertions(+), 5 deletions(-)
diff mbox series

Patch

diff --git a/Kconfig b/Kconfig
index 6957097..3bf95c1 100644
--- a/Kconfig
+++ b/Kconfig
@@ -68,11 +68,6 @@  config CC_COVERAGE
 
 config DISTRO_DEFAULTS
 	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
 	select CMD_BOOTZ if ARM && !ARM64
 	select CMD_BOOTI if ARM64
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 7212fc5..4848954 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -581,6 +581,7 @@  config ARCH_OMAP2PLUS
 
 config ARCH_MESON
 	bool "Amlogic Meson"
+	imply DISTRO_DEFAULTS
 	help
 	  Support for the Meson SoC family developed by Amlogic Inc.,
 	  targeted at media players and tablet computers. We currently
@@ -720,6 +721,7 @@  config ARCH_SUNXI
 	select USB_KEYBOARD if DISTRO_DEFAULTS
 	select USE_TINY_PRINTF
 	imply CMD_GPT
+	imply DISTRO_DEFAULTS
 	imply FAT_WRITE
 	imply OF_LIBFDT_OVERLAY
 	imply PRE_CONSOLE_BUFFER
@@ -780,6 +782,7 @@  config ARCH_ZYNQMP
 
 config TEGRA
 	bool "NVIDIA Tegra"
+	imply DISTRO_DEFAULTS
 	imply FAT_WRITE
 
 config TARGET_VEXPRESS64_AEMV8A
@@ -1178,6 +1181,7 @@  config ARCH_ROCKCHIP
 	select DM_REGULATOR
 	select ENABLE_ARM_SOC_BOOT0_HOOK
 	imply CMD_FASTBOOT
+	imply DISTRO_DEFAULTS
 	imply FASTBOOT
 	imply FAT_WRITE
 	imply USB_FUNCTION_FASTBOOT
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/Kconfig b/arch/arm/cpu/armv8/fsl-layerscape/Kconfig
index c4a96d4..7edc06d 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/Kconfig
+++ b/arch/arm/cpu/armv8/fsl-layerscape/Kconfig
@@ -167,6 +167,7 @@  config ARCH_LS2080A
 	select SYS_I2C_MXC_I2C2
 	select SYS_I2C_MXC_I2C3
 	select SYS_I2C_MXC_I2C4
+	imply DISTRO_DEFAULTS
 	imply PANIC_HANG
 
 config FSL_LSCH2