tools: Add build script for ARM64 kernel of rpi3
authorJoonyoung Shim <jy0922.shim@samsung.com>
Wed, 25 Jan 2017 04:50:37 +0000 (13:50 +0900)
committerJunghoon Kim <jhoon20.kim@samsung.com>
Tue, 11 Jun 2019 00:35:49 +0000 (09:35 +0900)
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>
build-rpi3-arm64.sh [new file with mode: 0755]

diff --git a/build-rpi3-arm64.sh b/build-rpi3-arm64.sh
new file mode 100755 (executable)
index 0000000..4655746
--- /dev/null
@@ -0,0 +1,26 @@
+#!/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