From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 27 Jan 2026 13:14:26 +0100 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 1vkhxi-005tNv-1p for lore@lore.pengutronix.de; Tue, 27 Jan 2026 13:14:26 +0100 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 1vkhxX-0001HB-P5; Tue, 27 Jan 2026 13:14:15 +0100 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1vkhxV-0001GX-Qc for oss-tools@pengutronix.de; Tue, 27 Jan 2026 13:14:13 +0100 Received: from dude06.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::5c]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vkhxW-002k9f-0q for oss-tools@pengutronix.de; Tue, 27 Jan 2026 13:14:13 +0100 Received: from ejo by dude06.red.stw.pengutronix.de with local (Exim 4.98.2) (envelope-from ) id 1vkhxV-0000000Enxo-2FDR for oss-tools@pengutronix.de; Tue, 27 Jan 2026 13:14:13 +0100 From: =?UTF-8?q?Enrico=20J=C3=B6rns?= To: oss-tools@pengutronix.de Date: Tue, 27 Jan 2026 13:12:57 +0100 Message-ID: <20260127121322.3332573-1-ejo@pengutronix.de> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [OSS-Tools] [PATCH dt-utils 1/5] meson.build: fix building with -Dbarebox-state=false X-BeenThere: oss-tools@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: Pengutronix Public Open-Source-Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "OSS-Tools" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: oss-tools-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false Since barebox-state is built uconditionally, but the defintion of sources_barebox_state is conditional, a build for barebox-state=false will fail with: | ERROR: Unknown variable "sources_barebox_state". Signed-off-by: Enrico Jörns --- meson.build | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/meson.build b/meson.build index bf60171..8c7b8b9 100644 --- a/meson.build +++ b/meson.build @@ -148,14 +148,16 @@ libdt = shared_library('dt-utils', version: '@0@.@1@.@2@'.format(lt_current - lt_age, lt_age, lt_revision), install : true) -executable('barebox-state', - sources_barebox_state, - include_directories : incdir, - link_args : ld_flags, - c_args : ['-include', meson.current_build_dir() / 'version.h'], - dependencies : [versiondep], - link_with : libdt, - install : true) +if get_option('barebox-state') + executable('barebox-state', + sources_barebox_state, + include_directories : incdir, + link_args : ld_flags, + c_args : ['-include', meson.current_build_dir() / 'version.h'], + dependencies : [versiondep], + link_with : libdt, + install : true) +endif executable('fdtdump', sources_fdtdump, -- 2.47.3