Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 794C2C61DA4 for ; Wed, 22 Feb 2023 16:45:40 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7C74885B93; Wed, 22 Feb 2023 17:37:31 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="kZWfigIr"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 00D2985AEF; Wed, 22 Feb 2023 17:36:09 +0100 (CET) Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3CBEB85B40 for ; Wed, 22 Feb 2023 17:35:15 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd2e.google.com with SMTP id f14so970831iow.5 for ; Wed, 22 Feb 2023 08:35:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=wWffg44d0hX5aVdg01PS/2Ku1Zw/oMEYWwRJ7qFTdRc=; b=kZWfigIr3iRKBhV66STrOfO4R3e7AYZicJfRhEn2Z9Qv5ocn8AfXnQuC9BJ6/ZuTPX l7H47ibRCMIIcqjDOfvzEpoygPv+G/PToFQPoPKLzLgW0b2UUBqyejq1WlEC68oDj4kl MiPKkOPhiG7vOaFvWF2P8Uxtctz9otJSfHFP4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wWffg44d0hX5aVdg01PS/2Ku1Zw/oMEYWwRJ7qFTdRc=; b=IYKTymkojzOuzz0XA5d5APde+XmfDkjzAZo/AVYXdp5eUq/Rs+u2IUz3NHm22WBHQG EkT8yl/KnJ4Jvkd89gjn48G0oEWfPpf51QyQ4t/5UYVnlF7xb/qYPY1rNmyTjIOkTr8b pKH2hOOVIsIUiqUsiNmZhSRz83dezVEhN1BcifT0Y5jIuRJk1EtghvlOOs/mVzloPpmv 2BQj8b087wOBwdJ8zjEt6uUnJlVljGGKEjAD/Rf9CZCklAMdI+fSvWz7njNxNmzq1Lvr ECPDK+GeNaTbhthGs+HzoweFan8kntN8xYtIRRHQGyYTmaE94wMlgHzAo8M+rZ1w+tmL MVtQ== X-Gm-Message-State: AO0yUKXWpqEbQljlmo3uFmyidwLlShUGnmlWW+7EUeJxmm0WYqo+tGNd Sm9dTnXCVCEWX2VLR7Ij6iXoopY5vL1O/I9K X-Google-Smtp-Source: AK7set9gaqSOuYxsrph4hSOKiX19Z8oCuZBFY5jVPjdwAlubmC4UBIqPmJNyyLyA6E6Z8FjYUn4kJA== X-Received: by 2002:a5d:87d4:0:b0:74c:91c7:8794 with SMTP id q20-20020a5d87d4000000b0074c91c78794mr2493525ios.21.1677083710797; Wed, 22 Feb 2023 08:35:10 -0800 (PST) Received: from sjg1.roam.corp.google.com (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id z26-20020a056602005a00b00716eb44b97esm2164541ioz.27.2023.02.22.08.35.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Feb 2023 08:35:10 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass , Jeffy Chen , Kever Yang , Klaus Goger , Philipp Tomsich , Quentin Schulz , huang lin Subject: [PATCH v5 34/44] rockchip: Avoid checking environment without ENV_SUPPORT Date: Wed, 22 Feb 2023 09:34:15 -0700 Message-Id: <20230222163425.2043934-35-sjg@chromium.org> X-Mailer: git-send-email 2.39.2.637.g21b0678d19-goog In-Reply-To: <20230222163425.2043934-1-sjg@chromium.org> References: <20230222163425.2043934-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean With split config, this causes a build error in SPL where the environment may not be enabled. It affects two rk3399 boards. Add a condition. Signed-off-by: Simon Glass --- (no changes since v1) board/theobroma-systems/puma_rk3399/puma-rk3399.c | 2 +- board/theobroma-systems/ringneck_px30/ringneck-px30.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/board/theobroma-systems/puma_rk3399/puma-rk3399.c b/board/theobroma-systems/puma_rk3399/puma-rk3399.c index 97f398bd754..34839dcb9f1 100644 --- a/board/theobroma-systems/puma_rk3399/puma-rk3399.c +++ b/board/theobroma-systems/puma_rk3399/puma-rk3399.c @@ -136,7 +136,7 @@ int mmc_get_env_dev(void) return CONFIG_SYS_MMC_ENV_DEV; } -#if !IS_ENABLED(CONFIG_ENV_IS_NOWHERE) +#if IS_ENABLED(CONFIG_ENV_SUPPORT) && !IS_ENABLED(CONFIG_ENV_IS_NOWHERE) #error Please enable CONFIG_ENV_IS_NOWHERE #endif diff --git a/board/theobroma-systems/ringneck_px30/ringneck-px30.c b/board/theobroma-systems/ringneck_px30/ringneck-px30.c index 47d1a40ef7c..9eb2fcfc48f 100644 --- a/board/theobroma-systems/ringneck_px30/ringneck-px30.c +++ b/board/theobroma-systems/ringneck_px30/ringneck-px30.c @@ -118,7 +118,7 @@ int mmc_get_env_dev(void) return CONFIG_SYS_MMC_ENV_DEV; } -#if !IS_ENABLED(CONFIG_ENV_IS_NOWHERE) +#if IS_ENABLED(CONFIG_ENV_SUPPORT) && !IS_ENABLED(CONFIG_ENV_IS_NOWHERE) #error Please enable CONFIG_ENV_IS_NOWHERE #endif -- 2.39.2.637.g21b0678d19-goog