Creating a custom platform to pack a modified version of GCC for RISC-V

What exactly doesn’t work? A example firmware fails to be compiled? It can be compiled but fails to run? The platform can’t be installed?

Please read through:

The toolchain and framework packages usually do not reside within the platform. They are however referenced by the platform’s platform.json with the version expression detailing how to obtain that package; for examle

Doesn’t have a version expression (?)

Tells it to get it from the PIO Registry (https://registry.platformio.org/, pio pkg publish — PlatformIO latest documentation) matching SemVer 4.21001.xxx

Tells it to get it from a certain repository and branch.

Anything from pio pkg install — PlatformIO latest documentation is accepted version.

When the platform is installed, it installs its declared needed (non-optional) packages automatically.

Platforms or packages can be installed also from the commandline: pio pkg install — PlatformIO latest documentation