From patchwork Sun Apr 28 20:47:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1092353 X-Patchwork-Delegate: jagannadh.teki@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="gb1XDrNn"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 44sg145fzVz9s70 for ; Mon, 29 Apr 2019 06:50:48 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 5B863C21E08; Sun, 28 Apr 2019 20:48:48 +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=RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, 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 4FFA2C21E13; Sun, 28 Apr 2019 20:48:34 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id AA899C21E1E; Sun, 28 Apr 2019 20:48:29 +0000 (UTC) Received: from mail-pl1-f194.google.com (mail-pl1-f194.google.com [209.85.214.194]) by lists.denx.de (Postfix) with ESMTPS id D210DC21E07 for ; Sun, 28 Apr 2019 20:48:25 +0000 (UTC) Received: by mail-pl1-f194.google.com with SMTP id w20so3480977plq.3 for ; Sun, 28 Apr 2019 13:48:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=WVhv0RolXLURhjZtHDpzU7QKQsbPu3+t/XrvARv7sig=; b=gb1XDrNn9Ji5LhLpfL6au5dQxrBy0Rd633HMrYb2Osqfu2e/62miU1X8D9uNChZVlX INhZINgb8sFcfOlcUGf3Xzn/Wh2OANcD0x1771r7eOKJ6Svs5uksxjxfTHwZhDkntU6J HhK9qgHF19pldf6cU+rTwMyB9YscmKYkMVo6w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=WVhv0RolXLURhjZtHDpzU7QKQsbPu3+t/XrvARv7sig=; b=OOvR2KZno1zVSCuhKUIvWUlQ67+w3OzGPMJn6aCabIjPW+PSml9NTLuUm7xVYm0qVa eFmwWJOj3doNWTnzMH5dTHzOvu9tHUJugkem3iABfXJ1bPBeHNFPcqirseS9ZLZYIilm kXUUDSXSaecLwRmR414Afrgr8onSsw3gEXuaS7HZLF9qH70KLEECyE/Ci6MfKIuuVaWP 9WV6LWxDQTKqKHIelFNzb/vF3V75vYx5g8VcHI/dLI3MbxR+x5O12LLsDymZIPzcCADD U/LfQx9DSj7kzxtonrTRwjWdVsng8A19bueHa7a2k6ijX+8H+QZ/VX313onIS+ozcMEk 7gfw== X-Gm-Message-State: APjAAAVVQK3ei4eLThDVjhpywarubiv+o8xgDWRSsqqN1gwDomcnznig p/j0OJkrbm44uEoBvVIpIR5yyA== X-Google-Smtp-Source: APXvYqyxhsB5JZ9M7uZDdbC6fJpAMxDRP0ZalYDywENsgIxKD1GOhDS+nktvgtVTitjIRqKeHRtEdQ== X-Received: by 2002:a17:902:26b:: with SMTP id 98mr28559593plc.30.1556484504482; Sun, 28 Apr 2019 13:48:24 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id n1sm32208342pgv.19.2019.04.28.13.48.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Apr 2019 13:48:23 -0700 (PDT) From: Jagan Teki To: Tom Rini , Simon Glass Date: Mon, 29 Apr 2019 02:17:56 +0530 Message-Id: <20190428204801.9578-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190428204801.9578-1-jagan@amarulasolutions.com> References: <20190428204801.9578-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Cc: u-boot@lists.denx.de, linux-amarula@amarulasolutions.com Subject: [U-Boot] [PATCH 3/8] Makefile: Trigger a warning for legcay spi drivers 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: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" We have a warning text for non dm converted spi drivers, but the plan is to mark all these respetive drivers into CONFIG_BROKEN. So, trigger a warning saying that these driver configurations and associated code will remove in v2019.07 (earlier plan is to remove it from v2019.04) Signed-off-by: Jagan Teki --- Makefile | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index 02c9a73d33..4971f211ff 100644 --- a/Makefile +++ b/Makefile @@ -920,6 +920,11 @@ cmd_cfgcheck = $(srctree)/scripts/check-config.sh $2 \ all: $(ALL-y) ifeq ($(CONFIG_BROKEN),y) $(warning "You have broken configuration in your .config! Please check your configuration.") +ifeq ($(CONFIG_SPI),y) +ifneq ($(CONFIG_DM_SPI)$(CONFIG_OF_CONTROL),yy) + $(warning "The relevant config item with associated code will remove in v2019.07 release.") +endif +endif endif # broken ifeq ($(CONFIG_DM_I2C_COMPAT)$(CONFIG_SANDBOX),y) @echo >&2 "===================== WARNING ======================" @@ -997,17 +1002,6 @@ ifeq ($(CONFIG_OF_EMBED),y) @echo >&2 "See doc/README.fdt-control for more info." @echo >&2 "====================================================" endif -ifeq ($(CONFIG_SPI),y) -ifneq ($(CONFIG_DM_SPI)$(CONFIG_OF_CONTROL),yy) - @echo >&2 "===================== WARNING ======================" - @echo >&2 "This board does not use CONFIG_DM_SPI. Please update" - @echo >&2 "the board before v2019.04 for no dm conversion" - @echo >&2 "and v2019.07 for partially dm converted drivers." - @echo >&2 "Failure to update can lead to driver/board removal" - @echo >&2 "See doc/driver-model/MIGRATION.txt for more info." - @echo >&2 "====================================================" -endif -endif ifeq ($(CONFIG_SPI_FLASH),y) ifneq ($(CONFIG_DM_SPI_FLASH)$(CONFIG_OF_CONTROL),yy) @echo >&2 "===================== WARNING ======================"