mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-07-26 06:38:42 +00:00
410bb9c103
* feat: add inheritable-only field to hide processor-level targets from listing Processor-level targets like esp32, rp2040, etc. have flash-method set so they leak through the existing heuristic filter in GetTargetSpecs and appear in `tinygo targets` output. Add an "inheritable-only" JSON field that is checked on raw JSON before inheritance resolution, preventing these non-board targets from being listed while keeping them loadable for direct builds and inheritance. Ref: tinygo-org/tinygo#5178 * fix: prevent inheritable-only from propagating to child targets The InheritableOnly bool field was propagating from parent to child targets through overrideProperties, which would hide board targets from GetTargetSpecs. Fix by preserving/restoring the field across resolveInherits. Also simplify GetTargetSpecs by removing the raw JSON pre-check workaround and remove nonexistent esp32c6 from tests. * prevent build commands to use inheritable only targets
26 lines
818 B
JSON
26 lines
818 B
JSON
{
|
|
"inherits": ["cortex-m33"],
|
|
"inheritable-only": true,
|
|
"build-tags": ["rp2350", "rp"],
|
|
"scheduler": "tasks",
|
|
"flash-1200-bps-reset": "true",
|
|
"flash-method": "msd",
|
|
"serial": "usb",
|
|
"msd-volume-name": ["RP2350"],
|
|
"msd-firmware-name": "firmware.uf2",
|
|
"binary-format": "uf2",
|
|
"uf2-family-id": "0xe48bff59","comment":"See page 393 of RP2350 datasheet: RP2350 Arm Secure image (i.e. one intended to be booted directly by the bootrom)",
|
|
"extra-files": [
|
|
"src/device/rp/rp2350.s",
|
|
"targets/rp2350_embedded_block.s"
|
|
],
|
|
"ldflags": [
|
|
"--defsym=__flash_size=2M",
|
|
"--defsym=__num_stacks=2"
|
|
],
|
|
"linkerscript": "targets/rp2350.ld",
|
|
"openocd-interface": "picoprobe",
|
|
"openocd-transport": "swd",
|
|
"openocd-target": "rp2350"
|
|
}
|