All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/minicom: make default port and lock directory config options
@ 2019-11-21 15:30 James Byrne
  2019-11-21 17:35 ` Giulio Benetti
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: James Byrne @ 2019-11-21 15:30 UTC (permalink / raw)
  To: buildroot

Minicom's configure script will set values for the default port and lock
directory based on the configuration of the host machine, which is not
useful for cross-compiling, so make them config options that can be set
to suit the target system.

Signed-off-by: James Byrne <james.byrne@origamienergy.com>
---
 package/minicom/Config.in  | 16 ++++++++++++++++
 package/minicom/minicom.mk |  3 +++
 2 files changed, 19 insertions(+)

diff --git a/package/minicom/Config.in b/package/minicom/Config.in
index efc4f1b709..cb25d5710e 100644
--- a/package/minicom/Config.in
+++ b/package/minicom/Config.in
@@ -14,3 +14,19 @@ config BR2_PACKAGE_MINICOM
 comment "minicom needs a toolchain w/ wchar"
 	depends on BR2_USE_MMU
 	depends on !BR2_USE_WCHAR
+
+if BR2_PACKAGE_MINICOM
+
+config BR2_PACKAGE_MINICOM_DFL_PORT
+	string "Default port"
+	default "/dev/ttyS1"
+	help
+	  This option defines Minicom's default modem device.
+
+config BR2_PACKAGE_MINICOM_LOCK_DIR
+	string "Lock directory"
+	default "/var/lock"
+	help
+	  This option defines the com line lock directory.
+
+endif
diff --git a/package/minicom/minicom.mk b/package/minicom/minicom.mk
index 11d69d4d0e..7892b1f669 100644
--- a/package/minicom/minicom.mk
+++ b/package/minicom/minicom.mk
@@ -22,4 +22,7 @@ define MINICOM_MKDIR_M4
 endef
 MINICOM_POST_PATCH_HOOKS += MINICOM_MKDIR_M4
 
+MINICOM_CONF_OPTS = --enable-dfl-port=$(BR2_PACKAGE_MINICOM_DFL_PORT) \
+	--enable-lock-dir=$(BR2_PACKAGE_MINICOM_LOCK_DIR)
+
 $(eval $(autotools-package))
-- 
2.24.0

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

end of thread, other threads:[~2019-12-03 13:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-21 15:30 [Buildroot] [PATCH 1/1] package/minicom: make default port and lock directory config options James Byrne
2019-11-21 17:35 ` Giulio Benetti
2019-11-23 11:03 ` Yann E. MORIN
2019-11-23 12:34   ` Peter Korsgaard
2019-11-26  9:52 ` [Buildroot] [PATCH v2] package/minicom: make default port and lock directory fixed defaults James Byrne
2019-11-26 11:54   ` Thomas Petazzoni
2019-12-03 13:46   ` Peter Korsgaard

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.