From 5410fa1888028986cef4edfed467780a980be8c6 Mon Sep 17 00:00:00 2001 From: Hoegeun Kwon Date: Wed, 3 Jul 2019 14:18:50 +0900 Subject: [PATCH] tools: Add build script for ARM kernel of rpi3 Add build script for ARM kernel of rpi3. Change-Id: I35a7dd2148350f775d3d96a478dac66190079d68 Signed-off-by: Hoegeun Kwon --- build-rpi3-arm32.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 build-rpi3-arm32.sh diff --git a/build-rpi3-arm32.sh b/build-rpi3-arm32.sh new file mode 100755 index 0000000..1e8c02a --- /dev/null +++ b/build-rpi3-arm32.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/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 -- 2.7.4