summaryrefslogtreecommitdiffstats
path: root/src/Makefile.housekeeping
diff options
context:
space:
mode:
authorMichael Brown2011-03-16 04:22:45 +0100
committerMichael Brown2011-03-16 13:02:59 +0100
commit1febd879e340958c7a4a54823a82784fcb3672ca (patch)
tree2280bd30a465fa8bb2e4a4c25aef0ef85b417279 /src/Makefile.housekeeping
parent[console] Add facility for rudimentary keyboard mapping (diff)
downloadipxe-1febd879e340958c7a4a54823a82784fcb3672ca.tar.gz
ipxe-1febd879e340958c7a4a54823a82784fcb3672ca.tar.xz
ipxe-1febd879e340958c7a4a54823a82784fcb3672ca.zip
[console] Add keymap generator
Inspired by LILO's keytab-lilo.pl, genkeymap.pl uses "loadkeys -b" to obtain a Linux keyboard map, and generates a file keymap_xx.c in hci/keymap. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/Makefile.housekeeping')
-rw-r--r--src/Makefile.housekeeping8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping
index c7a54341..39b0aa25 100644
--- a/src/Makefile.housekeeping
+++ b/src/Makefile.housekeeping
@@ -1087,6 +1087,14 @@ endif # defined(BIN)
###############################################################################
#
+# Keyboard maps
+#
+
+hci/keymap/keymap_%.c : $(GENKEYMAP)
+ $(Q)$(PERL) $(GENKEYMAP) $* > $@
+
+###############################################################################
+#
# Clean-up
#
clean :