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 B5706C43334 for ; Tue, 14 Jun 2022 02:57:49 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3A732844A3; Tue, 14 Jun 2022 04:57:47 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com 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=konsulko.com header.i=@konsulko.com header.b="NhLCNWJF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7EA56844A5; Tue, 14 Jun 2022 04:57:45 +0200 (CEST) Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) (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 0AC3D84486 for ; Tue, 14 Jun 2022 04:57:41 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x82e.google.com with SMTP id x18so5268129qtj.3 for ; Mon, 13 Jun 2022 19:57:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ynjrU78UzbdHTya2Pc+BTFnIxFZ/pLjipdzlTvsYaM0=; b=NhLCNWJFEygDAk4r1VcQhNWHLBnjn1y0vckwV7LNQNjunqBXNEI2ba3jKr62qVDGAg X7goAZbTdPy3bHZzzs9zsWInv5xkMgmilug6bQOXYUVdl1gTft5K6rspwGOQW3ar4PEv AaRwFar3I0EOlabB4DmUhJQkyq/K7d9Uexvy4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ynjrU78UzbdHTya2Pc+BTFnIxFZ/pLjipdzlTvsYaM0=; b=cJSllNHWypNZ7yvWQXzLv2sjeWrs2SQnz5yfNIOa3OU3xSP1LY4rHvhW3sNHJH2sqR i/WvFZXNauRdjt1SEhlKbN52F2NxLbZ7AxYuXj3yHnd30DreiBlvWuS0iSQ7tH+5VZVB oPSFvNIiHPmNfTU3abTk1uM7f9nyseH7JAHB+8IgO+5Cieq/9zY/mrh3zAgQAQsWtk2B 062FF86Sb8Z/+p7Qn/t/fdibPqWC94hDZ7r2uXQ2Me+60qQbfFoD0j7eVOUhJV8/X3Tg 7Ytp4sV18d2dkw1re+I1OW+T4IZYuRZ/xF9srvZeReCNeMR7V+nQr1SsiVer8mNoaWQ5 Ks9g== X-Gm-Message-State: AOAM5316zAIzFN9ZiSm7KHi4ogU67mVp5o5Zym3nt/rOdIu7i8tBLUGI 6SnjtlXUD/3k/zCxnZcDV8tDNurhKu1eLA== X-Google-Smtp-Source: ABdhPJyDQX7ohaGsEMETyj4v1LL+Pfi9Td9a4Ohl7mdtKX1xRc4wg+76ITixE0+gqok3+nO90q75eA== X-Received: by 2002:a05:622a:15c4:b0:304:d9e7:786c with SMTP id d4-20020a05622a15c400b00304d9e7786cmr2505906qty.114.1655175459439; Mon, 13 Jun 2022 19:57:39 -0700 (PDT) Received: from bill-the-cat.lan (cpe-65-184-195-139.ec.res.rr.com. [65.184.195.139]) by smtp.gmail.com with ESMTPSA id x7-20020a05622a000700b002f90a33c78csm6443778qtw.67.2022.06.13.19.57.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jun 2022 19:57:38 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Cc: Joe Hershberger , Wolfgang Denk , Simon Glass Subject: [PATCH 1/8] env: Do not make CONFIG_EXTRA_ENV_TEXT and CONFIG_EXTRA_ENV_SETTINGS conflict Date: Mon, 13 Jun 2022 22:57:30 -0400 Message-Id: <20220614025737.3708141-1-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 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.5 at phobos.denx.de X-Virus-Status: Clean Largely, the use of CONFIG_EXTRA_ENV_SETTINGS can be migrated directly to come from CONFIG_EXTRA_ENV_TEXT. The biggest case that cannot easily be migrated is distro_bootcmd support. Rather than block migration on this, remove the #error here so that we can being moving forward. Cc: Joe Hershberger Cc: Wolfgang Denk Cc: Simon Glass Signed-off-by: Tom Rini --- I spent about a day working at getting config_distro_bootcmd to work via CONFIG_EXTRA_ENV_TEXT and _maybe_ there's a path forward if we rely on less nesting of macros, I'm not convinced. But I can clearly see how moving everything else forward to text based environment files will encourage sharing of environment and both remove otherwise unmigrated CONFIG symbols and generally move forward with being able to remove include/config/board.h files. --- include/env_default.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/env_default.h b/include/env_default.h index 7004a6fef29b..7113e08e6b0f 100644 --- a/include/env_default.h +++ b/include/env_default.h @@ -109,9 +109,6 @@ const char default_environment[] = { "bootlimit=" __stringify(CONFIG_BOOTCOUNT_BOOTLIMIT)"\0" #endif #ifdef CONFIG_EXTRA_ENV_TEXT -# ifdef CONFIG_EXTRA_ENV_SETTINGS -# error "Your board uses a text-file environment, so must not define CONFIG_EXTRA_ENV_SETTINGS" -# endif /* This is created in the Makefile */ CONFIG_EXTRA_ENV_TEXT #endif -- 2.25.1