SolidRun / pkg-linux

Cubox-i/Hummingboard kernel packaging
3 stars 2 forks source link

This is a deb build tree for the Linux Kernel, utilizing debhelper.

Branches - pay attention, there are many!

Cross-Compiling for armhf:

  1. Install Cross-Compiler for armhf (starting from Stretch, follow the "For unstable" section):
    https://wiki.debian.org/CrossToolchains#Installation
  2. install build dependencies:
    
    sudo apt-get install debhelper bc lzop linux-libc-dev
  3. Get the Code:
    
    git clone --branch <name_branch_here> https://github.com/mxOBS/deb-pkg_kernel-xyz.git
    cd deb-pkg_kernel-xyz
    git submodule update --init
  4. build deb:
    
    cd deb-pkg_kernel-xyz
    dpkg-buildpackage -a armhf -b

Building natively on armhf:

  1. install build dependencies:
    
    sudo apt-get install debhelper bc lzop
  2. Get the Code (Warning: initial clone of the sumodule may fail with less than 2GB of RAM!):
    
    git clone --branch <name_branch_here> https://github.com/mxOBS/deb-pkg_kernel-xyz.git
    cd deb-pkg_kernel-xyz
    git submodule update --init
  3. build deb:
    
    cd deb-pkg_kernel-xyz
    dpkg-buildpackage -a armhf -b

Maintainer-Scripts Documentation:

kernel package initrd postinst logic:

  1. manage unversioned symlinks (zImage, initrd)
  2. call system-wide hooks in /etc/kernel/.d/