How to include a package (or so) without included json?

The esp8266 support I’m trying to renew should use the modern gcc toolset.
Similar platformio packages refer to a “toolchain-xtensa” which is ancient.
The espressif doc (slightly less ancient) wants me to download https://dl.espressif.com/dl/xtensa-lx106-elf-gcc8_4_0-esp-2020r3-linux-amd64.tar.gz (see Standard Setup of Toolchain for Linux — ESP8266 RTOS SDK Programming Guide documentation).
That archive doesn’t contain the json which platformio requires.

So how to I specify this as a requirement for my “platform” ?

You can’t. You need to repackage and reupload it and point to that.

How? There’s GCC 10 from 3 years ago, matching what’s used in the Arduino-ESP8266 core at https://github.com/earlephilhower/esp-quick-toolchain/releases

Pff.

“packages”: {
“toolchain-xtensa”: {
“type”: “toolchain”,
“version”: “5.100300.230224”,
“url”: “https://github.com/earlephilhower/esp-quick-toolchain/releases/download/3.2.0-gcc10.3/i686-linux-gnu.xtensa-lx106-elf-c791b74.230224.tar.gz”
},

and the result is

victus: {731} pio run -v
Processing esp8266-d1mini (platform: esp8266rtos; framework: esp8266rtos; board: d1_mini)
------------------------------------------------------------------------------------------------------------------------
Tool Manager: Installing toolchain-xtensa @ 5.100300.230224
UnknownPackageError: Could not find the package with 'toolchain-xtensa @ 5.100300.230224' requirements for your system 'linux_x86_64'

No, it’s in the PIO registry, so you should refer to it via its version, e.g. see https://registry.platformio.org/tools/platformio/toolchain-xtensa/compatibility

   "version": "~2.100300.0"