xref: /openbmc/pldm/meson.options (revision 5ef5b340)
1# PLDM daemon options
2option(
3    'tests',
4    type: 'feature',
5    value: 'enabled',
6    description: 'Build tests'
7)
8
9option(
10    'oe-sdk',
11    type: 'feature',
12    value: 'disabled',
13    description: 'Enable OE SDK'
14)
15
16option(
17    'utilities',
18    type: 'feature',
19    value: 'enabled',
20    description: 'Enable debug utilities'
21)
22
23option(
24    'libpldmresponder',
25    type: 'feature',
26    value: 'enabled',
27    description: 'Enable libpldmresponder'
28)
29
30option(
31    'systemd',
32    type: 'feature',
33    value: 'enabled',
34    description: 'Include systemd support'
35)
36
37option(
38    'transport-implementation',
39    type: 'combo',
40    choices: ['mctp-demux', 'af-mctp'],
41    description: 'transport via af-mctp or mctp-demux'
42)
43
44# As per PLDM spec DSP0240 version 1.1.0, in Timing Specification for PLDM messages (Table 6),
45# the instance ID for a given response will expire and become reusable if a response has not been
46# received within a maximum of 6 seconds after a request is sent. By setting the dbus timeout
47# value to 5 seconds we ensure that PLDM does not wait for a response from a dbus call even after
48# the instance ID has expired. If the option is set to 5 seconds, any dbus call originated from
49# PLDM daemon will timeout after 5 seconds.
50option(
51    'dbus-timeout-value',
52    type: 'integer',
53    min: 3,
54    max: 10,
55    value: 5,
56    description: '''The amount of time pldm waits to get a response for a dbus
57                    message before timing out'''
58)
59
60option(
61    'heartbeat-timeout-seconds',
62    type: 'integer',
63    value: 120,
64    description: '''The amount of time host waits for BMC to respond to pings
65                    from host, as part of host-bmc surveillance'''
66)
67
68# Flight Recorder for PLDM Daemon
69option(
70    'flightrecorder-max-entries',
71    type:'integer',
72    min:0,
73    max:30,
74    value: 10,
75    description: '''The max number of pldm messages that can be stored in the
76                    recorder, this feature will be disabled if it is set to 0'''
77)
78
79# PLDM Daemon Terminus options
80option(
81    'terminus-id',
82    type:'integer',
83    min:0,
84    max: 255,
85    value:1,
86    description: '''The terminus id value of the device that is running this
87                    pldm stack'''
88)
89
90option(
91    'terminus-handle',
92    type:'integer',
93    min:0,
94    max:65535,
95    value:1,
96    description: '''The terminus handle value of the device that is running this
97                    pldm stack'''
98)
99
100# Timing specification options for PLDM messages
101option(
102    'number-of-request-retries',
103    type: 'integer',
104    min: 2,
105    max: 30,
106    value: 2,
107    description: '''The number of times a requester is obligated to retry a
108                    request'''
109)
110
111option(
112    'instance-id-expiration-interval',
113    type: 'integer',
114    min: 5,
115    max: 6,
116    value: 5,
117    description: 'Instance ID expiration interval in seconds'
118)
119
120# Default response-time-out set to 2 seconds to facilitate a minimum retry of
121# the request of 2.
122option(
123    'response-time-out',
124    type: 'integer',
125    min: 300,
126    max: 4800,
127    value: 2000,
128    description: '''The amount of time a requester has to wait for a response
129                    message in milliseconds'''
130)
131
132# Firmware update configuration parameters
133option(
134    'maximum-transfer-size',
135    type: 'integer',
136    min: 16,
137    max: 4294967295,
138    value: 4096,
139    description: '''Maximum size in bytes of the variable payload allowed to be
140                    requested by the FD, via RequestFirmwareData command'''
141)
142
143# PLDM Soft Power off options
144option(
145    'softoff',
146    type: 'feature',
147    value: 'enabled',
148    description: 'Build soft power off application'
149)
150
151option(
152    'softoff-timeout-seconds',
153    type: 'integer',
154    value: 7200,
155    description: 'softoff: Time to wait for host to gracefully shutdown'
156)
157
158# Vendor Specific Options
159
160## OEM IBM Options
161option(
162    'oem-ibm',
163    type: 'feature',
164    value: 'enabled',
165    description: 'Enable IBM OEM PLDM'
166)
167
168option(
169    'oem-ibm-dma-maxsize',
170    type: 'integer',
171    min:4096,
172    max: 16773120,
173    value: 8384512,
174    description: 'OEM-IBM: max DMA size'
175)
176