From patchwork Wed Apr 25 09:47:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 134240 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp638538lji; Wed, 25 Apr 2018 02:49:03 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/JZ50AZDIabaw4GR639VcmL5GlALygQ3pXUKvttu9sxFXYha8WtHVbnhU4HmEG8Y+i73aA X-Received: by 10.80.161.101 with SMTP id 92mr37257153edj.183.1524649743039; Wed, 25 Apr 2018 02:49:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524649743; cv=none; d=google.com; s=arc-20160816; b=nnD9I5exQr6jDmmaxXcbJ+gednsr5jPJ9+TVIfDlfclEBwj+EQ5lprM31om9sqwIud cmSD40A2UpNE6mx10wLhbp02EIenDyF4ke2lGndJ4+guXTBITOZU9GopO5b136Ga1R5Z M7Ay0SwvpvoGpmzLTHo6suQb7AOhfIwwe2n4kXE1UeEvTB7RRztSFN5hSLbebqzXAMKk 1zYx+pgmsWyCU3EH56AwpiiSvaUKdupwpkF9EvjdU3FERAI9/n5PNZ8o2puznM2fB4LS mC7R4hnFkZ7+GK/rp1KHhNYBgRqxV0aer1cbJtjTBuMptdrjbicGxN5UK/MDNj374ESO 3u/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:message-id:date:to:from :dkim-signature:dkim-filter:arc-authentication-results; bh=Ku+VxU4bWjn3pqrUThlu9dgTiLHKyPVPFWO7UEEyjWE=; b=DJjAQDB5Q6nw9o7PRMaxGXQmo2mq9mkpe6gaSw+omaWCABeUJhhS7AjJ6k9zOfJtsm xTrLdKfxP5TFPOfAhxNbjYhKG0KIDjWGCsER/OI9Grxrax8F61A/CH+eqkw1TFFRUypQ lVzWrsUjRQgCkatWBTpUg7Im75fp4vEVMPJUGVXMB2P7GFtagUCzSYnu5CH/h6p3wC4b JsJsnW4M8TKq5hQ+WVHKR6Lj5RnM5a7RWCrJ0j0st6BKx5NwpHRWmHzMIwjstl7lqqxm c7aNQb1vg9IWTjWoK3PyLVQl2848OlXpPrFHTKoDMksZzVczKJmWeTo2lPidy3aHm5hW jSIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=jX8hjDZo; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id g4si8655735edp.450.2018.04.25.02.49.02; Wed, 25 Apr 2018 02:49:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=jX8hjDZo; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id A72A6C21FB0; Wed, 25 Apr 2018 09:49:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 09F03C21E75; Wed, 25 Apr 2018 09:48:59 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id ADC94C21E75; Wed, 25 Apr 2018 09:48:57 +0000 (UTC) Received: from conuserg-11.nifty.com (conuserg-11.nifty.com [210.131.2.78]) by lists.denx.de (Postfix) with ESMTPS id 85B4DC21E13 for ; Wed, 25 Apr 2018 09:48:56 +0000 (UTC) Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-11.nifty.com with ESMTP id w3P9m2WD025010; Wed, 25 Apr 2018 18:48:03 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com w3P9m2WD025010 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1524649686; bh=lwjwC2MfP185SYCjSWEG5G4QPD8p7/HBlhjAQrGRJNY=; h=From:To:Cc:Subject:Date:From; b=jX8hjDZor4lI2rdIj6tr1hD9TM/uJfymkHAhpjvFasPd8SXmOG4/1WKGKTabsG69V MHiPlZSIv1j5aRgWq/mkfQiUP4tenKM0fVHdhzQCYnAHRzcpHzZ+bGS+lYA1szy189 uKYc2a6bdRdAt1/dgsh2BwNFQOyW3xxj9IN6BbOYYW7d/HsH6jY6S3jtYJGzaV9j/R 5jE/ffVHXcCO3bh4DULHcCo6GY8fRS2Lz7JxVaqSEoEqnDuKzW4rSiMjfM7800UkXH nD2CgdjZIa3HsxixuOJSIGrw4LhquOk9HiNGpjmahSOOxAoOQGWcNe48KLAAEemG4S jq36zZlNuNuag== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Wed, 25 Apr 2018 18:47:52 +0900 Message-Id: <1524649672-15972-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Cc: Udit Agarwal , Joe Hershberger , Andre Przywara , Alison Wang , Michal Simek , Jagan Teki , Heinrich Schuchardt , Ran Wang Subject: [U-Boot] [PATCH v2] distro: use imply to enable DISTRO_DEFAULTS as SoC default X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" The default of DISTRO_DEFAULTS is messy. Using the 'imply' keyword is equivalent and cleaner. Signed-off-by: Masahiro Yamada --- Changes in v2: - Update doc/README.distro Kconfig | 5 ----- arch/arm/Kconfig | 4 ++++ arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 1 + doc/README.distro | 3 +-- 4 files changed, 6 insertions(+), 7 deletions(-) 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 diff --git a/doc/README.distro b/doc/README.distro index 2af5590..522deb3 100644 --- a/doc/README.distro +++ b/doc/README.distro @@ -165,8 +165,7 @@ 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. +add a "imply DISTRO_DEFAULTS" to your SoC CONFIG option. In your board configuration file, include the following: