ec2-build: added build-kernel
[beagleboard-validation:scripts.git] / ec2-build / build-kernel.sh
1 #!/bin/sh
2 set -e
3 set -x
4 PATH=/usr/local/angstrom/arm/bin:$PATH
5 git clone git://github.com/jadonk/kernel.git /mnt/kernel
6 cd /mnt/kernel
7 git checkout 3.8
8 ./patch.sh
9 cp configs/beaglebone kernel/arch/arm/configs/beaglebone_defconfig
10 wget http://arago-project.org/git/projects/?p=am33x-cm3.git\;a=blob_plain\;f=bin/am335x-pm-firmware.bin\;hb=HEAD -O kernel/firmware/am335x-pm-firmware.bin
11 d kernel
12 mkdir rootfs
13 make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- beaglebone_defconfig
14 make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- -j4 uImage dtbs
15 make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- -j4 modules
16 make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- INSTALL_MOD_PATH=$HOME/kernel/kernel/rootfs modules_install
17 make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- uImage-dtb.am335x-bone
18 make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- uImage-dtb.am335x-bonelt