mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
When it detects it runs under systemd, conmon will want to log to the
journal. However, it needs to be linked with libsystemd to do so and if
not, will error out:
Feb 22 11:10:03 buildroot conmon[199]: conmon 3b462ce6f2cc64f75c42 <error>: Include journald in compilation path to log to systemd journal
This prevents starting any container.
Add a dependency to systemd when it is enabled.
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Christian Stewart <christian@aperture.us>
Signed-off-by: Julien Olivain <ju.o@free.fr>
42 lines
1.1 KiB
Makefile
42 lines
1.1 KiB
Makefile
################################################################################
|
|
#
|
|
# 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))
|