Skip to content

Commit e16c77b

Browse files
committed
meson: Add option to align ZMQ quirk with CSPv1
Introduce a new Meson option `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 146c290 commit e16c77b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

meson.build

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ conf.set10('CSP_PRINT_STDIO', get_option('print_stdio'))
2929
conf.set10('CSP_USE_RTABLE', get_option('use_rtable'))
3030
conf.set10('CSP_BUFFER_ZERO_CLEAR', get_option('buffer_zero_clear'))
3131

32+
conf.set10('CSP_FIXUP_V1_ZMQ_LITTLE_ENDIAN', get_option('fixup_v1_zmq_little_endian'))
33+
3234
csp_deps = []
3335
csp_sources = []
3436

meson_options.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,5 @@ option('buffer_size', type: 'integer', value: 256, description: 'Bytes in each p
2626
option('buffer_count', type: 'integer', value: 15, description: 'Number of total packet buffers')
2727
option('rdp_max_window', type: 'integer', value: 5, description: 'Max window size for RDP')
2828
option('rtable_size', type: 'integer', value: 10, description: 'Number of elements in routing table')
29+
30+
option('fixup_v1_zmq_little_endian', type: 'boolean', value: false, description: 'Use little-endian CSP ID for ZMQ with CSPv1')

0 commit comments

Comments
 (0)