packaging: Change the kernel version of the spec file
[platform/kernel/linux-rpi.git] / build-rpi3-arm64.sh
1 #!/bin/bash
2
3 # Check this system has ccache
4 check_ccache()
5 {
6         type ccache
7         if [ "$?" -eq "0" ]; then
8                 CCACHE=ccache
9         fi
10 }
11
12 check_ccache
13
14 rm -f arch/arm64/boot/Image
15 rm -f arch/arm64/boot/dts/broadcom/*.dtb
16
17 if ! [ -e .config ] ; then
18         make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- tizen_bcmrpi3_defconfig
19 fi
20
21 make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j8
22 make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- dtbs
23 if [ ! -f "./arch/arm64/boot/Image" ]; then
24         echo "Build fail"
25         exit 1
26 fi
27
28 make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- modules_prepare -j8
29 make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- modules -j8