From: Joonyoung Shim Date: Wed, 25 Jan 2017 04:50:37 +0000 (+0900) Subject: tools: Add build script for ARM64 kernel of rpi3 X-Git-Tag: submit/tizen/20170801.050436~43 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2c7875b10ab2e3a3f952396462531fdd1e0d77d8;p=platform%2Fkernel%2Flinux-rpi3.git tools: Add build script for ARM64 kernel of rpi3 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 --- diff --git a/build-rpi3-arm64.sh b/build-rpi3-arm64.sh new file mode 100755 index 000000000000..4655746b601b --- /dev/null +++ b/build-rpi3-arm64.sh @@ -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