2018-10-05 10:59:11 +00:00
|
|
|
TASMOTA_VERSION=v6.2.1
|
2018-01-18 19:13:35 +00:00
|
|
|
|
|
|
|
default: build_sonoff build_sonoff-minimal
|
|
|
|
|
2018-01-18 19:39:25 +00:00
|
|
|
chown:
|
|
|
|
chown -R $(UID) build
|
|
|
|
|
|
|
|
ci: full-clean default
|
2018-01-18 19:13:35 +00:00
|
|
|
|
2018-10-31 11:35:25 +00:00
|
|
|
build_%: download
|
2018-04-30 20:26:56 +00:00
|
|
|
$(MAKE) update_user-config_$*
|
2018-01-18 19:13:35 +00:00
|
|
|
cd tasmota && ../venv/bin/platformio run -e $*
|
|
|
|
mkdir -p build
|
|
|
|
cp tasmota/.pioenvs/$*/firmware.bin build/$*.bin
|
|
|
|
|
|
|
|
clean:
|
2018-01-18 19:39:25 +00:00
|
|
|
rm -rf tasmota venv
|
2018-01-18 19:13:35 +00:00
|
|
|
|
|
|
|
download:
|
|
|
|
git clone https://github.com/arendst/Sonoff-Tasmota.git tasmota
|
|
|
|
cd tasmota && git reset --hard $(TASMOTA_VERSION)
|
|
|
|
|
2018-01-18 19:39:25 +00:00
|
|
|
full-clean: clean
|
|
|
|
rm -rf build
|