Skip to content

Commit 6cd564e

Browse files
committed
waf: Add option to align ZMQ quirk with CSPv1
Introduce a new Waf option `--enable-fixup-v1-zmq-little-endian`. When enabled, this option applies a fixup to the ZMQ interface to match the libcsp v1 behavior, which incorrectly used host endianness instead of the expected big-endian format. This fixup ensures compatibility with systems using libcsp v1 while aligning with the behavior of libcsp v2. Signed-off-by: Yasushi SHOJI <[email protected]>
1 parent e16c77b commit 6cd564e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

wscript

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ def options(ctx):
5151
# OS
5252
gr.add_option('--with-os', metavar='OS', default='posix', help='Set operating system. Must be one of: ' + str(valid_os))
5353

54+
# Fixup
55+
gr.add_option('--fixup-v1-zmq-little-endian', action='store_true', help='Use little-endian CSP ID for ZMQ with CSPv1')
5456

5557
def configure(ctx):
5658
# Validate options
@@ -195,6 +197,7 @@ def configure(ctx):
195197
ctx.define('CSP_USE_RTABLE', ctx.options.enable_rtable)
196198
ctx.define('CSP_BUFFER_ZERO_CLEAR', ctx.options.disable_buffer_zero_clear)
197199

200+
ctx.define('CSP_FIXUP_V1_ZMQ_LITTLE_ENDIAN', ctx.options.fixup_v1_zmq_little_endian)
198201

199202
ctx.write_config_header('include/csp/autoconfig.h')
200203

0 commit comments

Comments
 (0)