blob: 6b0a78ec04e5ffcacdf3ec958839e6caa5498dca [file] [log] [blame]
# UBI-specific configuration for the phosphor-manager-software package
PACKAGECONFIG_append = " ubifs_layout"
RDEPENDS_phosphor-software-manager-updater-ubi += " \
mtd-utils-ubifs \
"
FILES_${PN}-updater-ubi += " \
/usr/local \
"
# Remove default configs
EXTRA_OECONF_remove_df-obmc-ubi-fs += " \
ACTIVE_BMC_MAX_ALLOWED=1 \
MEDIA_DIR=/run/media \
"
# Add ubi-fs configs
EXTRA_OECONF_append_df-obmc-ubi-fs += " \
ACTIVE_BMC_MAX_ALLOWED=2 \
MEDIA_DIR=/media \
"
SYSTEMD_SERVICE_phosphor-software-manager-updater-ubi += " \
obmc-flash-bmc-ubirw.service \
obmc-flash-bmc-ubiro@.service \
obmc-flash-bmc-ubirw-remove.service \
obmc-flash-bmc-ubiro-remove@.service \
obmc-flash-bmc-ubiremount.service \
obmc-flash-bmc-updateubootvars@.service \
obmc-flash-bmc-cleanup.service \
obmc-flash-bmc-mirroruboot.service \
reboot-guard-enable.service \
reboot-guard-disable.service \
force-reboot.service \
usr-local.mount \
"
# Name of the mtd device where the ubi volumes should be created
BMC_RW_MTD ??= "bmc"
BMC_RO_MTD ??= "bmc"
BMC_KERNEL_MTD ??= "bmc"
BMC_RW_SIZE ??= "0x600000"
SYSTEMD_SUBSTITUTIONS += "RW_MTD:${BMC_RW_MTD}:obmc-flash-bmc-ubirw.service"
SYSTEMD_SUBSTITUTIONS += "RO_MTD:${BMC_RO_MTD}:obmc-flash-bmc-ubiro@.service"
SYSTEMD_SUBSTITUTIONS += "KERNEL_MTD:${BMC_KERNEL_MTD}:obmc-flash-bmc-ubiro@.service"
SYSTEMD_SUBSTITUTIONS += "RW_SIZE:${BMC_RW_SIZE}:obmc-flash-bmc-ubirw.service"
do_install_append() {
install -d ${D}/usr/local
}