* [Buildroot] [PATCH 1/1] package/ugetty: support building "proxycommand" binary for host
@ 2026-04-29 9:33 Fiona Klute via buildroot
2026-04-29 17:39 ` Peter Korsgaard
0 siblings, 1 reply; 2+ messages in thread
From: Fiona Klute via buildroot @ 2026-04-29 9:33 UTC (permalink / raw)
To: buildroot; +Cc: Fiona Klute, Thomas Petazzoni
The "proxycommand" binary is used with SSH clients to connect to
ugetty over serial. Building it as a host package makes it easy to use
with Buildroot builds including ugetty on the target, without needing
a separate install.
Signed-off-by: Fiona Klute <fiona.klute@gmx.de>
---
package/Config.in.host | 1 +
package/ugetty/Config.in.host | 13 +++++++++++++
package/ugetty/ugetty.mk | 10 ++++++++++
3 files changed, 24 insertions(+)
create mode 100644 package/ugetty/Config.in.host
diff --git a/package/Config.in.host b/package/Config.in.host
index b990ce8b14..bb6732a639 100644
--- a/package/Config.in.host
+++ b/package/Config.in.host
@@ -124,6 +124,7 @@ menu "Host utilities"
source "package/ti-cgt-pru/Config.in.host"
source "package/tipidee/Config.in.host"
source "package/uboot-tools/Config.in.host"
+ source "package/ugetty/Config.in.host"
source "package/util-linux/Config.in.host"
source "package/utp_com/Config.in.host"
source "package/uuu/Config.in.host"
diff --git a/package/ugetty/Config.in.host b/package/ugetty/Config.in.host
new file mode 100644
index 0000000000..6d907d1c38
--- /dev/null
+++ b/package/ugetty/Config.in.host
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_HOST_UGETTY
+ bool "host ugetty"
+ depends on BR2_TOOLCHAIN_GCC_AT_LEAST_8 # std=c17
+ help
+ A minimal getty for embedded Linux that auto-detects the
+ client and dispatches incoming serial connections to a login
+ prompt, a PPP session, or the local SSH server as
+ appropriate.
+
+ The host package builds only the "proxycommand" binary for
+ use with SSH clients to connect to ugetty over serial.
+
+ https://github.com/ryancdotorg/ugetty
diff --git a/package/ugetty/ugetty.mk b/package/ugetty/ugetty.mk
index 0e306a02c2..d8e8c85918 100644
--- a/package/ugetty/ugetty.mk
+++ b/package/ugetty/ugetty.mk
@@ -20,4 +20,14 @@ define UGETTY_INSTALL_TARGET_CMDS
ln -snf ugetty $(TARGET_DIR)/sbin/getty
endef
+define HOST_UGETTY_BUILD_CMDS
+ $(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) bin/proxycommand
+endef
+
+define HOST_UGETTY_INSTALL_CMDS
+ $(INSTALL) -m 0755 $(@D)/bin/proxycommand \
+ $(HOST_DIR)/bin/proxycommand
+endef
+
$(eval $(generic-package))
+$(eval $(host-generic-package))
--
2.53.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/ugetty: support building "proxycommand" binary for host
2026-04-29 9:33 [Buildroot] [PATCH 1/1] package/ugetty: support building "proxycommand" binary for host Fiona Klute via buildroot
@ 2026-04-29 17:39 ` Peter Korsgaard
0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2026-04-29 17:39 UTC (permalink / raw)
To: Fiona Klute; +Cc: buildroot, Thomas Petazzoni
>>>>> "Fiona" == Fiona Klute <fiona.klute@gmx.de> writes:
> The "proxycommand" binary is used with SSH clients to connect to
> ugetty over serial. Building it as a host package makes it easy to use
> with Buildroot builds including ugetty on the target, without needing
> a separate install.
> Signed-off-by: Fiona Klute <fiona.klute@gmx.de>
..
> diff --git a/package/ugetty/ugetty.mk b/package/ugetty/ugetty.mk
> index 0e306a02c2..d8e8c85918 100644
> --- a/package/ugetty/ugetty.mk
> +++ b/package/ugetty/ugetty.mk
> @@ -20,4 +20,14 @@ define UGETTY_INSTALL_TARGET_CMDS
> ln -snf ugetty $(TARGET_DIR)/sbin/getty
> endef
> +define HOST_UGETTY_BUILD_CMDS
> + $(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) bin/proxycommand
> +endef
> +
> +define HOST_UGETTY_INSTALL_CMDS
> + $(INSTALL) -m 0755 $(@D)/bin/proxycommand \
> + $(HOST_DIR)/bin/proxycommand
It is handy to use install -D so the directory is created if not yet
present, so I changed that.
I see that I also forgot to do so for the target install, so I will send
a separate patch for that.
Committed with that changed, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-04-29 17:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-29 9:33 [Buildroot] [PATCH 1/1] package/ugetty: support building "proxycommand" binary for host Fiona Klute via buildroot
2026-04-29 17:39 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox