blob: a32c3db9e73e013fc68439bd3c347472439b36ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
SUMMARY = "Phosphor Software Management"
DESCRIPTION = "Phosphor Software Manager provides a set of system software \
management daemons. It is suitable for use on a wide variety of OpenBMC \
platforms."
PR = "r1"
PV = "1.0+git${SRCPV}"
require ${PN}.inc
SOFTWARE_MGR_PACKAGES = " \
${PN}-version \
${PN}-download-mgr \
${PN}-updater \
${PN}-updater-ubi \
${PN}-sync \
"
PACKAGE_BEFORE_PN += "${SOFTWARE_MGR_PACKAGES}"
ALLOW_EMPTY_${PN} = "1"
DBUS_PACKAGES = "${SOFTWARE_MGR_PACKAGES}"
# Set SYSTEMD_PACKAGES to empty because we do not want ${PN} and DBUS_PACKAGES
# handles the rest.
SYSTEMD_PACKAGES = ""
PACKAGECONFIG[verify_signature] = "--enable-verify_signature,--disable-verify_signature"
PACKAGECONFIG[sync_bmc_files] = "--enable-sync_bmc_files,--disable-sync_bmc_files"
PACKAGECONFIG[ubifs_layout] = "--enable-ubifs_layout"
PACKAGECONFIG[flash_bios] = "--enable-host_bios_upgrade"
inherit autotools pkgconfig
inherit obmc-phosphor-dbus-service
inherit python3native
inherit ${@bb.utils.contains('DISTRO_FEATURES', 'obmc-ubi-fs', 'phosphor-software-manager-ubi-fs', '', d)}
DEPENDS += " \
autoconf-archive-native \
openssl \
phosphor-dbus-interfaces \
phosphor-logging \
sdbus++-native \
sdbusplus \
"
RDEPENDS_${PN}-updater += " \
bash \
virtual-obmc-image-manager \
"
EXTRA_OECONF += " \
ACTIVE_BMC_MAX_ALLOWED=1 \
MEDIA_DIR=/run/media \
"
RPROVIDES_${PN}-version += " \
virtual-obmc-image-manager \
"
FILES_${PN}-version += "${bindir}/phosphor-version-software-manager ${exec_prefix}/lib/tmpfiles.d/software.conf"
FILES_${PN}-download-mgr += "${bindir}/phosphor-download-manager"
FILES_${PN}-updater += " \
${bindir}/phosphor-image-updater \
${bindir}/obmc-flash-bmc \
/usr/local \
"
FILES_${PN}-sync += " \
${bindir}/phosphor-sync-software-manager \
${sysconfdir}/synclist \
"
DBUS_SERVICE_${PN}-version += "xyz.openbmc_project.Software.Version.service"
DBUS_SERVICE_${PN}-download-mgr += "xyz.openbmc_project.Software.Download.service"
DBUS_SERVICE_${PN}-updater += "xyz.openbmc_project.Software.BMC.Updater.service"
DBUS_SERVICE_${PN}-sync += "xyz.openbmc_project.Software.Sync.service"
SYSTEMD_SERVICE_${PN}-updater += " \
obmc-flash-bmc-setenv@.service \
usr-local.mount \
"
SYSTEMD_SERVICE_${PN}-updater += "${@bb.utils.contains('PACKAGECONFIG', 'flash_bios', 'obmc-flash-host-bios@.service', '', d)}"
S = "${WORKDIR}/git"
do_install_append() {
install -d ${D}/usr/local
}
|