From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jagan Teki Date: Mon, 29 Apr 2019 02:17:55 +0530 Subject: [U-Boot] [PATCH 2/8] Makefile: Trigger a Warning if BROKEN defined In-Reply-To: <20190428204801.9578-1-jagan@amarulasolutions.com> References: <20190428204801.9578-1-jagan@amarulasolutions.com> Message-ID: <20190428204801.9578-3-jagan@amarulasolutions.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de If configured target has broken config enabled, trigger a warning saying that the desired .config has broken configuration. Cc: Heinrich Schuchardt Signed-off-by: Jagan Teki --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 66a09ac900..02c9a73d33 100644 --- a/Makefile +++ b/Makefile @@ -918,6 +918,9 @@ cmd_cfgcheck = $(srctree)/scripts/check-config.sh $2 \ $(srctree)/scripts/config_whitelist.txt $(srctree) all: $(ALL-y) +ifeq ($(CONFIG_BROKEN),y) + $(warning "You have broken configuration in your .config! Please check your configuration.") +endif # broken ifeq ($(CONFIG_DM_I2C_COMPAT)$(CONFIG_SANDBOX),y) @echo >&2 "===================== WARNING ======================" @echo >&2 "This board uses CONFIG_DM_I2C_COMPAT. Please remove" -- 2.18.0.321.gffc6fa0e3