summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCam Hutchison <camh@xdna.net>2017-10-16 01:13:51 (GMT)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>2018-02-06 15:16:42 (GMT)
commit2d020aeb60470c2ebf77cf10688e3d02cf0d3d4a (patch)
tree49bc46e750c1ad60fe52a6c3197af69176d2bf11
parent41a3bc75e165ef5f029bf0fb87ff55f1506e362d (diff)
downloadbuildroot-2d020aeb60470c2ebf77cf10688e3d02cf0d3d4a.tar.gz
buildroot-2d020aeb60470c2ebf77cf10688e3d02cf0d3d4a.tar.bz2
package/ncurses: add option to install extra terminfo files
Add an option to ncurses to install extra user-configured terminfo files. By default, only a small number of vital terminfo files are installed on the target. This allows a build to specify the terminfo files it needs. Signed-off-by: Cam Hutchison <camh@xdna.net> [Thomas: qstrip the variable before using it.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/ncurses/Config.in10
-rw-r--r--package/ncurses/ncurses.mk3
2 files changed, 12 insertions, 1 deletions
diff --git a/package/ncurses/Config.in b/package/ncurses/Config.in
index bb45bd8..297b2ee 100644
--- a/package/ncurses/Config.in
+++ b/package/ncurses/Config.in
@@ -23,4 +23,14 @@ config BR2_PACKAGE_NCURSES_TARGET_PROGS
help
Include ncurses programs in target (clear, reset, tput, ...)
+config BR2_PACKAGE_NCURSES_ADDITIONAL_TERMINFO
+ string "additional terminfo files to install"
+ help
+ Whitespace separated list of terminfo files to install on the
+ target. A small number of vital terminfo files are always
+ installed. This list is in addition to the vital ones.
+
+ The terminfo filenames should have the single letter path
+ prefix. e.g. t/tmux.
+
endif
diff --git a/package/ncurses/ncurses.mk b/package/ncurses/ncurses.mk
index 32ee085..eccfbec 100644
--- a/package/ncurses/ncurses.mk
+++ b/package/ncurses/ncurses.mk
@@ -63,7 +63,8 @@ NCURSES_TERMINFO_FILES = \
x/xterm+256color \
x/xterm-256color \
x/xterm-color \
- x/xterm-xfree86
+ x/xterm-xfree86 \
+ $(call qstrip,$(BR2_PACKAGE_NCURSES_ADDITIONAL_TERMINFO))
ifeq ($(BR2_PACKAGE_NCURSES_WCHAR),y)
NCURSES_CONF_OPTS += --enable-widec