mm: Change fault_around_bytes default value from 65536 to 4096
[platform/kernel/linux-rpi.git] / build-rpi4.sh
1 #!/bin/bash
2
3 if [ $# != 1 ]; then
4         echo "Usage : $0 <architecture>"
5         echo "  architecture : arm or arm64"
6         echo "  e.g) $0 arm"
7         exit
8 fi
9
10 # Check this system has ccache
11 check_ccache()
12 {
13         type ccache
14         if [ "$?" -eq "0" ]; then
15                 CCACHE=ccache
16         fi
17 }
18
19 check_ccache
20
21 if [ $1 = "arm" ]; then
22         echo "ARM"
23
24         rm -f arch/arm/boot/zImage
25         rm -f arch/arm/boot/dts/*.dtb
26
27         if ! [ -e .config ] ; then
28                 make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- tizen_bcm2711_defconfig
29         fi
30
31         make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j8
32
33         if [ ! -f "./arch/arm/boot/zImage" ]; then
34                 echo "Build fail"
35                 exit 1
36         fi
37 elif [ $1 = "arm64" ]; then
38         echo "ARM64"
39
40         rm -f arch/arm64/boot/Image
41         rm -f arch/arm64/boot/dts/broadcom/*.dtb
42
43         if ! [ -e .config ] ; then
44                 make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- tizen_bcm2711_defconfig
45         fi
46         make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j8
47         if [ ! -f "./arch/arm64/boot/Image" ]; then
48                 echo "Build fail"
49                 exit 1
50         fi
51 fi
52
53 scripts/mkbootimg_rpi4.sh