18 lines
378 B
Bash
Executable File
18 lines
378 B
Bash
Executable File
#!/bin/bash
|
|
#env var
|
|
root_path=$(pwd)
|
|
echo $root_path
|
|
cd ../../toolchain/bin
|
|
ls
|
|
if [ -e "./arm-none-linux-gnueabihf-gcc" ]; then
|
|
echo find toochain arm-none-linux-gnueabihf-gcc
|
|
toolchain_path=$(pwd)
|
|
export PATH=$PATH:$toolchain_path
|
|
# arm-none-linux-gnueabihf-gcc -v
|
|
cd $root_path
|
|
else
|
|
echo "toochain no find"
|
|
exit 1
|
|
fi
|
|
make -f ../Makefile -j12 all
|