feat(multiconfig): use multiconfig for building containers
This commit is contained in:
parent
06081b8151
commit
bf28dfe7b2
|
|
@ -0,0 +1,3 @@
|
||||||
|
MACHINE = "cn9130-cf-pro"
|
||||||
|
|
||||||
|
TMPDIR = "${TOPDIR}/tmp"
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
MACHINE = "container-arm64"
|
||||||
|
|
||||||
|
TMPDIR = "${TOPDIR}/tmp-container-arm64"
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
MACHINE = "qemuarm64"
|
||||||
|
|
||||||
|
TMPDIR = "${TOPDIR}/tmp"
|
||||||
|
|
@ -6,6 +6,7 @@
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
CONTAINER_IMAGE ??= ""
|
CONTAINER_IMAGE ??= ""
|
||||||
|
CONTAINER_CONFIG ??= ""
|
||||||
|
|
||||||
# At the moment, only podman is supported. Support for for `systemd-container`
|
# At the moment, only podman is supported. Support for for `systemd-container`
|
||||||
# or another runtime can be added later if needed
|
# or another runtime can be added later if needed
|
||||||
|
|
@ -35,14 +36,14 @@ PACKAGE_ARCH="${MACHINE_ARCH}"
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
INHIBIT_DEFAULT_DEPS = "1"
|
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}"
|
RDEPENDS:${PN} += "${CONTAINER_RUNTIME}"
|
||||||
|
|
||||||
|
|
||||||
# SystemD integration
|
# SystemD integration
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
inherit systemd
|
inherit systemd
|
||||||
SYSTEMD_SERVICE:${PN} ??= "${GENERATED_SYSTEMD_SERVICE_NAME}.service"
|
SYSTEMD_SERVICE:${PN} ??= "${GENERATED_SYSTEMD_SERVICE_NAME}.service"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
# track the version of this file when it was generated. This can safely be ignored if
|
||||||
# this doesn't mean anything to you.
|
# this doesn't mean anything to you.
|
||||||
CONF_VERSION = "2"
|
CONF_VERSION = "2"
|
||||||
|
|
||||||
|
BBMULTICONFIG = "container-arm64"
|
||||||
Loading…
Reference in New Issue