feat(multiconfig): use multiconfig for building containers

This commit is contained in:
Patrick Vogelaar 2023-03-03 10:05:57 +01:00
parent 06081b8151
commit bf28dfe7b2
5 changed files with 14 additions and 2 deletions

View File

@ -0,0 +1,3 @@
MACHINE = "cn9130-cf-pro"
TMPDIR = "${TOPDIR}/tmp"

View File

@ -0,0 +1,3 @@
MACHINE = "container-arm64"
TMPDIR = "${TOPDIR}/tmp-container-arm64"

View File

@ -0,0 +1,3 @@
MACHINE = "qemuarm64"
TMPDIR = "${TOPDIR}/tmp"

View File

@ -6,6 +6,7 @@
# ==============================================================================
CONTAINER_IMAGE ??= ""
CONTAINER_CONFIG ??= ""
# At the moment, only podman is supported. Support for for `systemd-container`
# or another runtime can be added later if needed
@ -35,7 +36,7 @@ PACKAGE_ARCH="${MACHINE_ARCH}"
# ==============================================================================
INHIBIT_DEFAULT_DEPS = "1"
do_install[depends] += "${CONTAINER_IMAGE}:do_image_complete"
do_install[mcdepends] += "mc::${CONTAINER_CONFIG}:${CONTAINER_IMAGE}:do_image_complete"
RDEPENDS:${PN} += "${CONTAINER_RUNTIME}"

View File

@ -209,3 +209,5 @@ PACKAGECONFIG:append:pn-nativesdk-qemu = " sdl"
# track the version of this file when it was generated. This can safely be ignored if
# this doesn't mean anything to you.
CONF_VERSION = "2"
BBMULTICONFIG = "container-arm64"