Potin Lai | aaa7385 | 2024-01-09 19:43:37 +0800 | [diff] [blame] | 1 | LICENSE = "Apache-2.0" |
| 2 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
| 3 | |
| 4 | inherit obmc-phosphor-systemd |
| 5 | |
| 6 | RDEPENDS:${PN} += " bash" |
| 7 | |
| 8 | SRC_URI += " \ |
| 9 | file://check-ipv6-ll \ |
| 10 | file://network-wait-ipv6-ll@.service \ |
| 11 | " |
| 12 | |
| 13 | do_install() { |
| 14 | install -d ${D}${libexecdir} |
| 15 | install -m 0755 ${WORKDIR}/check-ipv6-ll ${D}${libexecdir} |
| 16 | } |
| 17 | |
| 18 | NCSI_ETH_INTF ?= "eth0" |
| 19 | |
| 20 | TGT = "${SYSTEMD_DEFAULT_TARGET}" |
| 21 | NCSI_WAIT_IPV6_LL_INSTFMT="../network-wait-ipv6-ll@.service:${TGT}.wants/network-wait-ipv6-ll@{0}.service" |
| 22 | |
| 23 | SYSTEMD_SERVICE:${PN} += "network-wait-ipv6-ll@.service" |
| 24 | SYSTEMD_LINK:${PN} += "${@compose_list(d, 'NCSI_WAIT_IPV6_LL_INSTFMT', 'NCSI_ETH_INTF')}" |