1b2441318SGreg 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 \ 85c49b6a4SLukas Bulwahn selection.o keyboard.o \ 95c49b6a4SLukas Bulwahn vt.o defkeymap.o 1007bc3f44SNicolas Pitreobj-$(CONFIG_CONSOLE_TRANSLATIONS) += consolemap.o consolemap_deftbl.o \ 1107bc3f44SNicolas Pitre ucs.o 1260d4ae8dSGreg Kroah-Hartman 1360d4ae8dSGreg Kroah-Hartman# Files generated that shall be removed upon make clean 14c2d2c5c0SNicolas Pitreclean-files := consolemap_deftbl.c defkeymap.c \ 15de45d93fSNicolas Pitre ucs_width_table.h ucs_recompose_table.h ucs_fallback_table.h 1660d4ae8dSGreg Kroah-Hartman 175f2fb52fSMasahiro Yamadahostprogs += conmakehash 1860d4ae8dSGreg Kroah-Hartman 194484aa80SMasahiro Yamadaquiet_cmd_conmk = CONMK $@ 204484aa80SMasahiro Yamada cmd_conmk = $(obj)/conmakehash $< > $@ 214484aa80SMasahiro Yamada 224484aa80SMasahiro Yamada$(obj)/consolemap_deftbl.c: $(src)/$(FONTMAPFILE) $(obj)/conmakehash 2360d4ae8dSGreg Kroah-Hartman $(call cmd,conmk) 2460d4ae8dSGreg Kroah-Hartman 2560d4ae8dSGreg Kroah-Hartman$(obj)/defkeymap.o: $(obj)/defkeymap.c 2660d4ae8dSGreg Kroah-Hartman 2760d4ae8dSGreg Kroah-Hartman# Uncomment if you're changing the keymap and have an appropriate 2860d4ae8dSGreg Kroah-Hartman# loadkeys version for the map. By default, we'll use the shipped 2960d4ae8dSGreg Kroah-Hartman# versions. 3060d4ae8dSGreg Kroah-Hartman# GENERATE_KEYMAP := 1 3160d4ae8dSGreg Kroah-Hartman 3260d4ae8dSGreg Kroah-Hartmanifdef GENERATE_KEYMAP 3360d4ae8dSGreg Kroah-Hartman 3460d4ae8dSGreg Kroah-Hartman$(obj)/defkeymap.c: $(obj)/%.c: $(src)/%.map 355c4d7b04SJiri Slaby loadkeys --mktable --unicode $< > $@ 3660d4ae8dSGreg Kroah-Hartman 3760d4ae8dSGreg Kroah-Hartmanendif 38c2d2c5c0SNicolas Pitre 39*fe26933cSNicolas Pitre$(obj)/ucs.o: $(src)/ucs.c $(obj)/ucs_width_table.h \ 40*fe26933cSNicolas Pitre $(obj)/ucs_recompose_table.h $(obj)/ucs_fallback_table.h 41c2d2c5c0SNicolas Pitre 42c2d2c5c0SNicolas Pitre# You may uncomment one of those to have the UCS tables be regenerated 43c2d2c5c0SNicolas Pitre# during the build process. By default the _shipped versions are used. 44c2d2c5c0SNicolas Pitre# 45c2d2c5c0SNicolas Pitre#GENERATE_UCS_TABLES := 1 46c2d2c5c0SNicolas Pitre#GENERATE_UCS_TABLES := 2 # invokes gen_ucs_recompose_table.py with --full 47c2d2c5c0SNicolas Pitre 48c2d2c5c0SNicolas Pitreifdef GENERATE_UCS_TABLES 49c2d2c5c0SNicolas Pitre 50c2d2c5c0SNicolas Pitre$(obj)/ucs_width_table.h: $(src)/gen_ucs_width_table.py 51c2d2c5c0SNicolas Pitre $(PYTHON3) $< -o $@ 52c2d2c5c0SNicolas Pitre 53c2d2c5c0SNicolas Pitreifeq ($(GENERATE_UCS_TABLES),2) 54c2d2c5c0SNicolas Pitregen_recomp_arg := --full 55c2d2c5c0SNicolas Pitreelse 56c2d2c5c0SNicolas Pitregen_recomp_arg := 57c2d2c5c0SNicolas Pitreendif 58c2d2c5c0SNicolas Pitre 59c2d2c5c0SNicolas Pitre$(obj)/ucs_recompose_table.h: $(src)/gen_ucs_recompose_table.py 60c2d2c5c0SNicolas Pitre $(PYTHON3) $< -o $@ $(gen_recomp_arg) 61c2d2c5c0SNicolas Pitre 62de45d93fSNicolas Pitre$(obj)/ucs_fallback_table.h: $(src)/gen_ucs_fallback_table.py 63de45d93fSNicolas Pitre $(PYTHON3) $< -o $@ 64de45d93fSNicolas Pitre 65c2d2c5c0SNicolas Pitreendif 66