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