The Kbd package contains key-table files and keyboard utilities.
The following patch fixes build issues with GCC 4.1.1:
patch -Np1 -i ../kbd-1.12-gcc4_fixes-1.patch
Prepare Kbd for compilation:
CC="gcc ${BUILD64}" ./configure --datadir=/lib64/kbd
The meaning of the configure options:
This option places the Kbd data and keymap files into /lib64/kbd, as they are used by some of the scripts in the CLFS-Bootscripts package and must be on the root partition.
Compile the package:
make CC="gcc ${BUILD64}"
This package does not come with a test suite.
Install the package:
make install
Some of the programs from Kbd are used by scripts in the CLFS-Bootscripts package. As /usr may not be available during the early stages of booting, those binaries need to be on the root partition:
mv -v /usr/bin/{kbd_mode,openvt,setfont} /bin