2023-06-23 20:08:58 +00:00
|
|
|
# kbd: Linux keyboard tools
|
|
|
|
#
|
|
|
|
# Provides:
|
|
|
|
# - setfont - set the Linux console font
|
|
|
|
# - loadkeys - load a key map for the Linux console (CONFIG_KBD_LOADKEYS)
|
|
|
|
#
|
|
|
|
# To also provide showkey and dumpkeys (normally only needed for development),
|
|
|
|
# set CONFIG_KBD_DEVTOOLS=y.
|
2023-08-09 20:06:08 +00:00
|
|
|
modules-$(CONFIG_KBD) += kbd
|
|
|
|
|
|
|
|
kbd_version := 2.6.1
|
|
|
|
kbd_dir := kbd-$(kbd_version)
|
|
|
|
kbd_tar := kbd-$(kbd_version).tar.gz
|
|
|
|
kbd_url := https://www.kernel.org/pub/linux/utils/kbd/$(kbd_tar)
|
|
|
|
kbd_hash := aaed530a1490d63d041448372e2ad4f38c3179042903251000b71d527c46e945
|
|
|
|
|
|
|
|
kbd_configure := CFLAGS=-Os ./configure \
|
|
|
|
$(CROSS_TOOLS) \
|
|
|
|
--host i386-elf-linux \
|
2024-01-29 03:55:11 +00:00
|
|
|
--prefix "" \
|
2023-08-09 20:06:08 +00:00
|
|
|
--disable-libkeymap \
|
|
|
|
--disable-libkfont \
|
2024-01-29 03:55:11 +00:00
|
|
|
--disable-optional-progs \
|
2023-08-09 20:06:08 +00:00
|
|
|
--disable-vlock \
|
|
|
|
|
|
|
|
kbd_target := \
|
|
|
|
$(MAKE_JOBS) $(CROSS_TOOLS)
|
|
|
|
|
|
|
|
kbd_output := \
|
|
|
|
src/setfont
|
|
|
|
|
2023-06-23 20:08:58 +00:00
|
|
|
ifeq "$(CONFIG_KBD_LOADKEYS)" "y"
|
|
|
|
kbd_output += src/loadkeys
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq "$(CONFIG_KBD_EXTRATOOLS)" "y"
|
|
|
|
kbd_output += src/showkey src/dumpkeys
|
|
|
|
endif
|
|
|
|
|
2023-08-09 20:06:08 +00:00
|
|
|
kbd_depends := $(musl_dep)
|