initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
link readline directly to ncurses since it needs symbols from it
|
||||
|
||||
upstream readline does this on purpose (no direct linking), but
|
||||
it doesn't make much sense in a Linux world
|
||||
|
||||
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
|
||||
--- a/support/shobj-conf
|
||||
+++ b/support/shobj-conf
|
||||
@@ -42,7 +42,7 @@
|
||||
SHOBJ_LIBS=
|
||||
|
||||
SHLIB_XLDFLAGS=
|
||||
-SHLIB_LIBS=
|
||||
+SHLIB_LIBS=-lncurses
|
||||
|
||||
SHLIB_DOT='.'
|
||||
SHLIB_LIBPREF='lib'
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
# Locally calculated after checking pgp signature
|
||||
sha256 f8ceb4ee131e3232226a17f51b164afc46cd0b9e6cef344be87c65962cb82b02 readline-8.1.tar.gz
|
||||
|
||||
# Hash for license file
|
||||
sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 COPYING
|
||||
@@ -0,0 +1,31 @@
|
||||
################################################################################
|
||||
#
|
||||
# readline
|
||||
#
|
||||
################################################################################
|
||||
|
||||
READLINE_VERSION = 8.1
|
||||
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
|
||||
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))
|
||||
Reference in New Issue
Block a user