blob: 71f8c6f76a333420dcdc36b4f2703ec21fe3e031 [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
Adriana Kobylakb3f2bb82020-05-06 13:14:28 -050010EXTRA_OEMESON += "-Dactive-bmc-max-allowed=2"
11EXTRA_OEMESON += "-Dmedia-dir='/media'"
Lei YUa974b472018-08-21 16:18:28 +080012
Patrick Williams12fc9392021-08-06 09:16:53 -050013SYSTEMD_SERVICE:phosphor-software-manager-updater-ubi += " \
Adriana Kobylakc763ceb2018-06-04 13:06:52 -050014 obmc-flash-bmc-ubirw.service \
15 obmc-flash-bmc-ubiro@.service \
Adriana Kobylakc763ceb2018-06-04 13:06:52 -050016 obmc-flash-bmc-ubirw-remove.service \
17 obmc-flash-bmc-ubiro-remove@.service \
18 obmc-flash-bmc-ubiremount.service \
19 obmc-flash-bmc-updateubootvars@.service \
20 obmc-flash-bmc-cleanup.service \
21 obmc-flash-bmc-mirroruboot.service \
Adriana Kobylakc763ceb2018-06-04 13:06:52 -050022"
23
24# Name of the mtd device where the ubi volumes should be created
25BMC_RW_MTD ??= "bmc"
26BMC_RO_MTD ??= "bmc"
27BMC_KERNEL_MTD ??= "bmc"
Brad Bishopdcd861c2019-09-24 21:16:09 -040028FLASH_SIZE ?= "32768"
29DISTROOVERRIDES .= ":flash-${FLASH_SIZE}"
Adriana Kobylakc763ceb2018-06-04 13:06:52 -050030BMC_RW_SIZE ??= "0x600000"
Patrick Williams12fc9392021-08-06 09:16:53 -050031BMC_RW_SIZE:flash-131072 = "0x2000000"
Adriana Kobylakc763ceb2018-06-04 13:06:52 -050032SYSTEMD_SUBSTITUTIONS += "RW_MTD:${BMC_RW_MTD}:obmc-flash-bmc-ubirw.service"
33SYSTEMD_SUBSTITUTIONS += "RO_MTD:${BMC_RO_MTD}:obmc-flash-bmc-ubiro@.service"
34SYSTEMD_SUBSTITUTIONS += "KERNEL_MTD:${BMC_KERNEL_MTD}:obmc-flash-bmc-ubiro@.service"
35SYSTEMD_SUBSTITUTIONS += "RW_SIZE:${BMC_RW_SIZE}:obmc-flash-bmc-ubirw.service"
36