Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Greg Kroah-Hartman | 60d4ae8 | 2010-11-04 12:50:47 -0700 | [diff] [blame] | 2 | # |
| 3 | # This file contains the font map for the default (hardware) font |
| 4 | # |
| 5 | FONTMAPFILE = cp437.uni |
| 6 | |
| 7 | obj-$(CONFIG_VT) += vt_ioctl.o vc_screen.o \ |
| 8 | selection.o keyboard.o |
| 9 | obj-$(CONFIG_CONSOLE_TRANSLATIONS) += consolemap.o consolemap_deftbl.o |
| 10 | obj-$(CONFIG_HW_CONSOLE) += vt.o defkeymap.o |
| 11 | |
| 12 | # Files generated that shall be removed upon make clean |
| 13 | clean-files := consolemap_deftbl.c defkeymap.c |
| 14 | |
| 15 | quiet_cmd_conmk = CONMK $@ |
| 16 | cmd_conmk = scripts/conmakehash $< > $@ |
| 17 | |
| 18 | $(obj)/consolemap_deftbl.c: $(src)/$(FONTMAPFILE) |
| 19 | $(call cmd,conmk) |
| 20 | |
| 21 | $(obj)/defkeymap.o: $(obj)/defkeymap.c |
| 22 | |
| 23 | # Uncomment if you're changing the keymap and have an appropriate |
| 24 | # loadkeys version for the map. By default, we'll use the shipped |
| 25 | # versions. |
| 26 | # GENERATE_KEYMAP := 1 |
| 27 | |
| 28 | ifdef GENERATE_KEYMAP |
| 29 | |
| 30 | $(obj)/defkeymap.c: $(obj)/%.c: $(src)/%.map |
Cong Ding | 92b336f | 2012-12-08 01:09:03 +0000 | [diff] [blame] | 31 | loadkeys --mktable $< > $@ |
Greg Kroah-Hartman | 60d4ae8 | 2010-11-04 12:50:47 -0700 | [diff] [blame] | 32 | |
| 33 | endif |