Scripts to ease building the kernel and debian packages for the kernel

This commit is contained in:
Matt Sealey
2011-12-02 18:41:23 -06:00
parent 0d89a534b1
commit 3884134c16
3 changed files with 25 additions and 0 deletions

7
arm-toolchain.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
archname="arm"
arch="ARCH=${archname}"
toolchain="arm-linux-gnueabi-"
compiler="CROSS_COMPILE=${toolchain}"
numjobs="16"
jobs="-j${numjobs}"

5
config.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
. arm-toolchain.sh
make ${arch} ${compiler} ${jobs} mx51_efikamx_defconfig

13
make-deb.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
. arm-toolchain.sh
target=$1
if [ "x${target}" == "x" ]; then
target="kernel_image"
fi
packagedate=$(date +%Y.%m)
make-kpkg --uc --us --initrd --cross-compile ${toolchain} --subarch efikamx --jobs=${numjobs} --rootcmd=fakeroot --arch armel --revision ${packagedate} ${target}