Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
From 6cfcea9a16017f2a49cd792d39ebd9c86395946a Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Wed, 1 Nov 2023 16:45:21 +0100
|
||||
Subject: [PATCH] src/seccomp_notify.c: fix static build
|
||||
|
||||
Fix the following static build failure raised even when seccomp is
|
||||
disabled:
|
||||
|
||||
src/seccomp_notify.c:10:10: fatal error: dlfcn.h: No such file or directory
|
||||
10 | #include <dlfcn.h>
|
||||
| ^~~~~~~~~
|
||||
|
||||
Fixes:
|
||||
- http://autobuild.buildroot.org/results/71b4f35b3150183c7b44bc3897f01b0019e10ebe
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Upstream: https://github.com/containers/conmon/issues/462
|
||||
---
|
||||
src/seccomp_notify.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/seccomp_notify.c b/src/seccomp_notify.c
|
||||
index 8d34d9d..bf738ea 100644
|
||||
--- a/src/seccomp_notify.c
|
||||
+++ b/src/seccomp_notify.c
|
||||
@@ -7,7 +7,6 @@
|
||||
|
||||
#include <errno.h>
|
||||
#include <sys/ioctl.h>
|
||||
-#include <dlfcn.h>
|
||||
#include <sys/wait.h>
|
||||
#include <sys/mount.h>
|
||||
#include <signal.h>
|
||||
@@ -19,6 +18,7 @@
|
||||
|
||||
#ifdef USE_SECCOMP
|
||||
|
||||
+#include <dlfcn.h>
|
||||
#include <sys/sysmacros.h>
|
||||
#include <linux/seccomp.h>
|
||||
#include <seccomp.h>
|
||||
--
|
||||
2.42.0
|
||||
|
||||
14
package/conmon/Config.in
Normal file
14
package/conmon/Config.in
Normal file
@@ -0,0 +1,14 @@
|
||||
config BR2_PACKAGE_CONMON
|
||||
bool "conmon"
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
|
||||
depends on BR2_USE_MMU # libglib2
|
||||
depends on BR2_USE_WCHAR # libglib2
|
||||
select BR2_PACKAGE_LIBGLIB2
|
||||
help
|
||||
Conmon is an OCI container runtime monitor.
|
||||
|
||||
https://github.com/containers/conmon
|
||||
|
||||
comment "conmon needs a toolchain w/ threads, wchar"
|
||||
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_USE_MMU
|
||||
3
package/conmon/conmon.hash
Normal file
3
package/conmon/conmon.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally computed
|
||||
sha256 e72c090210a03ca3b43a0fad53f15bca90bbee65105c412468009cf3a5988325 conmon-2.1.8.tar.gz
|
||||
sha256 9c9d771d4004725237a31ada889fe06c85a24fd0a29e41825181ab4cde54f016 LICENSE
|
||||
41
package/conmon/conmon.mk
Normal file
41
package/conmon/conmon.mk
Normal file
@@ -0,0 +1,41 @@
|
||||
################################################################################
|
||||
#
|
||||
# conmon
|
||||
#
|
||||
################################################################################
|
||||
|
||||
CONMON_VERSION = 2.1.8
|
||||
CONMON_SITE = $(call github,containers,conmon,v$(CONMON_VERSION))
|
||||
CONMON_LICENSE = Apache-2.0
|
||||
CONMON_LICENSE_FILES = LICENSE
|
||||
|
||||
CONMON_DEPENDENCIES = host-pkgconf libglib2
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBSECCOMP)$(BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0):$(BR2_STATIC_LIBS),yy:)
|
||||
CONMON_DISABLE_SECCOMP = 0
|
||||
CONMON_DEPENDENCIES += libseccomp
|
||||
else
|
||||
CONMON_DISABLE_SECCOMP = 1
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
||||
CONMON_DEPENDENCIES += systemd
|
||||
endif
|
||||
|
||||
define CONMON_CONFIGURE_CMDS
|
||||
printf '#!/bin/bash\necho "$(CONMON_DISABLE_SECCOMP)"\n' > \
|
||||
$(@D)/hack/seccomp-notify.sh
|
||||
chmod +x $(@D)/hack/seccomp-notify.sh
|
||||
endef
|
||||
|
||||
define CONMON_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC)" \
|
||||
CFLAGS="$(TARGET_CFLAGS) -std=c99" \
|
||||
LDFLAGS="$(TARGET_LDFLAGS)" -C $(@D) bin/conmon
|
||||
endef
|
||||
|
||||
define CONMON_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -D -m 755 $(@D)/bin/conmon $(TARGET_DIR)/usr/bin/conmon
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user