From patchwork Sat Feb 18 06:24:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 94178 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1220900qgi; Mon, 20 Feb 2017 00:21:48 -0800 (PST) X-Received: by 10.28.147.72 with SMTP id v69mr9923879wmd.51.1487578908735; Mon, 20 Feb 2017 00:21:48 -0800 (PST) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id x2si12070280wrc.9.2017.02.20.00.21.48; Mon, 20 Feb 2017 00:21:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EB2B2B3982; Mon, 20 Feb 2017 09:20:02 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YgARSJAsZN7O; Mon, 20 Feb 2017 09:20:02 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A9949B38B4; Mon, 20 Feb 2017 09:17:19 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EA2034A068 for ; Sat, 18 Feb 2017 07:26:00 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iCdmV5VFgsqB for ; Sat, 18 Feb 2017 07:26:00 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from conuserg-10.nifty.com (conuserg-10.nifty.com [210.131.2.77]) by theia.denx.de (Postfix) with ESMTPS id 2CBCD4A026 for ; Sat, 18 Feb 2017 07:25:55 +0100 (CET) Received: from grover.sesame (FL1-111-169-71-157.osk.mesh.ad.jp [111.169.71.157]) (authenticated) by conuserg-10.nifty.com with ESMTP id v1I6P0g5000806; Sat, 18 Feb 2017 15:25:04 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com v1I6P0g5000806 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1487399104; bh=4WvdAO0/sGRY2pBhdmBC2BaDW32+cjI8QNf6HB4+ARk=; h=From:To:Cc:Subject:Date:From; b=ZNkeajuiZiJVTDfi2plAKLYUj+vVNFfb6a3wRBcojXXwrWuGpFd4n8JmKLIs4nYGO 1a8ZuNMLtm/w7yJB00resBrLSnWxrCT+6X713D4LfFreD+2qXLRed36p8Q8aK6lagA VAn1/ESDXTU0dIi6iNtkHBdIvZFJFWeuvkvTejswxdqaDmU2ODIZhNQdBq0VuC1og4 SF4V6upWwdSfbgcstCPGg9EuAwCxJBVGtgl2H/MTe5BteTUQrACtAEM3JLjRMuHCck zTrGv3YOb14UQTuMJ5vIpz1qxZmLATQiLjwDaYLidwhccZkdx/V8R+AMLfv791Yq/j KBw2jMsgBD5kw== X-Nifty-SrcIP: [111.169.71.157] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Sat, 18 Feb 2017 15:24:53 +0900 Message-Id: <1487399094-4811-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Cc: Tom Rini , Stephen Warren , Maxime Ripard , Jagan Teki Subject: [U-Boot] [PATCH] Makefile: print warning if CONFIG_SYS_EXTRA_OPTIONS is used X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 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 prompt of this option is marked "DEPRECATED" in capital letters, and its help clearly says: This option was prepared for the smooth migration from the old configuration to Kconfig. Since this option will be removed sometime, new boards should not use this option. However, we have had almost no progress on this. In fact, this option is often abused for fresh porting, and more and more new defconfigs with it are coming in (for example, SUNXI boards). We introduced scripts/check-config.sh to ban new legacy options. We need something forcible for the migration. Here it is. If CONFIG_SYS_EXTRA_OPTIONS is used, a prompt for the conversion is displayed at the end of the build. The action needed is simple; instead of CONFIG_SYS_EXTRA_OPTIONS="FOO,BAR", please create primary entries for CONFIG_FOO and CONFIG_BAR in Kconfig. If no action is taken, the board will be removed after the v2017.05 release. Signed-off-by: Masahiro Yamada --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.7.4 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot diff --git a/Makefile b/Makefile index 38b42da..886ebc3 100644 --- a/Makefile +++ b/Makefile @@ -848,6 +848,13 @@ ifeq ($(CONFIG_DM_I2C_COMPAT)$(CONFIG_SANDBOX),y) @echo "before sending patches to the mailing list." @echo "====================================================" endif +ifneq ($(CONFIG_SYS_EXTRA_OPTIONS),"") + @echo "===================== WARNING =========================" + @echo "CONFIG_SYS_EXTRA_OPTIONS is deprecated. Please create" + @echo "primary entries in Kconfig. Otherwise, this board will" + @echo "be removed after v2017.05 release." + @echo "=======================================================" +endif @# Check that this build does not use CONFIG options that we do not @# know about unless they are in Kconfig. All the existing CONFIG @# options are whitelisted, so new ones should not be added.