mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-22 22:32:23 +00:00
librem_11: Add loadkeys (from kbd), optionally enabled
Allow boards to optionally include loadkeys to set a custom keymap. showkey and dumpkeys (normally only needed for development) can also be optionally included. Remove *.map from .gitignore; this was probably intended for build artifacts that are now excluded via the build/ directory. Add reboot and poweroff to shell history, which is useful for devices lacking full hardware keyboards to escape the recovery shell with just "up" and "enter". Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm>
This commit is contained in:
parent
be9051e322
commit
5021bec3cd
1
.gitignore
vendored
1
.gitignore
vendored
@ -16,7 +16,6 @@ config/*.old
|
||||
*~
|
||||
crossgcc
|
||||
clean
|
||||
*.map
|
||||
*.sec
|
||||
*.dep
|
||||
*.ffs
|
||||
|
@ -15,3 +15,6 @@ seal-totp
|
||||
#Verify Intel ME state:
|
||||
cbmem --console | grep '^ME'
|
||||
cbmem --console | less
|
||||
# Reboot/power off (important for devices with no keyboard to escape recovery shell)
|
||||
reboot
|
||||
poweroff
|
||||
|
16
modules/kbd
16
modules/kbd
@ -1,3 +1,11 @@
|
||||
# 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.
|
||||
modules-$(CONFIG_KBD) += kbd
|
||||
|
||||
kbd_version := 2.6.1
|
||||
@ -21,4 +29,12 @@ kbd_target := \
|
||||
kbd_output := \
|
||||
src/setfont
|
||||
|
||||
ifeq "$(CONFIG_KBD_LOADKEYS)" "y"
|
||||
kbd_output += src/loadkeys
|
||||
endif
|
||||
|
||||
ifeq "$(CONFIG_KBD_EXTRATOOLS)" "y"
|
||||
kbd_output += src/showkey src/dumpkeys
|
||||
endif
|
||||
|
||||
kbd_depends := $(musl_dep)
|
||||
|
Loading…
Reference in New Issue
Block a user