From: Simon Glass <s...@chromium.org>
To: U-Boot Mailing List <u-boot@lists.denx.de>
Cc: Tom Rini <tr...@konsulko.com>,
        Marek Vasut <marek.va...@gmail.com>,
        Simon Glass <s...@chromium.org>,
        Masahiro Yamada <yamada.masah...@socionext.com>,
        Rasmus Villemoes <rasmus.villem...@prevas.dk>,
        Baruch Siach <bar...@tkos.co.il>,
        Jagdish Gediya <jagdish.ged...@nxp.com>,
        Stephen Warren <swar...@nvidia.com>
Subject: [PATCH 1/3] Makefile: Add a warning for boards that don't use CONFIG_BLK
Date: Thu, 22 Nov 2018 13:07:54 -0700
Message-Id: <20181122200756.127191-1-...@chromium.org>
X-Mailer: git-send-email 2.19.1.1215.g8438c0b245-goog
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit

The deadline for this has passed and we are starting to remove boards that
do not use driver model for block devices.

Add a noisy Makefile warning.

Signed-off-by: Simon Glass <s...@chromium.org>
---

 Makefile | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Makefile b/Makefile
index 552687db538..8bf422f6a85 100644
--- a/Makefile
+++ b/Makefile
@@ -917,6 +917,13 @@ ifeq ($(CONFIG_DM_I2C_COMPAT)$(CONFIG_SANDBOX),y)
        @echo "(possibly in a subsequent patch in your series)"
        @echo "before sending patches to the mailing list."
        @echo "===================================================="
+endif
+ifneq ($(CONFIG_BLK),y)
+       @echo "===================== WARNING ======================"
+       @echo "This board does not use CONFIG_BLK. Please update"
+       @echo "the board to use CONFIG_BLK before the end of 2018."
+       @echo "See doc/driver-model/MIGRATION.txt for more info."
+       @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
--
2.19.1.1215.g8438c0b245-goog

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to