From patchwork Sun May 19 13:52:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 1101561 X-Patchwork-Delegate: trini@ti.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=konsulko.com Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 456NmB6wcvz9sMM for ; Sun, 19 May 2019 23:53:46 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 94547C21E13; Sun, 19 May 2019 13:53:12 +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=none 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 7106EC21E18; Sun, 19 May 2019 13:52:32 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 41B90C21DA1; Sun, 19 May 2019 13:52:26 +0000 (UTC) Received: from mail-yw1-f66.google.com (mail-yw1-f66.google.com [209.85.161.66]) by lists.denx.de (Postfix) with ESMTPS id 8B17BC21DF9 for ; Sun, 19 May 2019 13:52:22 +0000 (UTC) Received: by mail-yw1-f66.google.com with SMTP id s5so4758570ywd.9 for ; Sun, 19 May 2019 06:52:22 -0700 (PDT) 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; bh=8OFgBa/G4f7M82WnjjPDcyMKD8YudWrM8LsGZ7Cz+7U=; b=Px7pzwNA6dbMloGi6ulEXTu630yBNLik/mQo2PBdpbb14+RHfpW+ciRx+KqjeEvHzL k7+TuqeJ5lGrY15tCBWP5L9rxtqopHDAUSU5e3B+k9m2tbbSdcUdETYA5djIVb2YjMdd cGma+ZymuIrriDGMNHORxgy4C8clphVYm+ME/YS6J32d7R3LhXuz70zI2Z1z5eItk/ML FmlRYotb8vRzcorYfE9SoYgdtguIQDsvom6s3PXjWAD0IUrCU/n+LWJvRJeF+NCj2oxT b9M89uvCYgA6J7gvV6iKVDN0QfezUDiAf5bqxPBiym1v9pvNTbjEGVBLMpKF2YEVSPft qVKg== X-Gm-Message-State: APjAAAWmsOwJIQjBY+xRZ66dSF5HGM5e+mTpaUUpRY4LK1vJbkJ40Di5 nuA/OB3J/cemb6OFTJKupnjjet0= X-Google-Smtp-Source: APXvYqx1DobC2fZxtEzibj4m0+uy3OMv8g0VtXbne5FfFUGJGza4mb/f/36yNmzMEQ7I2mZFxrWCmQ== X-Received: by 2002:a81:74d7:: with SMTP id p206mr32464783ywc.443.1558273941261; Sun, 19 May 2019 06:52:21 -0700 (PDT) Received: from bill-the-cat.local (cpe-65-184-141-147.ec.res.rr.com. [65.184.141.147]) by smtp.gmail.com with ESMTPSA id v128sm4053392ywd.24.2019.05.19.06.52.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 19 May 2019 06:52:20 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Date: Sun, 19 May 2019 09:52:05 -0400 Message-Id: <1558273931-1415-5-git-send-email-trini@konsulko.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1558273931-1415-1-git-send-email-trini@konsulko.com> References: <1558273931-1415-1-git-send-email-trini@konsulko.com> Subject: [U-Boot] [PATCHv2 05/11] 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: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Jagan Teki We have a warning text for non dm converted spi drivers, but the plan is to mark all these respective drivers with CONFIG_DEPRECATED. 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 3547c95103e2..6b73d0f89e4a 100644 --- a/Makefile +++ b/Makefile @@ -920,6 +920,11 @@ cmd_cfgcheck = $(srctree)/scripts/check-config.sh $2 \ all: $(ALL-y) ifeq ($(CONFIG_DEPRECATED),y) $(warning "You have deprecated configuration options enabled 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 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 ======================"