Adriana Kobylak | 3aeee11 | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 1 | # UBI-specific configuration for the phosphor-manager-software package |
| 2 | |
Lei YU | dae52f3 | 2018-05-23 10:53:24 +0800 | [diff] [blame] | 3 | PACKAGECONFIG_append = " ubifs_layout" |
| 4 | |
Adriana Kobylak | 3aeee11 | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 5 | RDEPENDS_phosphor-software-manager-updater-ubi += " \ |
Adriana Kobylak | 3aeee11 | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 6 | mtd-utils-ubifs \ |
| 7 | " |
| 8 | |
| 9 | FILES_${PN}-updater-ubi += " \ |
Adriana Kobylak | 3aeee11 | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 10 | /usr/local \ |
| 11 | " |
| 12 | |
Lei YU | f43eb6e | 2018-08-21 16:18:28 +0800 | [diff] [blame] | 13 | # Remove default configs |
| 14 | EXTRA_OECONF_remove_df-obmc-ubi-fs += " \ |
Lei YU | bf3edf1 | 2018-08-21 16:22:20 +0800 | [diff] [blame^] | 15 | ACTIVE_BMC_MAX_ALLOWED=1 \ |
Lei YU | f43eb6e | 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 | bf3edf1 | 2018-08-21 16:22:20 +0800 | [diff] [blame^] | 21 | ACTIVE_BMC_MAX_ALLOWED=2 \ |
Lei YU | f43eb6e | 2018-08-21 16:18:28 +0800 | [diff] [blame] | 22 | MEDIA_DIR=/media \ |
| 23 | " |
| 24 | |
Adriana Kobylak | 3aeee11 | 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 | 3aeee11 | 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 \ |
| 36 | usr-local.mount \ |
| 37 | " |
| 38 | |
| 39 | # Name of the mtd device where the ubi volumes should be created |
| 40 | BMC_RW_MTD ??= "bmc" |
| 41 | BMC_RO_MTD ??= "bmc" |
| 42 | BMC_KERNEL_MTD ??= "bmc" |
| 43 | BMC_RW_SIZE ??= "0x600000" |
| 44 | SYSTEMD_SUBSTITUTIONS += "RW_MTD:${BMC_RW_MTD}:obmc-flash-bmc-ubirw.service" |
| 45 | SYSTEMD_SUBSTITUTIONS += "RO_MTD:${BMC_RO_MTD}:obmc-flash-bmc-ubiro@.service" |
| 46 | SYSTEMD_SUBSTITUTIONS += "KERNEL_MTD:${BMC_KERNEL_MTD}:obmc-flash-bmc-ubiro@.service" |
| 47 | SYSTEMD_SUBSTITUTIONS += "RW_SIZE:${BMC_RW_SIZE}:obmc-flash-bmc-ubirw.service" |
| 48 | |
Adriana Kobylak | 3aeee11 | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 49 | SRC_URI += "file://synclist" |
| 50 | do_install_append() { |
Adriana Kobylak | 3aeee11 | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 51 | install -d ${D}/usr/local |
| 52 | |
| 53 | if [ -f ${WORKDIR}/build/phosphor-sync-software-manager ]; then |
| 54 | install -d ${D}${sysconfdir} |
| 55 | install -m 0644 ${WORKDIR}/synclist ${D}${sysconfdir}/synclist |
| 56 | fi |
| 57 | } |