packaging.sh 474 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. release=$(make kernelrelease)
  3. export INSTALL_PATH=./${release}/boot
  4. export INSTALL_MOD_PATH=./${release}
  5. mkdir -p ${release}/boot
  6. make modules_install install
  7. rm -r ${release}/boot/vmlinux-${release}
  8. rm -r ${release}/lib/modules/${release}/build
  9. rm -r ${release}/lib/modules/${release}/source
  10. cp COPYING ${release}
  11. tar -cf - ${release} | xz -9 -e - > linux-${release}.tar.xz
  12. rm -rf ${release}
  13. gpg -o linux-${release}.tar.xz.sig -ab linux-${release}.tar.xz