Make console charset translation optional
By turning off the new CONSOLE_TRANSLATIONS option and dropping the associated code and tables from the kernel, we can save about 7KiB. Taken from linux-tiny project by Tim Bird and mangled further by dwmw2. Signed-off-by: Tim Bird <tim.bird@am.sony.com> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
This commit is contained in:
@@ -36,6 +36,14 @@ config VT
|
||||
If unsure, say Y, or else you won't be able to do much with your new
|
||||
shiny Linux system :-)
|
||||
|
||||
config CONSOLE_TRANSLATIONS
|
||||
depends on VT
|
||||
default y
|
||||
bool "Enable character translations in console" if EMBEDDED
|
||||
---help---
|
||||
This enables support for font mapping and Unicode translation
|
||||
on virtual consoles.
|
||||
|
||||
config VT_CONSOLE
|
||||
bool "Support for console on virtual terminal" if EMBEDDED
|
||||
depends on VT
|
||||
|
||||
@@ -12,8 +12,8 @@ obj-y += mem.o random.o tty_io.o n_tty.o tty_ioctl.o
|
||||
obj-$(CONFIG_LEGACY_PTYS) += pty.o
|
||||
obj-$(CONFIG_UNIX98_PTYS) += pty.o
|
||||
obj-y += misc.o
|
||||
obj-$(CONFIG_VT) += vt_ioctl.o vc_screen.o consolemap.o \
|
||||
consolemap_deftbl.o selection.o keyboard.o
|
||||
obj-$(CONFIG_VT) += vt_ioctl.o vc_screen.o selection.o keyboard.o
|
||||
obj-$(CONFIG_CONSOLE_TRANSLATIONS) += consolemap.o consolemap_deftbl.o
|
||||
obj-$(CONFIG_HW_CONSOLE) += vt.o defkeymap.o
|
||||
obj-$(CONFIG_AUDIT) += tty_audit.o
|
||||
obj-$(CONFIG_MAGIC_SYSRQ) += sysrq.o
|
||||
|
||||
@@ -2208,7 +2208,7 @@ rescan_last_byte:
|
||||
c = 0xfffd;
|
||||
tc = c;
|
||||
} else { /* no utf or alternate charset mode */
|
||||
tc = vc->vc_translate[vc->vc_toggle_meta ? (c | 0x80) : c];
|
||||
tc = vc_translate(vc, c);
|
||||
}
|
||||
|
||||
param.c = tc;
|
||||
|
||||
Reference in New Issue
Block a user