Adriana Kobylak | c763ceb | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 1 | # UBI-specific configuration for the phosphor-manager-software package |
| 2 | |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 3 | PACKAGECONFIG:append = " ubifs_layout" |
Lei YU | 1873aa1 | 2018-05-23 10:53:24 +0800 | [diff] [blame] | 4 | |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 5 | RDEPENDS:phosphor-software-manager-updater-ubi += " \ |
Adriana Kobylak | c763ceb | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 6 | mtd-utils-ubifs \ |
| 7 | " |
| 8 | |
Lei YU | a974b47 | 2018-08-21 16:18:28 +0800 | [diff] [blame] | 9 | # Add ubi-fs configs |
Patrick Williams | ed104d4 | 2021-08-31 13:19:27 -0500 | [diff] [blame] | 10 | EXTRA_OEMESON:append = " \ |
| 11 | -Dactive-bmc-max-allowed=2 \ |
| 12 | -Dmedia-dir='/media' \ |
| 13 | " |
Lei YU | a974b47 | 2018-08-21 16:18:28 +0800 | [diff] [blame] | 14 | |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 15 | SYSTEMD_SERVICE:phosphor-software-manager-updater-ubi += " \ |
Adriana Kobylak | c763ceb | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 16 | obmc-flash-bmc-ubirw.service \ |
| 17 | obmc-flash-bmc-ubiro@.service \ |
Adriana Kobylak | c763ceb | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 18 | 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 Kobylak | c763ceb | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 24 | " |
| 25 | |
| 26 | # Name of the mtd device where the ubi volumes should be created |
| 27 | BMC_RW_MTD ??= "bmc" |
| 28 | BMC_RO_MTD ??= "bmc" |
| 29 | BMC_KERNEL_MTD ??= "bmc" |
Brad Bishop | dcd861c | 2019-09-24 21:16:09 -0400 | [diff] [blame] | 30 | DISTROOVERRIDES .= ":flash-${FLASH_SIZE}" |
Adriana Kobylak | c763ceb | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 31 | BMC_RW_SIZE ??= "0x600000" |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 32 | BMC_RW_SIZE:flash-131072 = "0x2000000" |
Adriana Kobylak | c763ceb | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 33 | SYSTEMD_SUBSTITUTIONS += "RW_MTD:${BMC_RW_MTD}:obmc-flash-bmc-ubirw.service" |
| 34 | SYSTEMD_SUBSTITUTIONS += "RO_MTD:${BMC_RO_MTD}:obmc-flash-bmc-ubiro@.service" |
| 35 | SYSTEMD_SUBSTITUTIONS += "KERNEL_MTD:${BMC_KERNEL_MTD}:obmc-flash-bmc-ubiro@.service" |
| 36 | SYSTEMD_SUBSTITUTIONS += "RW_SIZE:${BMC_RW_SIZE}:obmc-flash-bmc-ubirw.service" |
| 37 | |