Build kmap.h as part of a build process

This commit is contained in:
Ondrej Jirman 2021-06-16 17:19:38 +02:00
parent dba6fb37c1
commit a6f823612a
2 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
#!/bin/sh
php map-to-c.php factory-keymap.txt > kmap.h
gcc -o ppkbd main.c || exit 1

View File

@ -21,7 +21,7 @@
*/
$pmap = file_get_contents("physical-map.txt");
$kmap = file_get_contents("factory-keymap.txt");
$kmap = file_get_contents($argv[1]);
// high nibble = row, low nibble col
$el_phys_map = [];