ec2-build/build-kernel: temporarily go to the 3.2 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:/mnt/u-boot/tools:$PATH
5 node --version
6 git clone git://github.com/jadonk/kernel.git /mnt/build/kernel
7 git clone git://github.com/jadonk/u-boot.git /mnt/build/u-boot
8 git clone git://github.com/jadonk/am33x-cm3.git /mnt/build/am33x-cm3
9 cd /mnt/build/u-boot
10 make -j16 tools
11 cd /mnt/build/kernel
12 git checkout 3.2
13 ./patch.sh
14 cp configs/beaglebone kernel/arch/arm/configs/beaglebone_defconfig
15 cp /mnt/am33x-cm3/bin/am335x-pm-firmware.bin kernel/firmware/am335x-pm-firmware.bin
16 cd kernel
17 mkdir rootfs
18 make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- beaglebone_defconfig
19 make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- -j16 uImage dtbs
20 make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- -j16 modules
21 make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- INSTALL_MOD_PATH=$HOME/kernel/kernel/rootfs modules_install
22 make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- uImage-dtb.am335x-bone
23 make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- uImage-dtb.am335x-bonelt