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 += " \ |
| 15 | MEDIA_DIR=/run/media \ |
| 16 | " |
| 17 | |
| 18 | # Add ubi-fs configs |
| 19 | EXTRA_OECONF_append_df-obmc-ubi-fs += " \ |
| 20 | MEDIA_DIR=/media \ |
| 21 | " |
| 22 | |
Adriana Kobylak | 3aeee11 | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 23 | SYSTEMD_SERVICE_phosphor-software-manager-updater-ubi += " \ |
| 24 | obmc-flash-bmc-ubirw.service \ |
| 25 | obmc-flash-bmc-ubiro@.service \ |
Adriana Kobylak | 3aeee11 | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 26 | obmc-flash-bmc-ubirw-remove.service \ |
| 27 | obmc-flash-bmc-ubiro-remove@.service \ |
| 28 | obmc-flash-bmc-ubiremount.service \ |
| 29 | obmc-flash-bmc-updateubootvars@.service \ |
| 30 | obmc-flash-bmc-cleanup.service \ |
| 31 | obmc-flash-bmc-mirroruboot.service \ |
| 32 | reboot-guard-enable.service \ |
| 33 | reboot-guard-disable.service \ |
| 34 | usr-local.mount \ |
| 35 | " |
| 36 | |
| 37 | # Name of the mtd device where the ubi volumes should be created |
| 38 | BMC_RW_MTD ??= "bmc" |
| 39 | BMC_RO_MTD ??= "bmc" |
| 40 | BMC_KERNEL_MTD ??= "bmc" |
| 41 | BMC_RW_SIZE ??= "0x600000" |
| 42 | SYSTEMD_SUBSTITUTIONS += "RW_MTD:${BMC_RW_MTD}:obmc-flash-bmc-ubirw.service" |
| 43 | SYSTEMD_SUBSTITUTIONS += "RO_MTD:${BMC_RO_MTD}:obmc-flash-bmc-ubiro@.service" |
| 44 | SYSTEMD_SUBSTITUTIONS += "KERNEL_MTD:${BMC_KERNEL_MTD}:obmc-flash-bmc-ubiro@.service" |
| 45 | SYSTEMD_SUBSTITUTIONS += "RW_SIZE:${BMC_RW_SIZE}:obmc-flash-bmc-ubirw.service" |
| 46 | |
Adriana Kobylak | 3aeee11 | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 47 | SRC_URI += "file://synclist" |
| 48 | do_install_append() { |
Adriana Kobylak | 3aeee11 | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 49 | install -d ${D}/usr/local |
| 50 | |
| 51 | if [ -f ${WORKDIR}/build/phosphor-sync-software-manager ]; then |
| 52 | install -d ${D}${sysconfdir} |
| 53 | install -m 0644 ${WORKDIR}/synclist ${D}${sysconfdir}/synclist |
| 54 | fi |
| 55 | } |