From 6e8e5628bfc4ad2fa02d3d3adf158aa1bd322c61 Mon Sep 17 00:00:00 2001 From: Jose Quaresma Date: Fri, 12 Apr 2024 08:32:15 +0100 Subject: [PATCH] base: layer: adapt tegra docker-ce to docker-moby The meta-virt scarthgap branch has droped the docker-ce and only keeps docker-moby so we need to adapt for what we have in our kirkstone branch. The docker-moby_%.bbappend is a copy from meta-tegra [1] rev 34a4c316 [1] external/virtualization-layer/recipes-containers/docker/docker-ce_%.bbappend Signed-off-by: Jose Quaresma --- meta-lmp-base/conf/layer.conf | 3 +++ .../docker/docker-moby_%.bbappend | 25 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 meta-lmp-bsp/dynamic-layers/tegra/recipes-containers/docker/docker-moby_%.bbappend diff --git a/meta-lmp-base/conf/layer.conf b/meta-lmp-base/conf/layer.conf index c01cf90aca..b3d6831031 100644 --- a/meta-lmp-base/conf/layer.conf +++ b/meta-lmp-base/conf/layer.conf @@ -60,3 +60,6 @@ BBMASK:append = " \ /meta-virtualization/dynamic-layers/raspberrypi/recipes-kernel/linux/linux-yocto_6.6.bbappend \ /meta-virtualization/dynamic-layers/xilinx/recipes-bsp/u-boot/u-boot-xlnx-scr.bbappend \ " + +# To use the meta-virt scarthgap branch we need to replace the docker-ce by docker-moby +BBMASK:append = "/meta-tegra/external/virtualization-layer/recipes-containers/docker/docker-ce_%.bbappend" diff --git a/meta-lmp-bsp/dynamic-layers/tegra/recipes-containers/docker/docker-moby_%.bbappend b/meta-lmp-bsp/dynamic-layers/tegra/recipes-containers/docker/docker-moby_%.bbappend new file mode 100644 index 0000000000..fb697a1cad --- /dev/null +++ b/meta-lmp-bsp/dynamic-layers/tegra/recipes-containers/docker/docker-moby_%.bbappend @@ -0,0 +1,25 @@ +do_install:append:tegra() { + if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then + install -d ${D}${sysconfdir}/init.d + install -m 0755 ${WORKDIR}/docker.init ${D}${sysconfdir}/init.d/docker.init + fi +} + +RRECOMMENDS:${PN}:append:tegra = " \ + kernel-module-br-netfilter \ + kernel-module-esp4 \ + kernel-module-ip-vs \ + kernel-module-ip-vs-rr \ + kernel-module-macvlan \ + kernel-module-nf-conntrack-netlink \ + kernel-module-nf-nat-ftp \ + kernel-module-nf-nat-redirect \ + kernel-module-nf-nat-tftp \ + kernel-module-overlay \ + kernel-module-veth \ + kernel-module-xt-addrtype \ + kernel-module-xt-conntrack \ + kernel-module-xt-redirect \ +" + +PACKAGE_ARCH:tegra = "${TEGRA_PKGARCH}"