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