Novena linux-kernel
The mainline Linux kernel contains Make targets to build .deb packages. We extend this slightly to also include DTB files, and to allow for an arbitrary kernel installation directory.
We use the following script to build kernel packages:
#!/bin/sh threads=2 version=1.4 make -j${threads} \ LD=gold \ KBUILD_DEBARCH=armhf \ KBUILD_IMAGE=zImage \ KBUILD_DTB=imx6q-novena.dtb \ KBUILD_DESTDIR=usr/share/linux-novena \ KDEB_PKGVERSION=${version} \ EMAIL="xobs@kosagi.com" \ NAME="Sean Cross" \ dtbs || exit 1 make -j${threads} \ LD=gold \ KBUILD_DEBARCH=armhf \ KBUILD_IMAGE=zImage \ KBUILD_DTB=imx6q-novena.dtb \ KBUILD_DESTDIR=usr/share/linux-novena \ KDEB_PKGVERSION=${version} \ EMAIL="xobs@kosagi.com" \ NAME="Sean Cross" \ deb-pkg