blob: 350ee1ef0467baa46fc0eb896dae09e4f0c22f58 [file] [log] [blame]
Patrick Venture2ff2ecc2018-11-09 18:27:28 -08001HOMEPAGE = "http://github.com/openbmc/phosphor-ipmi-flash"
2SUMMARY = "Phosphor OEM IPMI In-band Firmware Update over BLOB"
3DESCRIPTION = "This package handles a series of OEM IPMI commands that implement the firmware update handler over the BLOB protocol."
4PR = "r1"
Patrick Venturee4e8e7b2019-06-28 15:34:15 -07005PV = "1.0+git${SRCPV}"
Patrick Venture2ff2ecc2018-11-09 18:27:28 -08006LICENSE = "Apache-2.0"
7LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
8
9inherit autotools pkgconfig
10inherit obmc-phosphor-ipmiprovider-symlink
Andrew Geisslera560e8e2019-07-08 19:51:12 +000011inherit systemd
Patrick Venture2ff2ecc2018-11-09 18:27:28 -080012
13DEPENDS += "autoconf-archive-native"
14DEPENDS += "phosphor-ipmi-blobs"
15DEPENDS += "phosphor-logging"
16DEPENDS += "sdbusplus"
Andrew Geisslera560e8e2019-07-08 19:51:12 +000017DEPENDS += "systemd"
Patrick Venturef0bb2a92019-03-07 10:51:53 -080018DEPENDS += "ipmi-blob-tool"
Patrick Venturecb35b592019-05-03 10:35:28 -070019DEPENDS += "pciutils"
Patrick Venture2ff2ecc2018-11-09 18:27:28 -080020
Andrew Geissler67a224f2019-06-19 18:52:19 +000021PACKAGECONFIG ?= "cleanup-delete"
22PACKAGECONFIG[cleanup-delete] = "--enable-cleanup-delete, --disable-cleanup-delete"
Patrick Venture1e8155c2019-06-28 19:28:28 -070023# If using static-layout, reboot-update is a good option to handle updating.
Brandon Kim6fc63582019-09-17 17:14:48 -070024# To be able to track the update status, update-status option can be used.
25# Note that both reboot-update and update-status cannot be enabled at the same time.
Patrick Venture1e8155c2019-06-28 19:28:28 -070026PACKAGECONFIG[reboot-update] = "--enable-reboot-update, --disable-reboot-update"
Brandon Kim6fc63582019-09-17 17:14:48 -070027PACKAGECONFIG[update-status] = "--enable-update-status, --disable-update-status"
Patrick Ventureba602d92019-07-19 14:07:22 -070028
29# Default options for supporting various flash types:
30PACKAGECONFIG[static-bmc] = "--enable-static-layout, --disable-static-layout"
31PACKAGECONFIG[ubitar-bmc] = "--enable-tarball-ubi, --disable-tarball-ubi"
Andrew Geisslera560e8e2019-07-08 19:51:12 +000032PACKAGECONFIG[host-bios] = "--enable-host-bios, --disable-host-bios"
Andrew Geissler67a224f2019-06-19 18:52:19 +000033
Patrick Venture7f113ef2019-07-15 09:39:43 -070034# Hardware options to enable transmitting the data from the host.
35PACKAGECONFIG[aspeed-p2a] = "--enable-aspeed-p2a, --disable-aspeed-p2a"
36PACKAGECONFIG[aspeed-lpc] = "--enable-aspeed-lpc, --disable-aspeed-lpc"
37PACKAGECONFIG[nuvoton-lpc] = "--enable-nuvoton-lpc, --disable-nuvoton-lpc"
Benjamin Fair23bb90e2019-10-17 16:55:54 -070038PACKAGECONFIG[net-bridge] = "--enable-net-bridge, --disable-net-bridge"
Patrick Venture7f113ef2019-07-15 09:39:43 -070039
Patrick Venturef65a4e22019-05-15 12:19:16 -070040EXTRA_OECONF = "--disable-tests --disable-build-host-tool"
41
Patrick Venture2fba5de2019-07-15 09:50:03 -070042# Set this variable in your recipe to set it instead of using MAPPED_ADDRESS directly.
43IPMI_FLASH_BMC_ADDRESS ?= "0"
44EXTRA_OECONF_append = " MAPPED_ADDRESS=${IPMI_FLASH_BMC_ADDRESS}"
45
Patrick Venture2ff2ecc2018-11-09 18:27:28 -080046S = "${WORKDIR}/git"
47SRC_URI = "git://github.com/openbmc/phosphor-ipmi-flash"
Andrew Geissler3473bd42020-11-30 20:23:11 +000048SRCREV = "7af41c28ee9cf86be2c43c0a8f7d9b57bbd43e3d"
Andrew Geisslera560e8e2019-07-08 19:51:12 +000049
50SYSTEMD_PACKAGES = "${PN}"
51SYSTEMD_SERVICE_${PN} += "phosphor-ipmi-flash-bmc-prepare.target \
52 phosphor-ipmi-flash-bmc-verify.target \
53 phosphor-ipmi-flash-bmc-update.target"
54
55# If they enabled host-bios, add those three extra targets.
56HOST_BIOS_TARGETS = "phosphor-ipmi-flash-bios-prepare.target \
57 phosphor-ipmi-flash-bios-verify.target \
58 phosphor-ipmi-flash-bios-update.target"
59
60SYSTEMD_SERVICE_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'host-bios', '${HOST_BIOS_TARGETS}', '', d)}"
Patrick Venture2ff2ecc2018-11-09 18:27:28 -080061
62FILES_${PN}_append = " ${libdir}/ipmid-providers/lib*${SOLIBS}"
63FILES_${PN}_append = " ${libdir}/blob-ipmid/lib*${SOLIBS}"
64FILES_${PN}-dev_append = " ${libdir}/ipmid-providers/lib*${SOLIBSDEV} ${libdir}/ipmid-providers/*.la"
65
66BLOBIPMI_PROVIDER_LIBRARY += "libfirmwareblob.so"
Andrew Geissler67a224f2019-06-19 18:52:19 +000067BLOBIPMI_PROVIDER_LIBRARY += "${@bb.utils.contains('PACKAGECONFIG', 'cleanup-delete', 'libfirmwarecleanupblob.so', '', d)}"
Patrick Venturee21be192019-05-08 07:43:10 -070068
69do_configure[depends] += "virtual/kernel:do_shared_workdir"