xref: /openbmc/linux/drivers/tty/vt/Makefile (revision ecefa105)
1# SPDX-License-Identifier: GPL-2.0
2#
3# This file contains the font map for the default (hardware) font
4#
5FONTMAPFILE = cp437.uni
6
7obj-$(CONFIG_VT)			+= vt_ioctl.o vc_screen.o \
8					   selection.o keyboard.o
9obj-$(CONFIG_CONSOLE_TRANSLATIONS)	+= consolemap.o consolemap_deftbl.o
10obj-$(CONFIG_HW_CONSOLE)		+= vt.o defkeymap.o
11
12# Files generated that shall be removed upon make clean
13clean-files := consolemap_deftbl.c defkeymap.c
14
15hostprogs += conmakehash
16
17quiet_cmd_conmk = CONMK   $@
18      cmd_conmk = $(obj)/conmakehash $< > $@
19
20$(obj)/consolemap_deftbl.c: $(src)/$(FONTMAPFILE) $(obj)/conmakehash
21	$(call cmd,conmk)
22
23$(obj)/defkeymap.o:  $(obj)/defkeymap.c
24
25# Uncomment if you're changing the keymap and have an appropriate
26# loadkeys version for the map. By default, we'll use the shipped
27# versions.
28# GENERATE_KEYMAP := 1
29
30ifdef GENERATE_KEYMAP
31
32$(obj)/defkeymap.c: $(obj)/%.c: $(src)/%.map
33	loadkeys --mktable --unicode $< > $@
34
35endif
36