From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 19 Sep 2025 12:07:12 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uzY1I-004oRd-1I for lore@lore.pengutronix.de; Fri, 19 Sep 2025 12:07:12 +0200 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1uzY1I-0007o3-2f; Fri, 19 Sep 2025 12:07:12 +0200 Received: from mail.thorsis.com ([2003:a:e28:26e4::10]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1uzY0v-0007bQ-Tz for ptxdist@pengutronix.de; Fri, 19 Sep 2025 12:06:50 +0200 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 7EB6B1489C22 for ; Fri, 19 Sep 2025 12:06:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thorsis.com; s=dkim; t=1758276409; h=from:subject:date:message-id:to:mime-version: content-transfer-encoding:in-reply-to:references; bh=lOdSAWxFuqp5PcT59RBWbiXKrm0pmjmbjwxNZ4cxU9M=; b=AufWWFqYYnTYRHmGkLd8FSBq4a8ULRYJovb47CNY8bTPNEKNJMLsB+Prt6MKA2fLbzRVC8 HOAVqTWsZ7NtCB2seqorjMspUNE57dzLYZAzqCG98R5v/VCR0Q63chCdhxXwzQGBOJGeA1 AXlLtkV0+pKEe0KYuelKLPPbARK1YH6B2SeLNw5vmEBpiMrws5VQ+Zuhu2xSq6NuJMKepw v/mvSk/WbzZFi9pvtqsdKwWsDM+mZIe6iSy64t2uD0XFe7I8hUKdB0/gFDrfcjKUmeZ9lH bOBiKAyTWs95rUT2IIfF/d7ZYVuTcE7txz30xcEXE49kf7TAkhmI9PAHj4QNfw== To: ptxdist@pengutronix.de Date: Fri, 19 Sep 2025 12:06:43 +0200 Message-Id: <20250919100643.199174-6-ada@thorsis.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250919100643.199174-1-ada@thorsis.com> References: <20250919100643.199174-1-ada@thorsis.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-3.3 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Subject: [ptxdist] [PATCH v2 5/5] libubootenv: Make yaml support optional X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Alexander Dahl via ptxdist Reply-To: ptxdist@pengutronix.de Cc: Alexander Dahl Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false If just used as drop in replacement with the old configuration format, libyaml dependency is not required. You only need to enable it, if you intend to use the new, extended configuration format. Link: https://github.com/sbabic/libubootenv/blob/master/docs/fw_env_config.md#configuration-file-in-yaml Signed-off-by: Alexander Dahl --- Notes: v2: - new patch, not in v1 rules/libubootenv.in | 8 +++++++- rules/libubootenv.make | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/rules/libubootenv.in b/rules/libubootenv.in index 317a440fc..3bee47481 100644 --- a/rules/libubootenv.in +++ b/rules/libubootenv.in @@ -3,7 +3,7 @@ menuconfig LIBUBOOTENV tristate select HOST_CMAKE - select LIBYAML + select LIBYAML if LIBUBOOTENV_YAML_CONFIG select ZLIB prompt "libubootenv " help @@ -21,6 +21,12 @@ config LIBUBOOTENV_TOOLS help Install fw_printenv and fw_setenv to target. +config LIBUBOOTENV_YAML_CONFIG + bool + prompt "extended conf file format" + help + Support the new, extended, yaml based configuration file format. + comment "u-boot-tools is selected!" depends on U_BOOT_TOOLS diff --git a/rules/libubootenv.make b/rules/libubootenv.make index d6753cd87..1ec86693a 100644 --- a/rules/libubootenv.make +++ b/rules/libubootenv.make @@ -35,7 +35,7 @@ LIBUBOOTENV_CONF_TOOL := cmake LIBUBOOTENV_CONF_OPT := \ $(CROSS_CMAKE_USR) \ -DBUILD_DOC=OFF \ - -DNO_YML_SUPPORT=OFF + -DNO_YML_SUPPORT=$(call ptx/ifdef, PTXCONF_LIBUBOOTENV_YAML_CONFIG, OFF, ON) # ---------------------------------------------------------------------------- # Target-Install -- 2.39.5