Package folder content

Is ‘platform.txt’ file contained in packages subfolder used in some sort of way?
I see something related to binary signing:

recipe.hooks.sketch.prebuild.pattern="{runtime.tools.python3.path}/python3" -I ```
"{runtime.tools.signing}" --mode header --publickey "{build.source.path}/public.key" --out "{build.path}/core/Updater_Signing.h"

something I need for signed OTA

platform.txt goes completely unused. All build logic is implemented in Python.

What platform is this for? ESP32, RP2040?

esp8266 now but later I’ll need it for ESP32

Not implemented for esp8266, not implemented for esp32.

You can write custom scripts to post-sign the binary though.

I was aware of first request pending, not the 2nd. I can sign binary but it will not be used by updater core code because of “ARDUINO_SIGNING” not is defined

Oh but for that you can add build_flags = -DARDUINO_SIGNING to the platformio.ini to turn on that macro globally.

honestly I just saw now I have it already present…mmm I’ll dig a little more on that.
Thanks for your time

Ok, now I see. It’s already define in core as 0, compiler generare a redefinition warning, and “core” value is used

At the end I got the magic:
Enabling binary signing
message