package/runc: enable uClibc support
PATCH v2 1/1 package/runc: enable uClibc support
fexecve was added to uClibc in 2019 in commit858ffad217076227089cc17eb832db0bd1497792.
Also containerd and docker can be used with uClibc.
Runtime tested on a Raspberry PI4 (64 Bit).
System compiled with Bootlin Toolchain.
Signed-off-by Waldemar Brodkorb <[email protected]>
---
v1 -> v2:
- fix comment in runc Config.in (Thomas Petazzoni)
- also check recursive dependencies - I already had that prepared while testing docker on my rpi. (Thomas Petazzoni)
--- package/containerd/Config.in | 5 ++--- package/docker-engine/Config.in | 4 +--- package/runc/Config.in | 5 ++--- 3 files changed, 5 insertions(+), 9 deletions(-)
package/containerd/Config.in +2 -3
@@ -3,7 +3,6 @@ config BR2_PACKAGE_CONTAINERD depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS depends on BR2_PACKAGE_HOST_GO_TARGET_CGO_LINKING_SUPPORTS depends on BR2_TOOLCHAIN_HAS_THREADS - depends on !BR2_TOOLCHAIN_USES_UCLIBC # runc depends on BR2_USE_MMU # util-linux select BR2_PACKAGE_HOST_GO select BR2_PACKAGE_RUNC if !BR2_PACKAGE_CRUN # runtime dependency
@@ -62,8 +61,8 @@ config BR2_PACKAGE_CONTAINERD_CRI endif -comment "containerd needs a glibc or musl toolchain w/ threads" +comment "containerd needs a toolchain w/ threads" depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS depends on BR2_PACKAGE_HOST_GO_TARGET_CGO_LINKING_SUPPORTS depends on BR2_USE_MMU - depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_TOOLCHAIN_USES_UCLIBC + depends on !BR2_TOOLCHAIN_HAS_THREADS
package/docker-engine/Config.in +1 -3
@@ -4,7 +4,6 @@ config BR2_PACKAGE_DOCKER_ENGINE depends on BR2_PACKAGE_HOST_GO_TARGET_CGO_LINKING_SUPPORTS depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_2 - depends on !BR2_TOOLCHAIN_USES_UCLIBC # containerd -> runc depends on BR2_USE_MMU # containerd depends on !BR2_PACKAGE_CGROUPFS_MOUNT depends on BR2_PACKAGE_LIBSECCOMP_ARCH_SUPPORTS # libseccomp
@@ -79,11 +78,10 @@ config BR2_PACKAGE_DOCKER_ENGINE_DOCKER_INIT_NAME endif -comment "docker-engine needs a glibc or musl toolchain w/ threads, headers >= 5.2" +comment "docker-engine needs a toolchain w/ threads, headers >= 5.2" depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS depends on BR2_PACKAGE_HOST_GO_TARGET_CGO_LINKING_SUPPORTS depends on BR2_PACKAGE_LIBSECCOMP_ARCH_SUPPORTS depends on !BR2_TOOLCHAIN_HAS_THREADS || \ - BR2_TOOLCHAIN_USES_UCLIBC || \ !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_2 depends on BR2_USE_MMU
package/runc/Config.in +2 -3
@@ -3,7 +3,6 @@ config BR2_PACKAGE_RUNC depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS depends on BR2_PACKAGE_HOST_GO_TARGET_CGO_LINKING_SUPPORTS depends on BR2_TOOLCHAIN_HAS_THREADS - depends on !BR2_TOOLCHAIN_USES_UCLIBC # no fexecve select BR2_PACKAGE_HOST_GO help runC is a CLI tool for spawning and running containers
@@ -11,7 +10,7 @@ config BR2_PACKAGE_RUNC https://github.com/opencontainers/runc -comment "runc needs a glibc or musl toolchain w/ threads" +comment "runc needs a toolchain w/ threads" depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS && \ BR2_PACKAGE_HOST_GO_TARGET_CGO_LINKING_SUPPORTS - depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_TOOLCHAIN_USES_UCLIBC + depends on !BR2_TOOLCHAIN_HAS_THREADS
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Petazzoni via buildroot
AppliedQuoted 9 lines · Waldemar Brodkorb
fexecve was added to uClibc in 2019 in commit
858ffad217076227089cc17eb832db0bd1497792.Also containerd and docker can be used with uClibc.
Runtime tested on a Raspberry PI4 (64 Bit).
System compiled with Bootlin Toolchain.Signed-off-by Waldemar Brodkorb <[email protected]>
Applied to master, thanks!
Best regards,
Thomas Petazzoni
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot