arch: rewrite and merge mktbl scripts for Linux

These now use the kernel’s own build system to generate headers and
extract information from them.