script: adjust ccache support 26/256226/1
authorŁukasz Stelmach <l.stelmach@samsung.com>
Fri, 26 Mar 2021 14:19:20 +0000 (15:19 +0100)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Wed, 31 Mar 2021 06:05:09 +0000 (08:05 +0200)
Change-Id: Ia37a450bccf93ddf3daaca442be4d221df0d4036
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
build-rpi3.sh

index 40d7c1d..f68baac 100755 (executable)
@@ -30,10 +30,10 @@ if [ $1 = "arm" ]; then
        CROSS_COMPILER=arm-linux-gnueabi-
 
        if ! [ -e .config ] ; then
-               make ARCH=arm CROSS_COMPILE="$CROSS_COMPILER" tizen_bcm2709_defconfig
+               make ARCH=arm CROSS_COMPILE="${CCACHE} ${CROSS_COMPILER}" tizen_bcm2709_defconfig
        fi
 
-       make ARCH=arm CROSS_COMPILE="$CROSS_COMPILER" -j $NCPUS
+       make ARCH=arm CROSS_COMPILE="${CCACHE} ${CROSS_COMPILER}" -j $NCPUS
 
        if [ ! -f "./arch/arm/boot/zImage" ]; then
                echo "Build fail"
@@ -48,10 +48,10 @@ elif [ $1 = "arm64" ]; then
        CROSS_COMPILER=aarch64-linux-gnu-
 
        if ! [ -e .config ] ; then
-               make ARCH=arm64 CROSS_COMPILE="$CROSS_COMPILER" tizen_bcmrpi3_defconfig
+               make ARCH=arm64 CROSS_COMPILE="${CCACHE} ${CROSS_COMPILER}" tizen_bcmrpi3_defconfig
        fi
 
-       make ARCH=arm64 CROSS_COMPILE="$CROSS_COMPILER" -j $NCPUS
+       make ARCH=arm64 CROSS_COMPILE="${CCACHE} ${CROSS_COMPILER}" -j $NCPUS
 
        if [ ! -f "./arch/arm64/boot/Image" ]; then
                echo "Build fail"