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