xref: /linux/drivers/tty/vt/Makefile (revision b24413180f5600bcb3bb70fbed5cf186b60864bd)
1*b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
260d4ae8dSGreg Kroah-Hartman#
360d4ae8dSGreg Kroah-Hartman# This file contains the font map for the default (hardware) font
460d4ae8dSGreg Kroah-Hartman#
560d4ae8dSGreg Kroah-HartmanFONTMAPFILE = cp437.uni
660d4ae8dSGreg Kroah-Hartman
760d4ae8dSGreg Kroah-Hartmanobj-$(CONFIG_VT)			+= vt_ioctl.o vc_screen.o \
860d4ae8dSGreg Kroah-Hartman					   selection.o keyboard.o
960d4ae8dSGreg Kroah-Hartmanobj-$(CONFIG_CONSOLE_TRANSLATIONS)	+= consolemap.o consolemap_deftbl.o
1060d4ae8dSGreg Kroah-Hartmanobj-$(CONFIG_HW_CONSOLE)		+= vt.o defkeymap.o
1160d4ae8dSGreg Kroah-Hartman
1260d4ae8dSGreg Kroah-Hartman# Files generated that shall be removed upon make clean
1360d4ae8dSGreg Kroah-Hartmanclean-files := consolemap_deftbl.c defkeymap.c
1460d4ae8dSGreg Kroah-Hartman
1560d4ae8dSGreg Kroah-Hartmanquiet_cmd_conmk = CONMK   $@
1660d4ae8dSGreg Kroah-Hartman      cmd_conmk = scripts/conmakehash $< > $@
1760d4ae8dSGreg Kroah-Hartman
1860d4ae8dSGreg Kroah-Hartman$(obj)/consolemap_deftbl.c: $(src)/$(FONTMAPFILE)
1960d4ae8dSGreg Kroah-Hartman	$(call cmd,conmk)
2060d4ae8dSGreg Kroah-Hartman
2160d4ae8dSGreg Kroah-Hartman$(obj)/defkeymap.o:  $(obj)/defkeymap.c
2260d4ae8dSGreg Kroah-Hartman
2360d4ae8dSGreg Kroah-Hartman# Uncomment if you're changing the keymap and have an appropriate
2460d4ae8dSGreg Kroah-Hartman# loadkeys version for the map. By default, we'll use the shipped
2560d4ae8dSGreg Kroah-Hartman# versions.
2660d4ae8dSGreg Kroah-Hartman# GENERATE_KEYMAP := 1
2760d4ae8dSGreg Kroah-Hartman
2860d4ae8dSGreg Kroah-Hartmanifdef GENERATE_KEYMAP
2960d4ae8dSGreg Kroah-Hartman
3060d4ae8dSGreg Kroah-Hartman$(obj)/defkeymap.c: $(obj)/%.c: $(src)/%.map
3192b336f6SCong Ding	loadkeys --mktable $< > $@
3260d4ae8dSGreg Kroah-Hartman
3360d4ae8dSGreg Kroah-Hartmanendif
34