1
0
Fork 0
mirror of https://github.com/Luzifer/tasmota-build.git synced 2024-11-10 02:10:07 +00:00

Prepare specialized configs

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-04-30 22:19:09 +02:00
parent d61f3e3346
commit a2e9313bcb
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
3 changed files with 5 additions and 4 deletions

View file

@ -7,7 +7,7 @@ chown:
ci: full-clean default ci: full-clean default
build_%: download update_user-config venv build_%: download update_user-config_$* venv
cd tasmota && ../venv/bin/platformio run -e $* cd tasmota && ../venv/bin/platformio run -e $*
mkdir -p build mkdir -p build
cp tasmota/.pioenvs/$*/firmware.bin build/$*.bin cp tasmota/.pioenvs/$*/firmware.bin build/$*.bin
@ -22,8 +22,8 @@ download:
full-clean: clean full-clean: clean
rm -rf build rm -rf build
update_user-config: venv update_user-config_%: venv
./venv/bin/python update.py ./venv/bin/python update.py config_$*.yml
cd tasmota && git --no-pager diff -w sonoff/user_config.h cd tasmota && git --no-pager diff -w sonoff/user_config.h
venv: venv:

View file

@ -2,6 +2,7 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import os import os
import sys
import yaml import yaml
@ -25,7 +26,7 @@ def get_line(param, content, comment):
def main(): def main():
cfg = yaml.load(open('config.yml')) cfg = yaml.load(open(sys.argv[1]))
config = open('tasmota/sonoff/user_config.h').read().split('\n') config = open('tasmota/sonoff/user_config.h').read().split('\n')
for (i, line) in enumerate(config): for (i, line) in enumerate(config):