xref: /openbmc/phosphor-ipmi-flash/meson.options (revision 32e9ea165419725691d5e54be60073bc2cc4f7e0)
13d54fc7cSGeorge Liuoption('tests', type: 'feature', description: 'Build tests')
23d54fc7cSGeorge Liu
33d54fc7cSGeorge Liu# Build Options
4*32e9ea16SPatrick Williamsoption(
5*32e9ea16SPatrick Williams    'bmc-blob-handler',
6*32e9ea16SPatrick Williams    type: 'feature',
7*32e9ea16SPatrick Williams    description: 'Build the BMC BLOB handler',
8*32e9ea16SPatrick Williams)
9*32e9ea16SPatrick Williamsoption(
10*32e9ea16SPatrick Williams    'cleanup-delete',
11*32e9ea16SPatrick Williams    type: 'feature',
12*32e9ea16SPatrick Williams    description: 'Enable use of the delete files cleanup mechanism',
13*32e9ea16SPatrick Williams)
143d54fc7cSGeorge Liuoption('host-tool', type: 'feature', description: 'Build the host tool')
153d54fc7cSGeorge Liu
163d54fc7cSGeorge Liu# BMC Blob Handler Options
17*32e9ea16SPatrick Williamsoption(
18*32e9ea16SPatrick Williams    'host-bios',
19*32e9ea16SPatrick Williams    type: 'boolean',
20*32e9ea16SPatrick Williams    value: false,
21*32e9ea16SPatrick Williams    description: 'Install default BIOS update configs',
22*32e9ea16SPatrick Williams)
23*32e9ea16SPatrick Williamsoption(
24*32e9ea16SPatrick Williams    'reboot-update',
25*32e9ea16SPatrick Williams    type: 'boolean',
26*32e9ea16SPatrick Williams    value: false,
27*32e9ea16SPatrick Williams    description: 'Enable use of reboot update mechanism',
28*32e9ea16SPatrick Williams)
29*32e9ea16SPatrick Williamsoption(
30*32e9ea16SPatrick Williams    'update-status',
31*32e9ea16SPatrick Williams    type: 'boolean',
32*32e9ea16SPatrick Williams    value: false,
33*32e9ea16SPatrick Williams    description: 'Enable use of update status file',
34*32e9ea16SPatrick Williams)
353d54fc7cSGeorge Liu
36*32e9ea16SPatrick Williamsoption(
37*32e9ea16SPatrick Williams    'update-type',
38*32e9ea16SPatrick Williams    type: 'combo',
39*32e9ea16SPatrick Williams    choices: ['none', 'static-layout', 'tarball-ubi'],
40*32e9ea16SPatrick Williams    description: 'Enable firmware update via Blobs',
41*32e9ea16SPatrick Williams)
423d54fc7cSGeorge Liu
43*32e9ea16SPatrick Williamsoption(
44*32e9ea16SPatrick Williams    'lpc-type',
45*32e9ea16SPatrick Williams    type: 'combo',
46*32e9ea16SPatrick Williams    choices: ['none', 'aspeed-lpc', 'nuvoton-lpc'],
47*32e9ea16SPatrick Williams    description: 'Enable external transfers using Aspeed/Nuvoton LPC',
48*32e9ea16SPatrick Williams)
49*32e9ea16SPatrick Williamsoption(
50*32e9ea16SPatrick Williams    'p2a-type',
51*32e9ea16SPatrick Williams    type: 'combo',
52*32e9ea16SPatrick Williams    choices: ['none', 'aspeed-p2a', 'nuvoton-p2a-vga', 'nuvoton-p2a-mbox'],
53*32e9ea16SPatrick Williams    description: 'Enable external transfers using Aspeed PCI-to-AHB, Nuvoton PCI-to-AHB via VGA, or Nuvoton PCI-to-AHB via MBOX',
54*32e9ea16SPatrick Williams)
55*32e9ea16SPatrick Williamsoption(
56*32e9ea16SPatrick Williams    'net-bridge',
57*32e9ea16SPatrick Williams    type: 'boolean',
58*32e9ea16SPatrick Williams    value: false,
59*32e9ea16SPatrick Williams    description: 'Enable external transfers using a TCP connection',
60*32e9ea16SPatrick Williams)
613d54fc7cSGeorge Liu
623d54fc7cSGeorge Liu# Host Tool Options
63*32e9ea16SPatrick Williamsoption(
64*32e9ea16SPatrick Williams    'ppc',
65*32e9ea16SPatrick Williams    type: 'boolean',
66*32e9ea16SPatrick Williams    value: false,
67*32e9ea16SPatrick Williams    description: 'Enable ppc host memory access',
68*32e9ea16SPatrick Williams)
692d57d522STim Lee# Default value 1872 is 0x0750 below
70*32e9ea16SPatrick Williamsoption(
71*32e9ea16SPatrick Williams    'nuvoton-pci-did',
72*32e9ea16SPatrick Williams    type: 'integer',
73*32e9ea16SPatrick Williams    value: 1872,
74*32e9ea16SPatrick Williams    description: 'The device-id for Nuvoton PCI bridge',
75*32e9ea16SPatrick Williams)
763d54fc7cSGeorge Liu
773d54fc7cSGeorge Liu# Configuration Details
783d54fc7cSGeorge Liu
793d54fc7cSGeorge Liu# The address used for mapping P2A or LPC into the BMC's memory-space:
803d54fc7cSGeorge Liu# e.g. https://github.com/openbmc/linux/blob/1da2ce51886a3b2f5db2087f26c661e13ee13b84/arch/arm/boot/dts/aspeed-bmc-quanta-q71l.dts#L26
813d54fc7cSGeorge Liu# or https://github.com/openbmc/linux/blob/1da2ce51886a3b2f5db2087f26c661e13ee13b84/arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts#L166
823d54fc7cSGeorge Liu# for PCI, this address is passed back to the host and is used directly.
83*32e9ea16SPatrick Williamsoption(
84*32e9ea16SPatrick Williams    'mapped-address',
85*32e9ea16SPatrick Williams    type: 'string',
86*32e9ea16SPatrick Williams    value: '0',
87*32e9ea16SPatrick Williams    description: 'Value for memory region mapping',
88*32e9ea16SPatrick Williams)
893d54fc7cSGeorge Liu
90*32e9ea16SPatrick Williamsoption(
91*32e9ea16SPatrick Williams    'static-handler-staged-name',
92*32e9ea16SPatrick Williams    type: 'string',
93*32e9ea16SPatrick Williams    value: '/run/initramfs/bmc-image',
94*32e9ea16SPatrick Williams    description: 'The file to use for staging the firmware update',
95*32e9ea16SPatrick Williams)
96*32e9ea16SPatrick Williamsoption(
97*32e9ea16SPatrick Williams    'tarball-staged-name',
98*32e9ea16SPatrick Williams    type: 'string',
99*32e9ea16SPatrick Williams    value: '/tmp/image-update.tar',
100*32e9ea16SPatrick Williams    description: 'The file to use for staging the firmware update',
101*32e9ea16SPatrick Williams)
102*32e9ea16SPatrick Williamsoption(
103*32e9ea16SPatrick Williams    'hash-filename',
104*32e9ea16SPatrick Williams    type: 'string',
105*32e9ea16SPatrick Williams    value: '/tmp/bmc.sig',
106*32e9ea16SPatrick Williams    description: 'The file to use for the hash provided',
107*32e9ea16SPatrick Williams)
108*32e9ea16SPatrick Williamsoption(
109*32e9ea16SPatrick Williams    'verify-status-filename',
110*32e9ea16SPatrick Williams    type: 'string',
111*32e9ea16SPatrick Williams    value: '/tmp/bmc.verify',
112*32e9ea16SPatrick Williams    description: 'The file checked for the verification status.',
113*32e9ea16SPatrick Williams)
114*32e9ea16SPatrick Williamsoption(
115*32e9ea16SPatrick Williams    'update-status-filename',
116*32e9ea16SPatrick Williams    type: 'string',
117*32e9ea16SPatrick Williams    value: '/tmp/bmc.update',
118*32e9ea16SPatrick Williams    description: 'The file checked for the update status',
119*32e9ea16SPatrick Williams)
120*32e9ea16SPatrick Williamsoption(
121*32e9ea16SPatrick Williams    'bios-verify-status-filename',
122*32e9ea16SPatrick Williams    type: 'string',
123*32e9ea16SPatrick Williams    value: '/tmp/bios.verify',
124*32e9ea16SPatrick Williams    description: 'The file checked for the verification status',
125*32e9ea16SPatrick Williams)
1263d54fc7cSGeorge Liu
127*32e9ea16SPatrick Williamsoption(
128*32e9ea16SPatrick Williams    'preparation-dbus-service',
129*32e9ea16SPatrick Williams    type: 'string',
130*32e9ea16SPatrick Williams    value: 'phosphor-ipmi-flash-bmc-prepare.target',
131*32e9ea16SPatrick Williams    description: 'The systemd target started when the host starts to send an update',
132*32e9ea16SPatrick Williams)
133*32e9ea16SPatrick Williamsoption(
134*32e9ea16SPatrick Williams    'verify-dbus-service',
135*32e9ea16SPatrick Williams    type: 'string',
136*32e9ea16SPatrick Williams    value: 'phosphor-ipmi-flash-bmc-verify.target',
137*32e9ea16SPatrick Williams    description: 'The systemd target started for verification',
138*32e9ea16SPatrick Williams)
139*32e9ea16SPatrick Williamsoption(
140*32e9ea16SPatrick Williams    'update-dbus-service',
141*32e9ea16SPatrick Williams    type: 'string',
142*32e9ea16SPatrick Williams    value: 'phosphor-ipmi-flash-bmc-update.target',
143*32e9ea16SPatrick Williams    description: 'The systemd target started for updating the BMC',
144*32e9ea16SPatrick Williams)
145*32e9ea16SPatrick Williamsoption(
146*32e9ea16SPatrick Williams    'bios-staged-name',
147*32e9ea16SPatrick Williams    type: 'string',
148*32e9ea16SPatrick Williams    value: 'bios-staged-name',
149*32e9ea16SPatrick Williams    description: 'The file to use for staging the bios firmware update',
150*32e9ea16SPatrick Williams)
151*32e9ea16SPatrick Williamsoption(
152*32e9ea16SPatrick Williams    'preparation-bios-target',
153*32e9ea16SPatrick Williams    type: 'string',
154*32e9ea16SPatrick Williams    value: 'phosphor-ipmi-flash-bios-prepare.target',
155*32e9ea16SPatrick Williams    description: 'The systemd target started when the host starts to send an update',
156*32e9ea16SPatrick Williams)
157*32e9ea16SPatrick Williamsoption(
158*32e9ea16SPatrick Williams    'verify-bios-target',
159*32e9ea16SPatrick Williams    type: 'string',
160*32e9ea16SPatrick Williams    value: 'phosphor-ipmi-flash-bios-verify.target',
161*32e9ea16SPatrick Williams    description: 'The systemd target started for verifying the BIOS image',
162*32e9ea16SPatrick Williams)
163*32e9ea16SPatrick Williamsoption(
164*32e9ea16SPatrick Williams    'update-bios-target',
165*32e9ea16SPatrick Williams    type: 'string',
166*32e9ea16SPatrick Williams    value: 'phosphor-ipmi-flash-bios-update.target',
167*32e9ea16SPatrick Williams    description: 'The systemd target started for updating the BIOS',
168*32e9ea16SPatrick Williams)
169