Message ID | 20181001182249.129565-8-sjg@chromium.org |
---|---|
State | Accepted |
Commit | 2c5eac1e1820163d3776e1f842550bfc4a88d136 |
Delegated to: | Simon Glass |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=chromium.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 42P9nY2nPxz9s3l for <incoming@patchwork.ozlabs.org>; Tue, 2 Oct 2018 04:30:25 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 0F7A2C21F7A; Mon, 1 Oct 2018 18:27:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id CE9E8C21FCB; Mon, 1 Oct 2018 18:23:34 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 3DA1FC21FB7; Mon, 1 Oct 2018 18:23:28 +0000 (UTC) Received: from mail-oi1-f201.google.com (mail-oi1-f201.google.com [209.85.167.201]) by lists.denx.de (Postfix) with ESMTPS id 1E8DFC21FB4 for <u-boot@lists.denx.de>; Mon, 1 Oct 2018 18:23:17 +0000 (UTC) Received: by mail-oi1-f201.google.com with SMTP id v4-v6so6292363oix.2 for <u-boot@lists.denx.de>; Mon, 01 Oct 2018 11:23:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=NKssGJ/QWCQM9nrNCbMf4CxC8Ug2zmsvCZ2mXeh5tB4=; b=A/jbmQNvjCw5HejI6aeSO3TMAVechdIJzS5zb4yEN3Es4tozFwSwQgNCJYU+o8kksW CiF81DSpnIwTZ+HMduqd9aY+w/JtY+ZjLbIogIGTOEBXuF0dZkicKZaAHfL++6Wm+lbq pAWRUQvNmvyR864TBHAip9hb7UvqZPq0e3HaT1u/gCk0JQc98IJdIWa5ua+qNsA5AqfM 4eN7Sv1mtQVNRm5Ly2L9QC+f8me46t5HEiCaMl/OniR8Gq12vBDmG7J9rEtM9g01phC/ /+llxnjd73olXD9ZTa2Hqn/gvSK3UDBWGoHXmv1j0AH+uD9RduwAULj99fPL6C/4sIlR 98xQ== X-Gm-Message-State: ABuFfojApCWxMmGq7FWzuDdBtKUOUZeCNCDVdqBA9LCu8NM+XoTw9+/l /Ie0T/GF9Q6Bg+Ch40qnakoiYwM= X-Google-Smtp-Source: ACcGV60uq1lDTVrPQKK4aUlnZq3+npQagvkoda91GgGYYTPHSk0dPcoDBIuUVoAlJGdLHTUvpvitHWY= X-Received: by 2002:aca:3d8a:: with SMTP id k132-v6mr10153701oia.19.1538418196150; Mon, 01 Oct 2018 11:23:16 -0700 (PDT) Date: Mon, 1 Oct 2018 12:22:11 -0600 In-Reply-To: <20181001182249.129565-1-sjg@chromium.org> Message-Id: <20181001182249.129565-8-sjg@chromium.org> Mime-Version: 1.0 References: <20181001182249.129565-1-sjg@chromium.org> X-Mailer: git-send-email 2.19.0.605.g01d371f741-goog From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Subject: [U-Boot] [PATCH 07/45] Makefile: Add a warning if SPL/TPL cannot be built X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> |
Series |
Various fixes and improvements
|
expand
|
At present the build fails in strange ways if CONFIG_SPL is defined by
CONFIG_SUPPORT_SPL is not. Add a warning for this case as it can be very
confusing to debug.
Signed-off-by: Simon Glass <sjg@chromium.org>
---
scripts/Makefile.spl | 7 +++++++
1 file changed, 7 insertions(+)
Applied to u-boot-dm
diff --git a/scripts/Makefile.spl b/scripts/Makefile.spl index e494d185e4b..c71497ff008 100644 --- a/scripts/Makefile.spl +++ b/scripts/Makefile.spl @@ -45,6 +45,13 @@ SPL_ := SPL_TPL_ := endif +ifeq ($(obj)$(CONFIG_SUPPORT_SPL),spl) +$(error You cannot build SPL without enabling CONFIG_SUPPORT_SPL) +endif +ifeq ($(obj)$(CONFIG_SUPPORT_TPL),tpl) +$(error You cannot build TPL without enabling CONFIG_SUPPORT_TPL) +endif + include $(srctree)/config.mk include $(srctree)/arch/$(ARCH)/Makefile
At present the build fails in strange ways if CONFIG_SPL is defined by CONFIG_SUPPORT_SPL is not. Add a warning for this case as it can be very confusing to debug. Signed-off-by: Simon Glass <sjg@chromium.org> --- scripts/Makefile.spl | 7 +++++++ 1 file changed, 7 insertions(+)