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:
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
|
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:
|
||||||
|
|
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue