Makefile 888 B

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