Skip to content

Commit

Permalink
Reformat "Platform Variants", especially to add amd64, ppc64le, riscv64
Browse files Browse the repository at this point in the history
This changes the table to be a line per ISA instead of per variant; adds x86-64, POWER8+, and RISC-V; and notes the appropriate "Go analog" in each case (because these values mirror Go's choices, like our use of `GOOS` and `GOARCH`).

Of particular note, `GOARM64` and `GORISCV64` are not fully implemented or released in Go yet, but they are accepted proposals with in-progress implementations or already merged to main:

- `GOARM64`: https://golang.org/issue/60905
- `GORISCV64`: https://golang.org/issue/61476#issuecomment-1791156741

Signed-off-by: Tianon Gravi <admwiggin@gmail.com>
  • Loading branch information
tianon committed Feb 27, 2024
1 parent f5f8701 commit dd2fe12
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions image-index.md
Expand Up @@ -105,13 +105,15 @@ For the media type(s) that this document is compatible with, see the [matrix][ma
## Platform Variants

When the variant of the CPU is not listed in the table, values are implementation-defined and SHOULD be submitted to this specification for standardization.

| ISA/ABI | `architecture` | `variant` |
|-----------------|----------------|-------------|
| ARM 32-bit, v6 | `arm` | `v6` |
| ARM 32-bit, v7 | `arm` | `v7` |
| ARM 32-bit, v8 | `arm` | `v8` |
| ARM 64-bit, v8 | `arm64` | `v8` |
These values SHOULD match (or be similar to) their analog listed in [the Go Language document][go-environment2].

| ISA/ABI | `architecture` | `variant` | Go analog |
|------------|----------------|-----------------------|-------------|
| ARM 32-bit | `arm` | `v6`, `v7`, `v8` | `GOARM` |
| ARM 64-bit | `arm64` | `v8`, `v8.1`, … | `GOARM64` |
| POWER | `ppc64le` | `power8`, `power9`, … | `GOPPC64` |
| RISC-V | `riscv64` | `rva20u64`, … | `GORISCV64` |
| x86-64 | `amd64` | `v1`, `v2`, `v3`, … | `GOAMD64` |

## Example Image Index

Expand Down

0 comments on commit dd2fe12

Please sign in to comment.