1
0
Fork 0
mirror of https://github.com/Luzifer/tasmota-build.git synced 2024-12-22 13:51:19 +00:00
Build environment to automatically configure and build a Sonoff-Tasmota image
Find a file
Knut Ahlers c666d70476
Upgrade to tasmota 6.2.1
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-10-05 12:59:11 +02:00
.gitignore Initial version 2018-01-18 20:13:35 +01:00
config_sonoff-minimal.yml Upgrade to tasmota 6.2.1 2018-10-05 12:59:11 +02:00
config_sonoff.yml Upgrade to tasmota 6.2.1 2018-10-05 12:59:11 +02:00
Makefile Upgrade to tasmota 6.2.1 2018-10-05 12:59:11 +02:00
README.md Add ability to build using docker 2018-01-18 20:39:25 +01:00
requirements.txt Initial version 2018-01-18 20:13:35 +01:00
update.py Prepare specialized configs 2018-04-30 22:19:09 +02:00

Luzifer / tasmota-build

Inside this repostitory there is a small build environment to automatically configure and build a Sonoff-Tasmota image.

Usage

  • Adjust config.yml to your needs
    • !undef ensures the parameter is not defined
    • !def ensures the parameter is defined
    • ${VAR} reads the contents of the parameter from the environment
    • Any other string will be inserted into the config
  • Define a env file for everything you are reading from the environment (Format: VAR=VALUE, one per line)
  • Build the firmware
    # docker run --rm -ti --env-file=env -e UID=$(id -u) -v $(pwd):/src -w /src python:2.7 make default clean chown
    

Pay attention: When defining strings you need to wrap them in double quotes for the compiler to understand them as strings: PARAM: '"mystring"'. If you are defining numbers you will define them like this: PARAM: '1'. Constants are used like this: PARAM: CONSTANT.