Skip to content

Commit

Permalink
Merge pull request #1 from hosek/master
Browse files Browse the repository at this point in the history
Bootstrap script more macOS friendly
  • Loading branch information
AlmightyFrog authored Sep 9, 2020
2 parents 270630e + 94edbfe commit db3c7a3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions 00_bootstrap.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

echo \#\# First prepare build environment
wget http://shyboy.oss-cn-shenzhen.aliyuncs.com/readonly/tc32_gcc_v2.0.tar.bz2 -O docker/tc32_gcc.tar.bz2
curl http://shyboy.oss-cn-shenzhen.aliyuncs.com/readonly/tc32_gcc_v2.0.tar.bz2 > docker/tc32_gcc.tar.bz2
docker build ./docker/ -t tc32


Expand All @@ -11,5 +11,9 @@ git clone --depth=1 https://github.com/Ai-Thinker-Open/Telink_825X_SDK SDK

echo \#\# Download ATC_MiThermometer and patch makefile
git clone https://github.com/atc1441/ATC_MiThermometer
sed -i "/TEL_PATH := ..\/../c TEL_PATH := ..\/../SDK\/" ATC_MiThermometer/ATC_Thermometer/makefile

if [[ "$OSTYPE" == "darwin"* ]]; then
sed -i '' 's#TEL_PATH := ..\/..#TEL_PATH := ..\/../SDK\/#g' ATC_MiThermometer/ATC_Thermometer/makefile
else
sed -i "/TEL_PATH := ..\/../c TEL_PATH := ..\/../SDK\/" ATC_MiThermometer/ATC_Thermometer/makefile
fi

0 comments on commit db3c7a3

Please sign in to comment.