mk_hwpack.sh:Add header generate function

To generate headers on Arch Linux ARM, some compile result required.
So I add header generate code.