mirror of
https://github.com/Luzifer/tasmota-build.git
synced 2024-11-09 18:00:07 +00:00
Prepare specialized configs
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
d61f3e3346
commit
a2e9313bcb
3 changed files with 5 additions and 4 deletions
6
Makefile
6
Makefile
|
@ -7,7 +7,7 @@ chown:
|
|||
|
||||
ci: full-clean default
|
||||
|
||||
build_%: download update_user-config venv
|
||||
build_%: download update_user-config_$* venv
|
||||
cd tasmota && ../venv/bin/platformio run -e $*
|
||||
mkdir -p build
|
||||
cp tasmota/.pioenvs/$*/firmware.bin build/$*.bin
|
||||
|
@ -22,8 +22,8 @@ download:
|
|||
full-clean: clean
|
||||
rm -rf build
|
||||
|
||||
update_user-config: venv
|
||||
./venv/bin/python update.py
|
||||
update_user-config_%: venv
|
||||
./venv/bin/python update.py config_$*.yml
|
||||
cd tasmota && git --no-pager diff -w sonoff/user_config.h
|
||||
|
||||
venv:
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
import yaml
|
||||
|
||||
|
@ -25,7 +26,7 @@ def get_line(param, content, comment):
|
|||
|
||||
|
||||
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')
|
||||
|
||||
for (i, line) in enumerate(config):
|
||||
|
|
Loading…
Reference in a new issue