diff mbox

[U-Boot,01/31] sandbox: Don't print a warning for CONFIG_I2C_COMPAT

Message ID 1465354089-3508-2-git-send-email-sjg@chromium.org
State Accepted
Commit 7fcdac0ee96fb19013056e7a083e46f74c8dad66
Delegated to: Simon Glass
Headers show

Commit Message

Simon Glass June 8, 2016, 2:47 a.m. UTC
Sandbox includes this code to provide build coverage. While we retain this
feature we should have sandbox build it. Sandbox does not in fact use the
I2C compatibility mode. Showing a warning for sandbox is just confusing,
since no conversion is expected.

Drop the warning for sandbox.

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

 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/Makefile b/Makefile
index 0f7d6f3..5b03095 100644
--- a/Makefile
+++ b/Makefile
@@ -801,7 +801,7 @@  quiet_cmd_pad_cat = CAT     $@
 cmd_pad_cat = $(cmd_objcopy) && $(append) || rm -f $@
 
 all:		$(ALL-y)
-ifeq ($(CONFIG_DM_I2C_COMPAT),y)
+ifeq ($(CONFIG_DM_I2C_COMPAT)$(CONFIG_SANDBOX),y)
 	@echo "===================== WARNING ======================"
 	@echo "This board uses CONFIG_DM_I2C_COMPAT. Please remove"
 	@echo "(possibly in a subsequent patch in your series)"