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 |
Adriana Kobylak | b3f2bb8 | 2020-05-06 13:14:28 -0500 | [diff] [blame] | 10 | EXTRA_OEMESON += "-Dactive-bmc-max-allowed=2" |
| 11 | EXTRA_OEMESON += "-Dmedia-dir='/media'" |
Lei YU | a974b47 | 2018-08-21 16:18:28 +0800 | [diff] [blame] | 12 | |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 13 | SYSTEMD_SERVICE:phosphor-software-manager-updater-ubi += " \ |
Adriana Kobylak | c763ceb | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 14 | obmc-flash-bmc-ubirw.service \ |
| 15 | obmc-flash-bmc-ubiro@.service \ |
Adriana Kobylak | c763ceb | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 16 | 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 Kobylak | c763ceb | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 22 | " |
| 23 | |
| 24 | # Name of the mtd device where the ubi volumes should be created |
| 25 | BMC_RW_MTD ??= "bmc" |
| 26 | BMC_RO_MTD ??= "bmc" |
| 27 | BMC_KERNEL_MTD ??= "bmc" |
Brad Bishop | dcd861c | 2019-09-24 21:16:09 -0400 | [diff] [blame] | 28 | FLASH_SIZE ?= "32768" |
| 29 | DISTROOVERRIDES .= ":flash-${FLASH_SIZE}" |
Adriana Kobylak | c763ceb | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 30 | BMC_RW_SIZE ??= "0x600000" |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 31 | BMC_RW_SIZE:flash-131072 = "0x2000000" |
Adriana Kobylak | c763ceb | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 32 | SYSTEMD_SUBSTITUTIONS += "RW_MTD:${BMC_RW_MTD}:obmc-flash-bmc-ubirw.service" |
| 33 | SYSTEMD_SUBSTITUTIONS += "RO_MTD:${BMC_RO_MTD}:obmc-flash-bmc-ubiro@.service" |
| 34 | SYSTEMD_SUBSTITUTIONS += "KERNEL_MTD:${BMC_KERNEL_MTD}:obmc-flash-bmc-ubiro@.service" |
| 35 | SYSTEMD_SUBSTITUTIONS += "RW_SIZE:${BMC_RW_SIZE}:obmc-flash-bmc-ubirw.service" |
| 36 | |