blob: 17b50da0e1536d6fbab90d1eb701fb529de019c9 [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
Lei YUa974b472018-08-21 16:18:28 +08009# Remove default configs
10EXTRA_OECONF_remove_df-obmc-ubi-fs += " \
Lei YU8a56da72018-08-21 16:22:20 +080011 ACTIVE_BMC_MAX_ALLOWED=1 \
Lei YUa974b472018-08-21 16:18:28 +080012 MEDIA_DIR=/run/media \
13"
14
15# Add ubi-fs configs
16EXTRA_OECONF_append_df-obmc-ubi-fs += " \
Lei YU8a56da72018-08-21 16:22:20 +080017 ACTIVE_BMC_MAX_ALLOWED=2 \
Lei YUa974b472018-08-21 16:18:28 +080018 MEDIA_DIR=/media \
19"
20
Adriana Kobylakc763ceb2018-06-04 13:06:52 -050021SYSTEMD_SERVICE_phosphor-software-manager-updater-ubi += " \
22 obmc-flash-bmc-ubirw.service \
23 obmc-flash-bmc-ubiro@.service \
Adriana Kobylakc763ceb2018-06-04 13:06:52 -050024 obmc-flash-bmc-ubirw-remove.service \
25 obmc-flash-bmc-ubiro-remove@.service \
26 obmc-flash-bmc-ubiremount.service \
27 obmc-flash-bmc-updateubootvars@.service \
28 obmc-flash-bmc-cleanup.service \
29 obmc-flash-bmc-mirroruboot.service \
30 reboot-guard-enable.service \
31 reboot-guard-disable.service \
Andrew Geissler5c14d4e2019-05-31 13:41:54 +000032 force-reboot.service \
Adriana Kobylakc763ceb2018-06-04 13:06:52 -050033"
34
35# Name of the mtd device where the ubi volumes should be created
36BMC_RW_MTD ??= "bmc"
37BMC_RO_MTD ??= "bmc"
38BMC_KERNEL_MTD ??= "bmc"
Brad Bishopdcd861c2019-09-24 21:16:09 -040039FLASH_SIZE ?= "32768"
40DISTROOVERRIDES .= ":flash-${FLASH_SIZE}"
Adriana Kobylakc763ceb2018-06-04 13:06:52 -050041BMC_RW_SIZE ??= "0x600000"
Brad Bishopdcd861c2019-09-24 21:16:09 -040042BMC_RW_SIZE_flash-131072 = "0x2000000"
Adriana Kobylakc763ceb2018-06-04 13:06:52 -050043SYSTEMD_SUBSTITUTIONS += "RW_MTD:${BMC_RW_MTD}:obmc-flash-bmc-ubirw.service"
44SYSTEMD_SUBSTITUTIONS += "RO_MTD:${BMC_RO_MTD}:obmc-flash-bmc-ubiro@.service"
45SYSTEMD_SUBSTITUTIONS += "KERNEL_MTD:${BMC_KERNEL_MTD}:obmc-flash-bmc-ubiro@.service"
46SYSTEMD_SUBSTITUTIONS += "RW_SIZE:${BMC_RW_SIZE}:obmc-flash-bmc-ubirw.service"
47