ARM: configs tizen_bcm2711_defconfig: Enable CONFIG_SENSORS_RASPBERRYPI_HWMON
[platform/kernel/linux-rpi.git] / build-rpi4-arm32.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/arm/boot/zImage
15 rm -f arch/arm/boot/dts/*.dtb
16
17 if ! [ -e .config ] ; then
18         make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- tizen_bcm2711_defconfig
19 fi
20
21 make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j8
22
23 if [ ! -f "./arch/arm/boot/zImage" ]; then
24         echo "Build fail"
25         exit 1
26 fi
27
28 scripts/mkbootimg_rpi4.sh