3 NCPUS=`cat /proc/cpuinfo | grep processor | wc -l`
6 echo "Usage : $0 <architecture>"
7 echo " architecture : arm or arm64"
12 # Check this system has ccache
16 if [ "$?" -eq "0" ]; then
23 if [ $1 = "arm" ]; then
26 rm -f arch/arm/boot/zImage
27 rm -f arch/arm/boot/dts/*.dtb
29 if ! [ -e .config ] ; then
30 make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- tizen_bcm2711_defconfig
33 make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j $NCPUS
35 if [ ! -f "./arch/arm/boot/zImage" ]; then
39 elif [ $1 = "arm64" ]; then
42 rm -f arch/arm64/boot/Image
43 rm -f arch/arm64/boot/dts/broadcom/*.dtb
45 if ! [ -e .config ] ; then
46 make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- tizen_bcm2711_defconfig
48 make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j8
49 if [ ! -f "./arch/arm64/boot/Image" ]; then
55 scripts/mkbootimg_rpi4.sh