mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-28 14:44:10 +08:00
5c4d7b049d
For a long time, we generate unicode tables using loadkeys. So fix Makefile to use that flag too. Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Jiri Slaby <jslaby@suse.cz> Link: https://lore.kernel.org/r/20220602083128.22540-2-jslaby@suse.cz Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
36 lines
942 B
Makefile
36 lines
942 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# This file contains the font map for the default (hardware) font
|
|
#
|
|
FONTMAPFILE = cp437.uni
|
|
|
|
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
|
|
|
|
# Files generated that shall be removed upon make clean
|
|
clean-files := consolemap_deftbl.c defkeymap.c
|
|
|
|
hostprogs += conmakehash
|
|
|
|
quiet_cmd_conmk = CONMK $@
|
|
cmd_conmk = $(obj)/conmakehash $< > $@
|
|
|
|
$(obj)/consolemap_deftbl.c: $(src)/$(FONTMAPFILE) $(obj)/conmakehash
|
|
$(call cmd,conmk)
|
|
|
|
$(obj)/defkeymap.o: $(obj)/defkeymap.c
|
|
|
|
# Uncomment if you're changing the keymap and have an appropriate
|
|
# loadkeys version for the map. By default, we'll use the shipped
|
|
# versions.
|
|
# GENERATE_KEYMAP := 1
|
|
|
|
ifdef GENERATE_KEYMAP
|
|
|
|
$(obj)/defkeymap.c: $(obj)/%.c: $(src)/%.map
|
|
loadkeys --mktable --unicode $< > $@
|
|
|
|
endif
|