Initial Commit

- initial default booting image
This commit is contained in:
2026-11-06 20:45:42 +01:00
commit b8783708ae
15201 changed files with 602532 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
[PATCH] clear ixon termios flag on initialization
Otherwise ctrl-S/Q gets intercepted by the tty layer instead of
handled by uemacs.
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
diff --git a/posix.c b/posix.c
index 97edd9f052b1..352c4712b689 100644
--- a/posix.c
+++ b/posix.c
@@ -53,17 +53,17 @@ void ttopen(void)
/*
* base new settings on old ones - don't change things
* we don't know about
*/
ntermios = otermios;
/* raw CR/NL etc input handling, but keep ISTRIP if we're on a 7-bit line */
ntermios.c_iflag &= ~(IGNBRK | BRKINT | IGNPAR | PARMRK
- | INPCK | INLCR | IGNCR | ICRNL);
+ | INPCK | INLCR | IGNCR | ICRNL | IXON);
/* raw CR/NR etc output handling */
ntermios.c_oflag &=
~(OPOST | ONLCR | OLCUC | OCRNL | ONOCR | ONLRET);
/* No signal handling, no echo etc */
ntermios.c_lflag &= ~(ISIG | ICANON | XCASE | ECHO | ECHOE | ECHOK
| ECHONL | NOFLSH | TOSTOP | ECHOCTL |

View File

@@ -0,0 +1,34 @@
From 289ccf8f0e77ae4f240eca988eb3a6ac19afbae9 Mon Sep 17 00:00:00 2001
From: Thomas Bonnefille <thomas.bonnefille@bootlin.com>
Date: Fri, 17 Jan 2025 22:10:41 +0100
Subject: [PATCH] Replace cuserid
cuserid has been removed from some toolchains and is no longer in the
POSIX standard since 1990. getlogin has been in the standard since 2001.
This commit uncomments the call to getlogin and thus replaces cuserid
with getlogin.
Upstream: https://github.com/torvalds/uemacs/pull/46
Signed-off-by: Thomas Bonnefille <thomas.bonnefille@bootlin.com>
---
pklock.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/pklock.c b/pklock.c
index dc30b76..5f4865b 100644
--- a/pklock.c
+++ b/pklock.c
@@ -80,8 +80,7 @@ char *dolock(char *fname)
}
if ((n = read(fd, locker, MAXNAME)) < 1) {
lseek(fd, 0, SEEK_SET);
-/* strcpy(locker, getlogin()); */
- cuserid(locker);
+ strcpy(locker, getlogin());
strcat(locker + strlen(locker), "@");
gethostname(locker + strlen(locker), 64);
write(fd, locker, strlen(locker));
--
2.48.1

7
package/uemacs/Config.in Normal file
View File

@@ -0,0 +1,7 @@
config BR2_PACKAGE_UEMACS
bool "uemacs"
select BR2_PACKAGE_NCURSES
help
A small emacs.
https://git.kernel.org/cgit/editors/uemacs/uemacs.git/

View File

@@ -0,0 +1,3 @@
# Locally computed
sha256 f262345902e18569efd097f68705cfdfd9c2585dec108019629dd91b835c8ca6 uemacs-1cdcf9df88144049750116e36fe20c8c39fa2517-git4.tar.gz
sha256 6e2a4cf41ec8d4379c154923349733bc0d3935c6fa72c4337cf1bc137b98b90a README

24
package/uemacs/uemacs.mk Normal file
View File

@@ -0,0 +1,24 @@
################################################################################
#
# uemacs
#
################################################################################
UEMACS_VERSION = 1cdcf9df88144049750116e36fe20c8c39fa2517
UEMACS_SITE = https://git.kernel.org/pub/scm/editors/uemacs/uemacs.git
UEMACS_SITE_METHOD = git
UEMACS_DEPENDENCIES = ncurses
UEMACS_LICENSE = MicroEMACS copyright notice
UEMACS_LICENSE_FILES = README
define UEMACS_BUILD_CMDS
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
CC="$(TARGET_CC)" DEFINES="-DAUTOCONF -DPOSIX -DUSG" \
CFLAGS+="$(TARGET_CFLAGS) " LIBS="$(TARGET_CFLAGS) -lncurses"
endef
define UEMACS_INSTALL_TARGET_CMDS
$(INSTALL) -m 0755 -D $(@D)/em $(TARGET_DIR)/usr/bin/em
endef
$(eval $(generic-package))