blob: 17b50da0e1536d6fbab90d1eb701fb529de019c9 [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 \
"
# 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 \
"
# Name of the mtd device where the ubi volumes should be created
BMC_RW_MTD ??= "bmc"
BMC_RO_MTD ??= "bmc"
BMC_KERNEL_MTD ??= "bmc"
FLASH_SIZE ?= "32768"
DISTROOVERRIDES .= ":flash-${FLASH_SIZE}"
BMC_RW_SIZE ??= "0x600000"
BMC_RW_SIZE_flash-131072 = "0x2000000"
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"