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 | |
| 9 | FILES_${PN}-updater-ubi += " \ |
Adriana Kobylak | c763ceb | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 10 | /usr/local \ |
| 11 | " |
| 12 | |
Lei YU | a974b47 | 2018-08-21 16:18:28 +0800 | [diff] [blame] | 13 | # Remove default configs |
| 14 | EXTRA_OECONF_remove_df-obmc-ubi-fs += " \ |
Lei YU | 8a56da7 | 2018-08-21 16:22:20 +0800 | [diff] [blame] | 15 | ACTIVE_BMC_MAX_ALLOWED=1 \ |
Lei YU | a974b47 | 2018-08-21 16:18:28 +0800 | [diff] [blame] | 16 | MEDIA_DIR=/run/media \ |
| 17 | " |
| 18 | |
| 19 | # Add ubi-fs configs |
| 20 | EXTRA_OECONF_append_df-obmc-ubi-fs += " \ |
Lei YU | 8a56da7 | 2018-08-21 16:22:20 +0800 | [diff] [blame] | 21 | ACTIVE_BMC_MAX_ALLOWED=2 \ |
Lei YU | a974b47 | 2018-08-21 16:18:28 +0800 | [diff] [blame] | 22 | MEDIA_DIR=/media \ |
| 23 | " |
| 24 | |
Adriana Kobylak | c763ceb | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 25 | SYSTEMD_SERVICE_phosphor-software-manager-updater-ubi += " \ |
| 26 | obmc-flash-bmc-ubirw.service \ |
| 27 | obmc-flash-bmc-ubiro@.service \ |
Adriana Kobylak | c763ceb | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 28 | obmc-flash-bmc-ubirw-remove.service \ |
| 29 | obmc-flash-bmc-ubiro-remove@.service \ |
| 30 | obmc-flash-bmc-ubiremount.service \ |
| 31 | obmc-flash-bmc-updateubootvars@.service \ |
| 32 | obmc-flash-bmc-cleanup.service \ |
| 33 | obmc-flash-bmc-mirroruboot.service \ |
| 34 | reboot-guard-enable.service \ |
| 35 | reboot-guard-disable.service \ |
Andrew Geissler | 5c14d4e | 2019-05-31 13:41:54 +0000 | [diff] [blame] | 36 | force-reboot.service \ |
Adriana Kobylak | c763ceb | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 37 | usr-local.mount \ |
| 38 | " |
| 39 | |
| 40 | # Name of the mtd device where the ubi volumes should be created |
| 41 | BMC_RW_MTD ??= "bmc" |
| 42 | BMC_RO_MTD ??= "bmc" |
| 43 | BMC_KERNEL_MTD ??= "bmc" |
| 44 | BMC_RW_SIZE ??= "0x600000" |
| 45 | SYSTEMD_SUBSTITUTIONS += "RW_MTD:${BMC_RW_MTD}:obmc-flash-bmc-ubirw.service" |
| 46 | SYSTEMD_SUBSTITUTIONS += "RO_MTD:${BMC_RO_MTD}:obmc-flash-bmc-ubiro@.service" |
| 47 | SYSTEMD_SUBSTITUTIONS += "KERNEL_MTD:${BMC_KERNEL_MTD}:obmc-flash-bmc-ubiro@.service" |
| 48 | SYSTEMD_SUBSTITUTIONS += "RW_SIZE:${BMC_RW_SIZE}:obmc-flash-bmc-ubirw.service" |
| 49 | |
Adriana Kobylak | c763ceb | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 50 | do_install_append() { |
Adriana Kobylak | c763ceb | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 51 | install -d ${D}/usr/local |
Adriana Kobylak | c763ceb | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 52 | } |