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,42 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Bernd Kuhls <bernd@kuhls.net>
Date: Sat, 5 Jul 2025 07:48:20 +0200
Subject: [PATCH] Fix build with non-wchar toolchains
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Commit a7f5650e6549e1b5c4e2e1fa30eee19de6bcbe7a added two functions to
mbutil.c but forgot to add defines for HANDLE_MULTIBYTE causing build
errors with toolchains without wchar support:
../mbutil.c: In function ‘_rl_mb_strcaseeqn’:
../mbutil.c:594:3: error: unknown type name ‘mbstate_t’
Upstream: https://lists.gnu.org/archive/html/bug-readline/2025-07/msg00002.html
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
mbutil.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/mbutil.c b/mbutil.c
index 5243fd7..c15f3aa 100644
--- a/mbutil.c
+++ b/mbutil.c
@@ -584,6 +584,7 @@ _rl_find_prev_mbchar (const char *string, int seed, int flags)
#endif
}
+#if defined (HANDLE_MULTIBYTE)
/* Compare the first N characters of S1 and S2 without regard to case. If
FLAGS&1, apply the mapping specified by completion-map-case and make
`-' and `_' equivalent. Returns 1 if the strings are equal. */
@@ -658,3 +659,4 @@ _rl_mb_charcasecmp (const char *s1, mbstate_t *ps1, const char *s2, mbstate_t *p
return 1;
return (wc1 == wc2);
}
+#endif /* HANDLE_MULTIBYTE */
--
2.39.5

View File

@@ -0,0 +1,22 @@
From 9a3a2388e376eb2b43a2fe3dd8c5ce6e62ee3cc0 Mon Sep 17 00:00:00 2001
From: Chet Ramey <chet.ramey@case.edu>
Date: Wed, 10 Dec 2025 11:34:13 -0500
Subject: [PATCH] Readline-8.3 patch 2: fix crash if the calling application
sets rl_prompt to NULL without setting a new value
Upstream: https://cgit.git.savannah.gnu.org/cgit/readline.git/commit/?id=9a3a2388e376eb2b43a2fe3dd8c5ce6e62ee3cc0
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
diff --git a/display.c b/display.c
index 9aa8c7b..edb525d 100644
--- a/display.c
+++ b/display.c
@@ -783,7 +783,7 @@ _rl_optimize_redisplay (void)
/* Useful shorthand used by rl_redisplay, update_line, rl_move_cursor_relative */
#define INVIS_FIRST() (local_prompt_invis_chars[0])
-#define WRAP_OFFSET(line, offset) ((line <= prompt_last_screen_line) ? local_prompt_invis_chars[line] : 0)
+#define WRAP_OFFSET(line, offset) ((line <= prompt_last_screen_line && local_prompt_invis_chars) ? local_prompt_invis_chars[line] : 0)
#define W_OFFSET(line, offset) ((line) == 0 ? offset : 0)
#define VIS_LLEN(l) ((l) > _rl_vis_botlin ? 0 : (vis_lbreaks[l+1] - vis_lbreaks[l]))

View File

@@ -0,0 +1,27 @@
config BR2_PACKAGE_READLINE
bool "readline"
select BR2_PACKAGE_NCURSES
help
The GNU Readline library provides a set of functions for use
by applications that allow users to edit command lines
as they are typed in.
https://tiswww.case.edu/php/chet/readline/rltop.html
config BR2_PACKAGE_READLINE_BRACKETED_PASTE
bool "Enable bracketed paste"
depends on BR2_PACKAGE_READLINE
help
Enable the "bracketed paste" feature in libreadline.
Bracketed paste is helpful for interactive sessions when
one wants to prevent pasted text from being interpreted
as typed-in commands. However, it also causes control
characters to show up in the raw output of a (telnet)
session. This can cause issues and throw off pattern
matching if the session output is being captured for
automated processing.
For further information on this feature and whether you
may want it, see:
https://cirw.in/blog/bracketed-paste

44
package/readline/inputrc Normal file
View File

@@ -0,0 +1,44 @@
# /etc/inputrc - global inputrc for libreadline
# See readline(3readline) and `info readline' for more information.
# Be 8 bit clean.
set input-meta on
set output-meta on
set bell-style visible
# To allow the use of 8bit-characters like the german umlauts, comment out
# the line below. However this makes the meta key not work as a meta key,
# which is annoying to those which don't need to type in 8-bit characters.
# set convert-meta off
"\e0d": backward-word
"\e0c": forward-word
"\e[h": beginning-of-line
"\e[f": end-of-line
"\e[1~": beginning-of-line
"\e[4~": end-of-line
#"\e[5~": beginning-of-history
#"\e[6~": end-of-history
"\e[3~": delete-char
"\e[2~": quoted-insert
# Common standard keypad and cursor
# (codes courtsey Werner Fink, <werner@suse.de>)
#"\e[1~": history-search-backward
"\e[2~": yank
"\e[3~": delete-char
#"\e[4~": set-mark
"\e[5~": history-search-backward
"\e[6~": history-search-forward
# Normal keypad and cursor of xterm
"\e[F": end-of-line
"\e[H": beginning-of-line
# Application keypad and cursor of xterm
"\eOA": previous-history
"\eOC": forward-char
"\eOB": next-history
"\eOD": backward-char
"\eOF": end-of-line
"\eOH": beginning-of-line

View File

@@ -0,0 +1,6 @@
# Locally calculated after checking pgp signature from
# https://ftp.gnu.org/gnu/readline/readline-8.3.tar.gz.sig
sha256 fe5383204467828cd495ee8d1d3c037a7eba1389c22bc6a041f627976f9061cc readline-8.3.tar.gz
# Hash for license file
sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 COPYING

View File

@@ -0,0 +1,34 @@
################################################################################
#
# readline
#
################################################################################
READLINE_VERSION = 8.3
READLINE_SITE = $(BR2_GNU_MIRROR)/readline
READLINE_INSTALL_STAGING = YES
READLINE_DEPENDENCIES = ncurses host-autoconf
HOST_READLINE_DEPENDENCIES = host-ncurses host-autoconf
READLINE_CONF_ENV = bash_cv_func_sigsetjmp=yes \
bash_cv_wcwidth_broken=no
READLINE_CONF_OPTS = \
--disable-install-examples \
--with-curses \
--with-shared-termcap-library
READLINE_LICENSE = GPL-3.0+
READLINE_LICENSE_FILES = COPYING
READLINE_CPE_ID_VENDOR = gnu
ifeq ($(BR2_PACKAGE_READLINE_BRACKETED_PASTE),y)
READLINE_CONF_OPTS += --enable-bracketed-paste-default
else
READLINE_CONF_OPTS += --disable-bracketed-paste-default
endif
define READLINE_INSTALL_INPUTRC
$(INSTALL) -D -m 644 package/readline/inputrc $(TARGET_DIR)/etc/inputrc
endef
READLINE_POST_INSTALL_TARGET_HOOKS += READLINE_INSTALL_INPUTRC
$(eval $(autotools-package))
$(eval $(host-autotools-package))