blob: 6ca1fb1624b59600d72deaf941e22cc7c9473084 [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# 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
Adriana Kobylakc763ceb2018-06-04 13:06:52 -050013SYSTEMD_SERVICE_phosphor-software-manager-updater-ubi += " \
14 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"
Brad Bishopdcd861c2019-09-24 21:16:09 -040031BMC_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