Skip to content

Commit e86a258

Browse files
committed
[build.sh] added ccache for pull-request #20 from @pkalemba
1 parent 870b428 commit e86a258

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ crosscompile=0
1010
if [[ -z $(cat /proc/cpuinfo | grep -i 'model name.*ArmV7') ]]; then
1111
if [[ -z "$(which arm-linux-gnueabihf-gcc)" ]];then echo "please install gcc-arm-linux-gnueabihf";exit 1;fi
1212

13-
export ARCH=arm;export CROSS_COMPILE=arm-linux-gnueabihf-
13+
export ARCH=arm;export CROSS_COMPILE='ccache arm-linux-gnueabihf-'
1414
crosscompile=1
1515
fi;
1616

1717
#Check Dependencies
1818
PACKAGE_Error=0
19-
for package in "u-boot-tools" "bc" "make" "gcc" "libc6-dev" "libncurses5-dev" "libssl-dev" "fakeroot"; do
19+
for package in "u-boot-tools" "bc" "make" "gcc" "libc6-dev" "libncurses5-dev" "libssl-dev" "fakeroot" "ccache"; do
2020
TESTPKG=$(dpkg -l |grep "\s${package}")
2121
if [[ -z "${TESTPKG}" ]];then echo "please install ${package}";PACKAGE_Error=1;fi
2222
done
@@ -127,7 +127,7 @@ EOF
127127
fakeroot dpkg-deb --build bananapi-r2-image ../debian
128128
cd ..
129129
ls -lh debian/*.deb
130-
dpkg -c debian/bananapi-r2-image-${kernbranch}_${kernver}-1_armhf.deb
130+
dpkg -c debian/bananapi-r2-image-${kernbranch,,}_${kernver}-1_armhf.deb
131131
else
132132
echo "First build kernel ${ver}"
133133
echo "eg: ./build"

0 commit comments

Comments
 (0)