23 lines
740 B
Bash
Executable file
23 lines
740 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
############################################################################################
|
|
#
|
|
# Show how to build buildroot automatically -- Benn
|
|
#
|
|
###########################################################################################
|
|
|
|
echo -e '\033[0;31;1m#######################################\033[0m'
|
|
echo -e '\033[0;31;1m# skip make buildroot for fiber_a31s #\033[0m'
|
|
echo -e '\033[0;31;1m#######################################\033[0m'
|
|
CUR_DIR=`pwd`
|
|
export PATH=${CUR_DIR}/output/external-toolchain/bin:$PATH
|
|
echo $CUR_DIR
|
|
if [ ! -e output ]; then
|
|
mkdir output
|
|
fi
|
|
if [ ! -e output/external-toolchain ];then
|
|
cd output
|
|
tar -jxf ../../tools/toolschain/gcc-linaro.tar.bz2
|
|
mv gcc-linaro external-toolchain
|
|
fi
|