Makefile: use generic rules to make spec-derived sources.

Now we use the same Makefile rules for all CSV->C generation.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2020-08-31 10:43:25 +09:30
committed by neil saitug
parent a00179d557
commit 8150d28575
74 changed files with 212 additions and 227 deletions

10
wire/common_wire.csv Normal file
View File

@@ -0,0 +1,10 @@
# A custom message that we got from a peer and don't know how to handle, so we
# forward it to the master for further handling.
msgtype,custommsg_in,1030
msgdata,custommsg_in,msg_len,u16,
msgdata,custommsg_in,msg,u8,msg_len
# A custom message that the master tells us to send to the peer.
msgtype,custommsg_out,1031
msgdata,custommsg_out,msg_len,u16,
msgdata,custommsg_out,msg,u8,msg_len
1 # A custom message that we got from a peer and don't know how to handle, so we
2 # forward it to the master for further handling.
3 msgtype,custommsg_in,1030
4 msgdata,custommsg_in,msg_len,u16,
5 msgdata,custommsg_in,msg,u8,msg_len
6 # A custom message that the master tells us to send to the peer.
7 msgtype,custommsg_out,1031
8 msgdata,custommsg_out,msg_len,u16,
9 msgdata,custommsg_out,msg,u8,msg_len