mailarchive of the pengutronix oss-tools mailing list
 help / color / mirror / Atom feed
* [OSS-Tools] [PATCH dt-utils 1/5] meson.build: fix building with -Dbarebox-state=false
@ 2026-01-27 12:12 Enrico Jörns
  2026-01-27 12:12 ` [OSS-Tools] [PATCH dt-utils 2/5] state: helpful error message if state GUID cannot be found Enrico Jörns
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Enrico Jörns @ 2026-01-27 12:12 UTC (permalink / raw)
  To: oss-tools

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 <ejo@pengutronix.de>
---
 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




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-01-27 12:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-27 12:12 [OSS-Tools] [PATCH dt-utils 1/5] meson.build: fix building with -Dbarebox-state=false Enrico Jörns
2026-01-27 12:12 ` [OSS-Tools] [PATCH dt-utils 2/5] state: helpful error message if state GUID cannot be found Enrico Jörns
2026-01-27 12:12 ` [OSS-Tools] [PATCH dt-utils 3/5] libdt: error handling for udev read of ID_PART_TABLE_TYPE Enrico Jörns
2026-01-27 12:13 ` [OSS-Tools] [PATCH dt-utils 4/5] libdt: print error if device is not GPT-partitioned Enrico Jörns
2026-01-27 12:13 ` [OSS-Tools] [PATCH dt-utils 5/5] libdt: print error for failed udev_new() for consistency Enrico Jörns

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox