From: Hoegeun Kwon Date: Wed, 14 Aug 2019 09:58:44 +0000 (+0900) Subject: tools: Add build script for ARM kernel of rpi4 X-Git-Tag: submit/tizen/20220208.074352~206 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cc904c68e3f350731522b533a30775d9a901d571;p=platform%2Fkernel%2Flinux-rpi.git tools: Add build script for ARM kernel of rpi4 Add build script for ARM kernel of rpi4. Change-Id: I96cf3d55235a0a67d610bf87aa9ddf4f5e972411 Signed-off-by: Hoegeun Kwon --- diff --git a/build-rpi4-arm32.sh b/build-rpi4-arm32.sh new file mode 100755 index 0000000..ef88cbe --- /dev/null +++ b/build-rpi4-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_bcm2711_defconfig +fi + +make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j8 + +if [ ! -f "./arch/arm/boot/zImage" ]; then + echo "Build fail" + exit 1 +fi