blob: 4d146c10920a2af38a3d52f6d6f62d0b68590758 [file] [log] [blame]
Adriana Kobylakc763ceb2018-06-04 13:06:52 -05001# UBI-specific configuration for the phosphor-manager-software package
2
Lei YU1873aa12018-05-23 10:53:24 +08003PACKAGECONFIG_append = " ubifs_layout"
4
Adriana Kobylakc763ceb2018-06-04 13:06:52 -05005RDEPENDS_phosphor-software-manager-updater-ubi += " \
Adriana Kobylakc763ceb2018-06-04 13:06:52 -05006 mtd-utils-ubifs \
7"
8
9FILES_${PN}-updater-ubi += " \
Adriana Kobylakc763ceb2018-06-04 13:06:52 -050010 /usr/local \
11 "
12
Lei YUa974b472018-08-21 16:18:28 +080013# Remove default configs
14EXTRA_OECONF_remove_df-obmc-ubi-fs += " \
Lei YU8a56da72018-08-21 16:22:20 +080015 ACTIVE_BMC_MAX_ALLOWED=1 \
Lei YUa974b472018-08-21 16:18:28 +080016 MEDIA_DIR=/run/media \
17"
18
19# Add ubi-fs configs
20EXTRA_OECONF_append_df-obmc-ubi-fs += " \
Lei YU8a56da72018-08-21 16:22:20 +080021 ACTIVE_BMC_MAX_ALLOWED=2 \
Lei YUa974b472018-08-21 16:18:28 +080022 MEDIA_DIR=/media \
23"
24
Adriana Kobylakc763ceb2018-06-04 13:06:52 -050025SYSTEMD_SERVICE_phosphor-software-manager-updater-ubi += " \
26 obmc-flash-bmc-ubirw.service \
27 obmc-flash-bmc-ubiro@.service \
Adriana Kobylakc763ceb2018-06-04 13:06:52 -050028 obmc-flash-bmc-ubirw-remove.service \
29 obmc-flash-bmc-ubiro-remove@.service \
30 obmc-flash-bmc-ubiremount.service \
31 obmc-flash-bmc-updateubootvars@.service \
32 obmc-flash-bmc-cleanup.service \
33 obmc-flash-bmc-mirroruboot.service \
34 reboot-guard-enable.service \
35 reboot-guard-disable.service \
36 usr-local.mount \
37"
38
39# Name of the mtd device where the ubi volumes should be created
40BMC_RW_MTD ??= "bmc"
41BMC_RO_MTD ??= "bmc"
42BMC_KERNEL_MTD ??= "bmc"
43BMC_RW_SIZE ??= "0x600000"
44SYSTEMD_SUBSTITUTIONS += "RW_MTD:${BMC_RW_MTD}:obmc-flash-bmc-ubirw.service"
45SYSTEMD_SUBSTITUTIONS += "RO_MTD:${BMC_RO_MTD}:obmc-flash-bmc-ubiro@.service"
46SYSTEMD_SUBSTITUTIONS += "KERNEL_MTD:${BMC_KERNEL_MTD}:obmc-flash-bmc-ubiro@.service"
47SYSTEMD_SUBSTITUTIONS += "RW_SIZE:${BMC_RW_SIZE}:obmc-flash-bmc-ubirw.service"
48
Adriana Kobylakc763ceb2018-06-04 13:06:52 -050049SRC_URI += "file://synclist"
50do_install_append() {
Adriana Kobylakc763ceb2018-06-04 13:06:52 -050051 install -d ${D}/usr/local
52
53 if [ -f ${WORKDIR}/build/phosphor-sync-software-manager ]; then
54 install -d ${D}${sysconfdir}
55 install -m 0644 ${WORKDIR}/synclist ${D}${sysconfdir}/synclist
56 fi
57}