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:
Jonathon Hall 2023-06-23 16:08:58 -04:00
parent be9051e322
commit 5021bec3cd
No known key found for this signature in database
GPG Key ID: 1E9C3CA91AE25114
3 changed files with 19 additions and 1 deletions

1
.gitignore vendored
View File

@ -16,7 +16,6 @@ config/*.old
*~
crossgcc
clean
*.map
*.sec
*.dep
*.ffs

View File

@ -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

View File

@ -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)