tools: Add build script for ARM kernel of rpi3
authorHoegeun Kwon <hoegeun.kwon@samsung.com>
Wed, 3 Jul 2019 05:18:50 +0000 (14:18 +0900)
committerJunghoon Kim <jhoon20.kim@samsung.com>
Thu, 2 Apr 2020 04:09:06 +0000 (13:09 +0900)
Add build script for ARM kernel of rpi3.

Change-Id: I35a7dd2148350f775d3d96a478dac66190079d68
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
build-rpi3-arm32.sh [new file with mode: 0755]

diff --git a/build-rpi3-arm32.sh b/build-rpi3-arm32.sh
new file mode 100755 (executable)
index 0000000..1e8c02a
--- /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/arm/boot/zImage
+rm -f arch/arm/boot/dts/*.dtb
+
+if ! [ -e .config ] ; then
+       make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- tizen_bcm2709_defconfig
+fi
+
+make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j8
+
+if [ ! -f "./arch/arm/boot/zImage" ]; then
+       echo "Build fail"
+       exit 1
+fi