mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 20:59:41 +02:00
cni: introduce cni networking bbclass
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
parent
486cdac90e
commit
3e66fce9ac
18
classes/cni_networking.bbclass
Normal file
18
classes/cni_networking.bbclass
Normal file
|
@ -0,0 +1,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
|
||||
}
|
Loading…
Reference in New Issue
Block a user