diff options
author | Hoegeun Kwon <hoegeun.kwon@samsung.com> | 2019-07-03 14:18:50 +0900 |
---|---|---|
committer | Hoegeun Kwon <hoegeun.kwon@samsung.com> | 2019-07-03 10:43:49 +0000 |
commit | 5410fa1888028986cef4edfed467780a980be8c6 (patch) | |
tree | 67b6d221ba8c87d71c57527c7d14a8c7b345822a | |
parent | aa7ccee8cb9def4d3866ff7a9cdcca60b5ec2f60 (diff) | |
download | linux-rpi3-5410fa1888028986cef4edfed467780a980be8c6.tar.gz linux-rpi3-5410fa1888028986cef4edfed467780a980be8c6.tar.bz2 linux-rpi3-5410fa1888028986cef4edfed467780a980be8c6.zip |
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 <hoegeun.kwon@samsung.com>
-rwxr-xr-x | build-rpi3-arm32.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/build-rpi3-arm32.sh b/build-rpi3-arm32.sh new file mode 100755 index 000000000000..1e8c02adc0a2 --- /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 |