1
0
Fork 0
mirror of https://github.com/Luzifer/tasmota-build.git synced 2024-11-09 18:00:07 +00:00
tasmota-build/Makefile
Knut Ahlers a2e9313bcb
Prepare specialized configs
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-04-30 22:19:09 +02:00

33 lines
695 B
Makefile

TASMOTA_VERSION=v5.13.0
default: build_sonoff build_sonoff-minimal
chown:
chown -R $(UID) build
ci: full-clean default
build_%: download update_user-config_$* venv
cd tasmota && ../venv/bin/platformio run -e $*
mkdir -p build
cp tasmota/.pioenvs/$*/firmware.bin build/$*.bin
clean:
rm -rf tasmota venv
download:
git clone https://github.com/arendst/Sonoff-Tasmota.git tasmota
cd tasmota && git reset --hard $(TASMOTA_VERSION)
full-clean: clean
rm -rf build
update_user-config_%: venv
./venv/bin/python update.py config_$*.yml
cd tasmota && git --no-pager diff -w sonoff/user_config.h
venv:
virtualenv -p python2 venv
./venv/bin/pip install -r requirements.txt
.PHONY: venv