George Hung | d6d41d2 | 2020-06-04 19:54:41 +0800 | [diff] [blame^] | 1 | inherit obmc-phosphor-systemd |
| 2 | |
| 3 | FILESEXTRAPATHS_prepend_gbs := "${THISDIR}/${PN}:" |
| 4 | |
| 5 | SRC_URI_append_gbs = " file://phosphor-gpio-presence@.service.replace" |
| 6 | |
| 7 | TMPL_SLIMSASCABLE = "phosphor-gpio-presence@.service" |
| 8 | INSTFMT_SLIMSASCABLE = "phosphor-gpio-presence@{0}.service" |
| 9 | SLIMSASCABLE_TGT = "multi-user.target" |
| 10 | FMT_SLIMSASCABLE = "../${TMPL_SLIMSASCABLE}:${SLIMSASCABLE_TGT}.requires/${INSTFMT_SLIMSASCABLE}" |
| 11 | SYSTEMD_ENVIRONMENT_FILE_${PN}_append_gbs +="obmc/gpio/slimsas-cable-0.conf" |
| 12 | SYSTEMD_ENVIRONMENT_FILE_${PN}_append_gbs +="obmc/gpio/slimsas-cable-1.conf" |
| 13 | SYSTEMD_ENVIRONMENT_FILE_${PN}_append_gbs +="obmc/gpio/slimsas-cable-2.conf" |
| 14 | SYSTEMD_ENVIRONMENT_FILE_${PN}_append_gbs +="obmc/gpio/slimsas-cable-3.conf" |
| 15 | GBS_OBMC_SLIMSAS_CABLE_INSTANCES = "0 1 2 3" |
| 16 | |
| 17 | SYSTEMD_LINK_${PN}-presence_append_gbs = " ${@compose_list(d, 'FMT_SLIMSASCABLE', 'GBS_OBMC_SLIMSAS_CABLE_INSTANCES')}" |
| 18 | |
| 19 | GBS_SLIMSASCABLE_ENV_FMT = "obmc/gpio/slimsas-cable-{0}.conf" |
| 20 | |
| 21 | SYSTEMD_ENVIRONMENT_FILE_${PN}-presence_gbs = " ${@compose_list(d, 'GBS_SLIMSASCABLE_ENV_FMT', 'GBS_OBMC_SLIMSAS_CABLE_INSTANCES')}" |
| 22 | |
| 23 | do_install_append_gbs() { |
| 24 | install -d ${D}${systemd_system_unitdir} |
| 25 | install -m 0644 ${WORKDIR}/phosphor-gpio-presence@.service.replace ${D}${systemd_system_unitdir}/phosphor-gpio-presence@.service |
| 26 | } |