Skip to content

Commit

Permalink
Merge pull request #4 from martonmiklos/export_tel_path_insteac_patching
Browse files Browse the repository at this point in the history
Use alternative method for setting the TEL_PATH at make
  • Loading branch information
AlmightyFrog authored Nov 22, 2020
2 parents 469c559 + 7bf29aa commit fd77c6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions 00_bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,5 @@ echo \#\# Now download Telink 825X SDK
git clone --depth=1 https://github.com/Ai-Thinker-Open/Telink_825X_SDK SDK


echo \#\# Download ATC_MiThermometer and patch makefile
echo \#\# Download ATC_MiThermometer project
git clone https://github.com/atc1441/ATC_MiThermometer

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
2 changes: 1 addition & 1 deletion 01_make.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

docker run --rm -v $PWD:/app -it tc32 -c "cd ATC_MiThermometer/ATC_Thermometer && make $@"
docker run --rm -v $PWD:/app -it tc32 -c "cd ATC_MiThermometer/ATC_Thermometer && TEL_PATH=../../SDK make $@"

0 comments on commit fd77c6f

Please sign in to comment.