13d54fc7cSGeorge Liuoption('tests', type: 'feature', description: 'Build tests')
23d54fc7cSGeorge Liu
33d54fc7cSGeorge Liu# Build Options
43d54fc7cSGeorge Liuoption('bmc-blob-handler', type: 'feature', description: 'Build the BMC BLOB handler')
53d54fc7cSGeorge Liuoption('cleanup-delete', type: 'feature', description: 'Enable use of the delete files cleanup mechanism')
63d54fc7cSGeorge Liuoption('host-tool', type: 'feature', description: 'Build the host tool')
73d54fc7cSGeorge Liu
83d54fc7cSGeorge Liu# BMC Blob Handler Options
93d54fc7cSGeorge Liuoption('host-bios', type: 'boolean', value: false, description: 'Install default BIOS update configs')
103d54fc7cSGeorge Liuoption('reboot-update', type: 'boolean', value: false, description: 'Enable use of reboot update mechanism')
113d54fc7cSGeorge Liuoption('update-status', type: 'boolean', value: false, description: 'Enable use of update status file')
123d54fc7cSGeorge Liu
133d54fc7cSGeorge Liuoption('update-type', type : 'combo', choices : ['none', 'static-layout', 'tarball-ubi'], description: 'Enable firmware update via Blobs')
143d54fc7cSGeorge Liu
153d54fc7cSGeorge Liuoption('lpc-type', type : 'combo', choices : ['none', 'aspeed-lpc', 'nuvoton-lpc'], description: 'Enable external transfers using Aspeed/Nuvoton LPC')
163d54fc7cSGeorge Liuoption('p2a-type', type : 'combo', choices : ['none', 'aspeed-p2a', 'nuvoton-p2a-vga', 'nuvoton-p2a-mbox'], description: 'Enable external transfers using Aspeed PCI-to-AHB, Nuvoton PCI-to-AHB via VGA, or Nuvoton PCI-to-AHB via MBOX')
173d54fc7cSGeorge Liuoption('net-bridge', type: 'boolean', value: false, description: 'Enable external transfers using a TCP connection')
183d54fc7cSGeorge Liu
193d54fc7cSGeorge Liu# Host Tool Options
203d54fc7cSGeorge Liuoption('ppc', type: 'boolean', value: false, description: 'Enable ppc host memory access')
21*2d57d522STim Lee# Default value 1872 is 0x0750 below
22*2d57d522STim Leeoption('nuvoton-pci-did', type : 'integer', value : 1872, description : 'The device-id for Nuvoton PCI bridge')
233d54fc7cSGeorge Liu
243d54fc7cSGeorge Liu# Configuration Details
253d54fc7cSGeorge Liu
263d54fc7cSGeorge Liu# The address used for mapping P2A or LPC into the BMC's memory-space:
273d54fc7cSGeorge Liu# e.g. https://github.com/openbmc/linux/blob/1da2ce51886a3b2f5db2087f26c661e13ee13b84/arch/arm/boot/dts/aspeed-bmc-quanta-q71l.dts#L26
283d54fc7cSGeorge Liu# or https://github.com/openbmc/linux/blob/1da2ce51886a3b2f5db2087f26c661e13ee13b84/arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts#L166
293d54fc7cSGeorge Liu# for PCI, this address is passed back to the host and is used directly.
303d54fc7cSGeorge Liuoption('mapped-address', type : 'string', value : '0', description : 'Value for memory region mapping')
313d54fc7cSGeorge Liu
323d54fc7cSGeorge Liuoption('static-handler-staged-name', type : 'string', value : '/run/initramfs/bmc-image', description : 'The file to use for staging the firmware update')
333d54fc7cSGeorge Liuoption('tarball-staged-name', type : 'string', value : '/tmp/image-update.tar', description : 'The file to use for staging the firmware update')
343d54fc7cSGeorge Liuoption('hash-filename', type : 'string', value : '/tmp/bmc.sig', description : 'The file to use for the hash provided')
353d54fc7cSGeorge Liuoption('verify-status-filename', type : 'string', value : '/tmp/bmc.verify', description : 'The file checked for the verification status.')
363d54fc7cSGeorge Liuoption('update-status-filename', type : 'string', value : '/tmp/bmc.update', description : 'The file checked for the update status')
373d54fc7cSGeorge Liuoption('bios-verify-status-filename', type : 'string', value : '/tmp/bios.verify', description : 'The file checked for the verification status')
383d54fc7cSGeorge Liu
393d54fc7cSGeorge Liuoption('preparation-dbus-service', type : 'string', value : 'phosphor-ipmi-flash-bmc-prepare.target', description : 'The systemd target started when the host starts to send an update')
403d54fc7cSGeorge Liuoption('verify-dbus-service', type : 'string', value : 'phosphor-ipmi-flash-bmc-verify.target', description : 'The systemd target started for verification')
413d54fc7cSGeorge Liuoption('update-dbus-service', type : 'string', value : 'phosphor-ipmi-flash-bmc-update.target', description : 'The systemd target started for updating the BMC')
423d54fc7cSGeorge Liuoption('bios-staged-name', type : 'string', value : 'bios-staged-name', description : 'The file to use for staging the bios firmware update')
433d54fc7cSGeorge Liuoption('preparation-bios-target', type : 'string', value : 'phosphor-ipmi-flash-bios-prepare.target', description : 'The systemd target started when the host starts to send an update')
443d54fc7cSGeorge Liuoption('verify-bios-target', type : 'string', value : 'phosphor-ipmi-flash-bios-verify.target', description : 'The systemd target started for verifying the BIOS image')
453d54fc7cSGeorge Liuoption('update-bios-target', type : 'string', value : 'phosphor-ipmi-flash-bios-update.target', description : 'The systemd target started for updating the BIOS')