Closed Gifford47 closed 1 year ago
A few problems 1) you originally tried to create your custom env by extending some tasmota variants. I see that you have now commented that. OK because that is not supported 2) you are ré-defining some FIRMWARE_XXX variants which does exactly what's it is intended to : make that build exactly that variant without anything more or less
Check again the First Rule of Compiling-your-own-build: You can only customize "tasmota" and not any of it's variant. As soon as you enable a variant, it overrides your customization.
If you want to do the like of a given variant you must include in your override.h all defines and undef needed.
In addition the name you are giving to your binary will create problems for upgrades especially on esp8266. You should name your binaries "tasmota-whateveryouwantafterthedash.bin" but never change the "tasmota-" part.
thanks for your explanation!
apart from the other builds, this build should work normally but it doesnt:
[env:tasmota_latest_sensors-shutter-full_rules]
;extends = env:tasmota-sensors
build_unflags = ${common.build_unflags}
build_flags = ${env.build_flags} -D FW_FULLRULES -D SHUTTERS -D SENSORS
i use a local docker container with the latest tasmota version
What do you mean should work ?
If your user_config_override.h
is still the same, you are still doing the same errror
#ifdef SENSORS
#ifndef FIRMWARE_SENSORS
#define FIRMWARE_SENSORS
#endif
#endif
means that -D SENSORS
will define FIRMWARE_SENSORS
which will build tasmota-sensors
Stop using FIRMWARE_XXXX
in your user_config_override.h
This is not a docker-tasmota issue, if you need help compiling Tasmota join the Discord server
hi!
i want to compile (on debian) my own build with multiple feature enabled like shutters or sensors. but my builds do not contain these features. i tested several builds with shutter feature.
platformio_override.ini and user_config_override.h are copied to docker-tasmota/Tasmota. my command is:
./compile.sh tasmota_latest-full_rules tasmota_latest_sensors-shutter-full_rules tasmota_latest_lite-full_rules tasmota_latest_min-full_rules tasmota_latest_lite-shutter-full_rules
platformio_override.ini:
user_config_override.h:
where is my mistake?