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/20200402.094258~276 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ed19c771ef4d474787bcb36e5d47be291ecd5835;p=platform%2Fkernel%2Flinux-rpi.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 0000000..4655746 --- /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