public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 4/4] Makefile: Correct logic for DM_SCSI + unconverted drivers check
Date: Mon, 11 Mar 2019 13:29:23 +0100	[thread overview]
Message-ID: <20190311122923.4456-4-sr@denx.de> (raw)
In-Reply-To: <20190311122923.4456-1-sr@denx.de>

When checking for boards that are enabling a SATA driver that isn't
converted to DM yet we need to be sure to not also trip over boards that
do set CONFIG_AHCI & CONFIG_BLK by itself, as that is not a bug.

This was detected when converting the Armada XP SATA driver sata_mv.c
to DM with AHCI & BLK support. This warning is still printed without
this patch applied here.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Tom Rini <trini@konsulko.com>
---
 Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Makefile b/Makefile
index 26db4e7b59..896e0c3350 100644
--- a/Makefile
+++ b/Makefile
@@ -940,6 +940,7 @@ endif
 endif
 ifeq ($(CONFIG_LIBATA)$(CONFIG_MVSATA_IDE),y)
 ifneq ($(CONFIG_DM_SCSI),y)
+ifneq ($(CONFIG_BLK)$(CONFIG_AHCI),yy)
 	@echo >&2 "===================== WARNING ======================"
 	@echo >&2 "This board does not use CONFIG_DM_SCSI. Please update"
 	@echo >&2 "the storage controller to use CONFIG_DM_SCSI before the v2019.07 release."
@@ -948,6 +949,7 @@ ifneq ($(CONFIG_DM_SCSI),y)
 	@echo >&2 "===================================================="
 endif
 endif
+endif
 ifeq ($(CONFIG_PCI),y)
 ifneq ($(CONFIG_DM_PCI),y)
 	@echo >&2 "===================== WARNING ======================"
-- 
2.21.0

  parent reply	other threads:[~2019-03-11 12:29 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-11 12:29 [U-Boot] [PATCH 1/4] sata: sata_mv: Add DM support to enable CONFIG_BLK usage Stefan Roese
2019-03-11 12:29 ` [U-Boot] [PATCH 2/4] arm: mvebu: theadorable_debug_defconfig: Enable CONFIG_BLK Stefan Roese
2019-04-11 12:00   ` Stefan Roese
2019-03-11 12:29 ` [U-Boot] [PATCH 3/4] arm: mvebu: db-mv784mp-gp_defconfig: " Stefan Roese
2019-04-11 12:01   ` Stefan Roese
2019-03-11 12:29 ` Stefan Roese [this message]
2019-03-11 14:09   ` [U-Boot] [PATCH 4/4] Makefile: Correct logic for DM_SCSI + unconverted drivers check Tom Rini
2019-03-12  6:45     ` Stefan Roese
2019-03-12  6:46   ` [U-Boot] [PATCH 4/4 v2] " Stefan Roese
2019-03-12 14:55     ` Tom Rini
2019-04-11 12:02     ` Stefan Roese
2019-04-04  7:21 ` [U-Boot] [PATCH 1/4] sata: sata_mv: Add DM support to enable CONFIG_BLK usage Chris Packham
2019-04-11 11:59 ` Stefan Roese

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190311122923.4456-4-sr@denx.de \
    --to=sr@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox