From patchwork Sun Apr 28 20:47:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 338 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 611C93F05A for ; Sun, 28 Apr 2019 22:48:23 +0200 (CEST) Received: by mail-pl1-f199.google.com with SMTP id g11sf2938119plt.23 for ; Sun, 28 Apr 2019 13:48:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1556484502; cv=pass; d=google.com; s=arc-20160816; b=JDkJ3SmRQtqBLPRSr2omNJ20Wox4ePQFMGQKT9Y7uuKV93zo5KnDA4ytdIE8S/o0Nq 3L6uxxGwErNXelkJec1vJd5hZ22ka1bE2LQTVRiwbEXRzeFCIfE/nQD/9F3aPvyFFSLW w2o11IkE8OLVH06wgIiumnMqZST+Wsi/4wa51Vjk5WoWq/MKv+PuDv2mMlb3FbeRHOlj 7EIzquybRaslcymwMLK/E739YQ2Uls8/0ULSfYCuSJ/KkQhlMWBnyvnfRGv4FbiMOldR D6+G//GJ8b3sM9L6o9fm5bd/R3SJyyopT2TBb7ZI23HXoXgeYuZs583ICYOA0Z8aouVX q7pA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=GNAEj8WaZqEIMk/wj+eTM2KjAM7dZQx34l97oZxKTzQ=; b=zeMI0NQBg8OP+DJoRzCO7NlZ0zK4f7P37koTaA+tr+vQ0D29ak0f4gpnwVqKs7kPrP S6oT6IWNl/Qp4TUZdIK1j1213OHpa9jvj0N0mhCSviWCzDhqcbTv2QEMa4a8RyNw18+b 00JNTf0RM8AYH2vChYR7yptjwGqhkyPTrZDA4KqqoFkS99nPbYOITkRAbJ141QOsizZC Sr72KE+S1/sVEZsNNJlwFmkIS2G8zy4w6kVI7/3gJlc1ntQyaaUCMVzGbekqdOLLm7Vq Xoku6Ei4w5mBXDtkSkWRsZW02QA78Yr5kxdvjfOkp0iP3Ztcu/PnsrAqGOapC9JKCKWn BBHg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Sa0aUh+q; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=GNAEj8WaZqEIMk/wj+eTM2KjAM7dZQx34l97oZxKTzQ=; b=SXPj2EY/6eX4LkYb5eUc1jfOiA0bnB4tBxOAkndKYfvrSigYf2EszBgRsKgndVomfo tIQkZ7yKEEZlgR8ZjbKD+gR7Cw73gK1yaRmOrPUN8GkAqyUdLpUHtR/61AdK6IQ6r5iA 2N77hAeghvVozWMGP8zVoLcQNkImL+p+Tm5f0= 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:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=GNAEj8WaZqEIMk/wj+eTM2KjAM7dZQx34l97oZxKTzQ=; b=nLbI+rIdX2V9M/TCx285D0FWfjv0wZJD148asg33VqiSn8xdLHzMMvOjGj/In16QgM Y4DYvbe8hpyN7SvnyQim2aAuR6l01V4bDP1jW3BU1JA3+QcNSoGVfraREhZHM0y4hwxb e2xyl51eqCleqMyl5m6xa3bgkC9bypjiV9FRPjYlDJhvZDVV8EWHZr+a6VhlvzRc5HuQ iBa/qA2sBHRl4xXLq12Sb9iDCLGsF5qvbzpmZs/9iXI6rh0bCOeES3e2lxUOfy8ukMvd TEEeqP5+1gP/lc77sXBc7858d0rXPw1R1h9APyYvPuW5Ejev+c4tR1qaxQXoKC1yVu8o bwSg== X-Gm-Message-State: APjAAAVMh5maovOdgSKUwYziM9CukOZS1b/RNUzgv0CsF9tNNiDX0SyF vFKbnVH4rx1YZAVCiJa168hC1xQo X-Google-Smtp-Source: APXvYqwQwzLsocdx2iZfpOjKQ19noCiLZbJwrWwpBLs4KYU7OY+nNkWSh/R8OyTyrYDlxermnOh+kQ== X-Received: by 2002:aa7:978f:: with SMTP id o15mr3212431pfp.173.1556484502147; Sun, 28 Apr 2019 13:48:22 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:ff54:: with SMTP id s20ls29431pgk.14.gmail; Sun, 28 Apr 2019 13:48:21 -0700 (PDT) X-Received: by 2002:a63:5166:: with SMTP id r38mr15620461pgl.429.1556484501767; Sun, 28 Apr 2019 13:48:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556484501; cv=none; d=google.com; s=arc-20160816; b=DfSxVOcHDs3NMcoYv0aInRl4m7oVyApKgFa+Ow5AZx4wi0vqD/vt3cIii0FQEXsk40 H+8R1/fElGYGfI19/zkA1v7Ao8wBD4x1tV9EW8qFVROLl/lMkSmKkoSPvncDXRYMHaKk 5Kmn+GI7tQLYi/WfbNCV3qva2xndoGlRNkvnVa3ohVxz2CVk8SV0HWmiZUFHDFB4Ko+P lnu+VDgZm+tzyGwCLsl7h7FlugKNd5zXfqejOSH1+qErSHc0GN1xOc5kWjvmKP6uqY4p 4CY5NlSQWrsZ8MHkYnMCG0fBLgy5KO6uTK5Fxg8/ezveMF1Hrpgi5n1/Sm+ibJpgTm6d XIzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=AJJEb4a8ex6FRavidkx9acfRsUlPClmxUWdvExbXMZY=; b=p49Ylek+5T6H0R7+jBXiZ3zs2nVmwQj9WAR6kiny/FPlk5f3tMxTwgo/lrtjW70frD ynwBjQBr2F1Y7BAA5myRAq/4Kq5y2cEUwsiwDC5sTFXnUlQlheEq/UgX3XorOS1qKlAa qy2gaGKLIMLwvC9vRe3dB9lrngSX6UP24/ayv1rVMCgjpZx9Sl1z+ZpS5eVZ5UrqckGO s6oBN31P2NK7MWWmWAY90e4klJ/LOu1+s35RXZa45EUgFYB/3e+HysOE1wknan0onOVu ZVvPzae1f3UM+pzPVfyixLvUzsP1pcDiXLkNiJtGuK0IlNJfSsdh6LCjRLuwTjly2nqh fSlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Sa0aUh+q; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id k1sor30811188pld.2.2019.04.28.13.48.21 for (Google Transport Security); Sun, 28 Apr 2019 13:48:21 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:902:b592:: with SMTP id a18mr27026855pls.252.1556484501460; Sun, 28 Apr 2019 13:48:21 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id n1sm32208342pgv.19.2019.04.28.13.48.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Apr 2019 13:48:20 -0700 (PDT) From: Jagan Teki To: Tom Rini , Simon Glass Cc: u-boot@lists.denx.de, linux-amarula@amarulasolutions.com, Jagan Teki , Heinrich Schuchardt Subject: [PATCH 2/8] Makefile: Trigger a Warning if BROKEN defined Date: Mon, 29 Apr 2019 02:17:55 +0530 Message-Id: <20190428204801.9578-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190428204801.9578-1-jagan@amarulasolutions.com> References: <20190428204801.9578-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Sa0aUh+q; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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"