Novena linux-kernel

From Studio Kousagi Wiki
Revision as of 07:22, 12 October 2014 by Xobs (talk | contribs) (Created page with "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 dire...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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