blob: 2e81d63f46712bb6d847c8a453fbf598164abaf4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
DEPENDS:append:class-target = " cni"
PACKAGES:prepend = "${PN}-cni "
FILES:${PN}-cni = "${sysconfdir}/cni/net.d/*"
RDEPENDS:${PN}-cni = "cni"
do_install:append() {
if [ -z "${CNI_NETWORKING_FILES}" ]; then
bbfatal "cni-networking was inherited, but no networking configuration was provided via CNI_NETWORKING_FILES"
fi
install -d "${D}/${sysconfdir}/cni/net.d/"
for f in ${CNI_NETWORKING_FILES}; do
conf_name="$(basename $f)"
install -D -m 0644 "$f" "${D}/${sysconfdir}/cni/net.d/$conf_name"
done
}
|