makeboarddeb: use gcc-5 for Debian sid

This commit is contained in:
Piotr Król 2016-05-26 01:26:02 +02:00
parent 265e1a2e21
commit 55bd20e7a9

View File

@ -120,7 +120,12 @@ create_board_package (){
if [[ $LINUXCONFIG == *sun* ]] ; then
if [[ $BRANCH != next ]]; then
# add soc temperature app
arm-linux-gnueabihf-gcc $SRC/lib/scripts/sunxi-temp/sunxi_tp_temp.c -o $destination/usr/local/bin/sunxi_tp_temp
local codename=$(lsb_release -sc)
if [[ -z $codename || "sid" == *"$codename"* ]]; then
arm-linux-gnueabihf-gcc-5 $SRC/lib/scripts/sunxi-temp/sunxi_tp_temp.c -o $destination/usr/local/bin/sunxi_tp_temp
else
arm-linux-gnueabihf-gcc $SRC/lib/scripts/sunxi-temp/sunxi_tp_temp.c -o $destination/usr/local/bin/sunxi_tp_temp
fi
fi
# lamobo R1 router switch config