Skip to content

Add powerpc64le-unknown-freebsd image#1781

Open
pkubaj wants to merge 1 commit into
cross-rs:mainfrom
pkubaj:add_freebsd_ppc64
Open

Add powerpc64le-unknown-freebsd image#1781
pkubaj wants to merge 1 commit into
cross-rs:mainfrom
pkubaj:add_freebsd_ppc64

Conversation

@pkubaj

@pkubaj pkubaj commented Jun 6, 2026

Copy link
Copy Markdown

Adds a cross image and target entry for powerpc64le-unknown-freebsd,
mirroring the existing aarch64-unknown-freebsd support: a Dockerfile
that builds a binutils/gcc cross toolchain against a FreeBSD 13
powerpc64le sysroot (assembled from the release base.txz), the
freebsd-common.sh arch mapping (FreeBSD ships powerpc64le releases
under powerpc/powerpc64le/), and the targets.toml entry that drives
CI and codegen.

Also teach Architecture parsing the powerpc64le arch string: the
FreeBSD targets are TargetTriple::Other, so ImagePlatform::from_target
parses the arch substring, and the Ppc64Le variant lacked a
powerpc64le alias (it only matched the lowercase ppc64le), causing
"architecture powerpc64le is not supported". This mirrors the existing
powerpc64 alias on Ppc64 and aarch64 alias on Arm64.

src/docker/provided_images.rs regenerated via cargo xtask codegen.

@pkubaj pkubaj requested a review from a team as a code owner June 6, 2026 08:44
@pkubaj pkubaj force-pushed the add_freebsd_ppc64 branch 2 times, most recently from e09f30c to d593160 Compare June 6, 2026 08:56
Adds a cross image and target entry for powerpc64le-unknown-freebsd,
mirroring the existing aarch64-unknown-freebsd support: a Dockerfile
that builds a binutils/gcc cross toolchain against a FreeBSD 13
powerpc64le sysroot (assembled from the release base.txz), the
freebsd-common.sh arch mapping (FreeBSD ships powerpc64le releases
under powerpc/powerpc64le/), and the targets.toml entry that drives
CI and codegen.

Also teach Architecture parsing the `powerpc64le` arch string: the
FreeBSD targets are TargetTriple::Other, so ImagePlatform::from_target
parses the arch substring, and the Ppc64Le variant lacked a
`powerpc64le` alias (it only matched the lowercase `ppc64le`), causing
"architecture powerpc64le is not supported". This mirrors the existing
`powerpc64` alias on Ppc64 and `aarch64` alias on Arm64.

src/docker/provided_images.rs regenerated via `cargo xtask codegen`.
@pkubaj pkubaj force-pushed the add_freebsd_ppc64 branch from d593160 to 2fd345d Compare June 6, 2026 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant