Skip to contentSkip to conversation

package/ugetty: new package

PATCH In review Peter Korsgaard 2 participants 2 messages Apr 12

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/ugetty: new package

Minimal getty implementation with optional ppp and ssh multiplexing support.

---
 DEVELOPERS                 |  1 +
 package/Config.in          |  1 +
 package/busybox/busybox.mk |  1 +
 package/ugetty/Config.in   | 10 ++++++++++
 package/ugetty/ugetty.hash |  6 ++++++
 package/ugetty/ugetty.mk   | 23 +++++++++++++++++++++++
 6 files changed, 42 insertions(+)
 create mode 100644 package/ugetty/Config.in
 create mode 100644 package/ugetty/ugetty.hash
 create mode 100644 package/ugetty/ugetty.mk
DEVELOPERS +1 -0
index 18197347a1..500dbf9ed8 100644
@@ -2710,6 +2710,7 @@ F:	package/rnnoise/
 F:	package/sedutil/
 F:	package/tpm2-totp/
 F:	package/triggerhappy/
+F:	package/ugetty/
 F:	package/wireguard-linux-compat/
 F:	package/wireguard-tools/
 F:	support/testing/tests/package/test_docker_compose.py
package/Config.in +1 -0
index f12112c1d6..f4aa881fad 100644
@@ -2894,6 +2894,7 @@ menu "System tools"
 	source "package/tpm2-abrmd/Config.in"
 	source "package/tpm2-tools/Config.in"
 	source "package/tpm2-totp/Config.in"
+	source "package/ugetty/Config.in"
 	source "package/unscd/Config.in"
 	source "package/util-linux/Config.in"
 	source "package/watchdog/Config.in"
package/busybox/busybox.mk +1 -0
index a33548c355..ebe169cdb9 100644
@@ -72,6 +72,7 @@ BUSYBOX_DEPENDENCIES = \
 	$(if $(BR2_PACKAGE_TAR),tar) \
 	$(if $(BR2_PACKAGE_TFTPD),tftpd) \
 	$(if $(BR2_PACKAGE_TRACEROUTE),traceroute) \
+	$(if $(BR2_PACKAGE_UGETTY),ugetty) \
 	$(if $(BR2_PACKAGE_UNZIP),unzip) \
 	$(if $(BR2_PACKAGE_USBUTILS),usbutils) \
 	$(if $(BR2_PACKAGE_UTIL_LINUX),util-linux) \
package/ugetty/Config.in new file +10 -0
new file mode 100644
index 0000000000..e00e9fb73a
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_UGETTY
+	bool "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.
+
+	  https://github.com/ryancdotorg/ugetty
package/ugetty/ugetty.hash new file +6 -0
new file mode 100644
index 0000000000..b69c068a3f
@@ -0,0 +1,6 @@
+# Locally calculated
+sha256  302fe8a41eb8a752d08c82779f3c71b4b3060ddc48749a019135b0e649cde84c  ugetty-f1b7858778800b7256e9874f266c1d16ced22a6e.tar.gz
+sha256  26738bf10eec3fef6ee16c1dadc9279444552d9a86ff96122809af0529a8fec7  LICENSE
+sha256  a3290942cbf3fc43da5569318ccaa1e7fc601c30f81e32e51a55f5157a030ae3  LICENSE.0BSD
+sha256  15efcf4646d41aabd27e0cba3cb205e28acf5159b905c028ebed883f64fbefea  LICENSE.CC0
+sha256  0b230d23f22b80ffefcf65015f6e2308c2199dfaece79878b3ab13ad2577e685  LICENSE.MIT-0
package/ugetty/ugetty.mk new file +23 -0
new file mode 100644
index 0000000000..0e306a02c2
@@ -0,0 +1,23 @@
+################################################################################
+#
+# ugetty
+#
+################################################################################
+
+UGETTY_VERSION = f1b7858778800b7256e9874f266c1d16ced22a6e
+UGETTY_SITE = $(call github,ryancdotorg,ugetty,$(UGETTY_VERSION))
+UGETTY_LICENSE = BSD-0-Clause or MIT or CC0-1.0
+UGETTY_LICENSE_FILES = LICENSE LICENSE.0BSD LICENSE.CC0 LICENSE.MIT-0
+
+define UGETTY_BUILD_CMDS
+	$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) bin/ugetty
+endef
+
+# Install ugetty->getty symlink to ensure ugetty is used
+define UGETTY_INSTALL_TARGET_CMDS
+	$(INSTALL) -m 0755 $(@D)/bin/ugetty \
+		$(TARGET_DIR)/sbin/ugetty
+	ln -snf ugetty $(TARGET_DIR)/sbin/getty
+endef
+
+$(eval $(generic-package))
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot