blob: 9d38adaf7f1793e086b019e90cc83a3e9fd4174b [file] [log] [blame]
Adriana Kobylakc763ceb2018-06-04 13:06:52 -05001# UBI-specific configuration for the phosphor-manager-software package
2
Patrick Williams12fc9392021-08-06 09:16:53 -05003PACKAGECONFIG:append = " ubifs_layout"
Lei YU1873aa12018-05-23 10:53:24 +08004
Patrick Williams12fc9392021-08-06 09:16:53 -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# Add ubi-fs configs
Patrick Williamsed104d42021-08-31 13:19:27 -050010EXTRA_OEMESON:append = " \
11 -Dactive-bmc-max-allowed=2 \
12 -Dmedia-dir='/media' \
13"
Lei YUa974b472018-08-21 16:18:28 +080014
Patrick Williams12fc9392021-08-06 09:16:53 -050015SYSTEMD_SERVICE:phosphor-software-manager-updater-ubi += " \
Adriana Kobylakc763ceb2018-06-04 13:06:52 -050016 obmc-flash-bmc-ubirw.service \
17 obmc-flash-bmc-ubiro@.service \
Adriana Kobylakc763ceb2018-06-04 13:06:52 -050018 obmc-flash-bmc-ubirw-remove.service \
19 obmc-flash-bmc-ubiro-remove@.service \
20 obmc-flash-bmc-ubiremount.service \
21 obmc-flash-bmc-updateubootvars@.service \
22 obmc-flash-bmc-cleanup.service \
23 obmc-flash-bmc-mirroruboot.service \
Adriana Kobylakc763ceb2018-06-04 13:06:52 -050024"
25
26# Name of the mtd device where the ubi volumes should be created
27BMC_RW_MTD ??= "bmc"
28BMC_RO_MTD ??= "bmc"
29BMC_KERNEL_MTD ??= "bmc"
Brad Bishopdcd861c2019-09-24 21:16:09 -040030FLASH_SIZE ?= "32768"
31DISTROOVERRIDES .= ":flash-${FLASH_SIZE}"
Adriana Kobylakc763ceb2018-06-04 13:06:52 -050032BMC_RW_SIZE ??= "0x600000"
Patrick Williams12fc9392021-08-06 09:16:53 -050033BMC_RW_SIZE:flash-131072 = "0x2000000"
Adriana Kobylakc763ceb2018-06-04 13:06:52 -050034SYSTEMD_SUBSTITUTIONS += "RW_MTD:${BMC_RW_MTD}:obmc-flash-bmc-ubirw.service"
35SYSTEMD_SUBSTITUTIONS += "RO_MTD:${BMC_RO_MTD}:obmc-flash-bmc-ubiro@.service"
36SYSTEMD_SUBSTITUTIONS += "KERNEL_MTD:${BMC_KERNEL_MTD}:obmc-flash-bmc-ubiro@.service"
37SYSTEMD_SUBSTITUTIONS += "RW_SIZE:${BMC_RW_SIZE}:obmc-flash-bmc-ubirw.service"
38