All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/umtprd: expose package build options
@ 2026-06-04 21:14 Nevo Hed via buildroot
  2026-10-13  8:34 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 4+ messages in thread
From: Nevo Hed via buildroot @ 2026-06-04 21:14 UTC (permalink / raw)
  To: buildroot; +Cc: Nevo Hed, Paul Cercueil

Primary impetus: BR2_PACKAGE_UMTPRD_SYSTEMD_NOTIFY:
    By default umtprd does not communicate daemon readyness.  Version
    1.6.8 added a build option that enables creating a Type=notify
    systemd service.

Added two other relevant build options that were available in the
Makefile:
- BR2_PACKAGE_UMTPRD_DEBUG
- BR2_PACKAGE_UMTPRD_SYSLOG

Signed-off-by: Nevo Hed <nhed+buildroot@starry.com>
---
 package/umtprd/Config.in | 19 ++++++++++++++++++-
 package/umtprd/umtprd.mk | 14 +++++++++++++-
 2 files changed, 31 insertions(+), 2 deletions(-)

diff --git a/package/umtprd/Config.in b/package/umtprd/Config.in
index 24bf119549..dff5a44583 100644
--- a/package/umtprd/Config.in
+++ b/package/umtprd/Config.in
@@ -1,4 +1,4 @@
-config BR2_PACKAGE_UMTPRD
+menuconfig BR2_PACKAGE_UMTPRD
 	bool "umtprd"
 	depends on BR2_TOOLCHAIN_HAS_THREADS
 	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15
@@ -7,5 +7,22 @@ config BR2_PACKAGE_UMTPRD
 
 	  https://github.com/viveris/uMTP-Responder
 
+if BR2_PACKAGE_UMTPRD
+
+if BR2_PACKAGE_SYSTEMD
+
+config BR2_PACKAGE_UMTPRD_SYSTEMD_NOTIFY
+	bool "Tell Systemd when uMTP-Responder is ready "
+
+endif
+
+config BR2_PACKAGE_UMTPRD_DEBUG
+	bool "Enable debug"
+
+config BR2_PACKAGE_UMTPRD_SYSLOG
+	bool "Send output to syslog"
+
+endif
+
 comment "umtprd needs a toolchain w/ threads, headers >= 3.15"
 	depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15
diff --git a/package/umtprd/umtprd.mk b/package/umtprd/umtprd.mk
index 1a2b387219..06c75d5c55 100644
--- a/package/umtprd/umtprd.mk
+++ b/package/umtprd/umtprd.mk
@@ -9,8 +9,20 @@ UMTPRD_SITE = https://github.com/viveris/uMTP-Responder/archive
 UMTPRD_LICENSE = GPL-3.0+
 UMTPRD_LICENSE_FILES = LICENSE
 
+ifneq ($(BR2_PACKAGE_UMTPRD_SYSTEMD_NOTIFY),"")
+UMTPRD_BUILD_OPTS += SYSTEMD=1
+endif
+
+ifneq ($(BR2_PACKAGE_UMTPRD_DEBUG),"")
+UMTPRD_BUILD_OPTS += DEBUG=1
+endif
+
+ifneq ($(BR2_PACKAGE_UMTPRD_SYSLOG),"")
+UMTPRD_BUILD_OPTS += USE_SYSLOG=1
+endif
+
 define UMTPRD_BUILD_CMDS
-	$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
+	$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) $(UMTPRD_BUILD_OPTS)
 endef
 
 define UMTPRD_INSTALL_TARGET_CMDS
-- 
2.53.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-10-13 13:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-04 21:14 [Buildroot] [PATCH] package/umtprd: expose package build options Nevo Hed via buildroot
2026-10-13  8:34 ` Thomas Petazzoni via buildroot
2026-10-13 11:12   ` Peter Korsgaard
2026-10-13 13:04     ` Thomas Petazzoni via buildroot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.