Adriana Kobylak | c763ceb | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 1 | # UBI-specific configuration for the phosphor-manager-software package |
| 2 | |
Lei YU | 1873aa1 | 2018-05-23 10:53:24 +0800 | [diff] [blame] | 3 | PACKAGECONFIG_append = " ubifs_layout" |
| 4 | |
Adriana Kobylak | c763ceb | 2018-06-04 13:06:52 -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 | # Remove default configs |
| 10 | EXTRA_OECONF_remove_df-obmc-ubi-fs += " \ |
Lei YU | 8a56da7 | 2018-08-21 16:22:20 +0800 | [diff] [blame] | 11 | ACTIVE_BMC_MAX_ALLOWED=1 \ |
Lei YU | a974b47 | 2018-08-21 16:18:28 +0800 | [diff] [blame] | 12 | MEDIA_DIR=/run/media \ |
| 13 | " |
| 14 | |
| 15 | # Add ubi-fs configs |
| 16 | EXTRA_OECONF_append_df-obmc-ubi-fs += " \ |
Lei YU | 8a56da7 | 2018-08-21 16:22:20 +0800 | [diff] [blame] | 17 | ACTIVE_BMC_MAX_ALLOWED=2 \ |
Lei YU | a974b47 | 2018-08-21 16:18:28 +0800 | [diff] [blame] | 18 | MEDIA_DIR=/media \ |
| 19 | " |
| 20 | |
Adriana Kobylak | c763ceb | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 21 | SYSTEMD_SERVICE_phosphor-software-manager-updater-ubi += " \ |
| 22 | obmc-flash-bmc-ubirw.service \ |
| 23 | obmc-flash-bmc-ubiro@.service \ |
Adriana Kobylak | c763ceb | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 24 | obmc-flash-bmc-ubirw-remove.service \ |
| 25 | obmc-flash-bmc-ubiro-remove@.service \ |
| 26 | obmc-flash-bmc-ubiremount.service \ |
| 27 | obmc-flash-bmc-updateubootvars@.service \ |
| 28 | obmc-flash-bmc-cleanup.service \ |
| 29 | obmc-flash-bmc-mirroruboot.service \ |
| 30 | reboot-guard-enable.service \ |
| 31 | reboot-guard-disable.service \ |
Andrew Geissler | 5c14d4e | 2019-05-31 13:41:54 +0000 | [diff] [blame] | 32 | force-reboot.service \ |
Adriana Kobylak | c763ceb | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 33 | " |
| 34 | |
| 35 | # Name of the mtd device where the ubi volumes should be created |
| 36 | BMC_RW_MTD ??= "bmc" |
| 37 | BMC_RO_MTD ??= "bmc" |
| 38 | BMC_KERNEL_MTD ??= "bmc" |
Brad Bishop | dcd861c | 2019-09-24 21:16:09 -0400 | [diff] [blame] | 39 | FLASH_SIZE ?= "32768" |
| 40 | DISTROOVERRIDES .= ":flash-${FLASH_SIZE}" |
Adriana Kobylak | c763ceb | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 41 | BMC_RW_SIZE ??= "0x600000" |
Brad Bishop | dcd861c | 2019-09-24 21:16:09 -0400 | [diff] [blame] | 42 | BMC_RW_SIZE_flash-131072 = "0x2000000" |
Adriana Kobylak | c763ceb | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 43 | SYSTEMD_SUBSTITUTIONS += "RW_MTD:${BMC_RW_MTD}:obmc-flash-bmc-ubirw.service" |
| 44 | SYSTEMD_SUBSTITUTIONS += "RO_MTD:${BMC_RO_MTD}:obmc-flash-bmc-ubiro@.service" |
| 45 | SYSTEMD_SUBSTITUTIONS += "KERNEL_MTD:${BMC_KERNEL_MTD}:obmc-flash-bmc-ubiro@.service" |
| 46 | SYSTEMD_SUBSTITUTIONS += "RW_SIZE:${BMC_RW_SIZE}:obmc-flash-bmc-ubirw.service" |
| 47 | |