This patch adds build script to build the ARM64 kernel for rpi3 board.
v2: Remove codes for creating fit style image from its
Change-Id: Ie7fa6dbf0b6838832b6a05326fa0ca27e3a7a812
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
--- /dev/null
+#!/bin/bash
+
+# Check this system has ccache
+check_ccache()
+{
+ type ccache
+ if [ "$?" -eq "0" ]; then
+ CCACHE=ccache
+ fi
+}
+
+check_ccache
+
+rm -f arch/arm64/boot/Image
+rm -f arch/arm64/boot/dts/broadcom/*.dtb
+
+if ! [ -e .config ] ; then
+ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- tizen_bcmrpi3_defconfig
+fi
+
+make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j8
+make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- dtbs
+if [ ! -f "./arch/arm64/boot/Image" ]; then
+ echo "Build fail"
+ exit 1
+fi