Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ARMv6 HF image to correctly build for ARMv6 architecture. #734

Merged
merged 1 commit into from
May 31, 2022

Conversation

Alexhuszagh
Copy link
Contributor

Change the arm-unknown-linux-gnueabihf to build a toolchain using crosstool-ng, so that we build a toolchain using ARMv6 support, rather than ARMv7.

This also adds support for crosstool-ng-based images, which are configured from template config files so that we can modify the GCC, glibc, and Linux versions. These are configured by running crosstool-ng/configure.sh, which scans that directory for all *.config.in files, and configures them to docker/crosstool-config. The script can have the toolchain versions modified via GCC_VERSION, GLIBC_VERSION, and LINUX_VERSION.

Closes #426.

@Alexhuszagh Alexhuszagh requested a review from a team as a code owner May 31, 2022 20:46
@Alexhuszagh Alexhuszagh force-pushed the crosstool branch 2 times, most recently from 2b0fb4b to 8da6a58 Compare May 31, 2022 20:49
@Alexhuszagh
Copy link
Contributor Author

bors try

bors bot added a commit that referenced this pull request May 31, 2022
Change the `arm-unknown-linux-gnueabihf` to build a toolchain using crosstool-ng, so that we build a toolchain using ARMv6 support, rather than ARMv7.

This also adds support for crosstool-ng-based images, which are configured from template config files so that we can modify the GCC, glibc, and Linux versions. These are configured by running `crosstool-ng/configure.sh`, which scans that directory for all `*.config.in` files, and configures them to `docker/crosstool-config`. The script can have the toolchain versions modified via `GCC_VERSION`, `GLIBC_VERSION`, and `LINUX_VERSION`.

Closes cross-rs#426.
@bors
Copy link
Contributor

bors bot commented May 31, 2022

try

Build succeeded:

@Emilgardis Emilgardis added enhancement A-arm Area: ARM targets labels May 31, 2022
@Emilgardis
Copy link
Member

bors r+

bors bot added a commit that referenced this pull request May 31, 2022
734: Fix ARMv6 HF image to correctly build for ARMv6 architecture. r=Emilgardis a=Alexhuszagh

Change the `arm-unknown-linux-gnueabihf` to build a toolchain using crosstool-ng, so that we build a toolchain using ARMv6 support, rather than ARMv7.

This also adds support for crosstool-ng-based images, which are configured from template config files so that we can modify the GCC, glibc, and Linux versions. These are configured by running `crosstool-ng/configure.sh`, which scans that directory for all `*.config.in` files, and configures them to `docker/crosstool-config`. The script can have the toolchain versions modified via `GCC_VERSION`, `GLIBC_VERSION`, and `LINUX_VERSION`.

Closes #426.

735: add issue templates r=Emilgardis a=Emilgardis

resolves #732


Co-authored-by: Alex Huszagh <ahuszagh@gmail.com>
Co-authored-by: Emil Gardström <emil.gardstrom@gmail.com>
@Emilgardis
Copy link
Member

bors cancel

@bors
Copy link
Contributor

bors bot commented May 31, 2022

Canceled.

@Emilgardis
Copy link
Member

bors r+

bors bot added a commit that referenced this pull request May 31, 2022
734: Fix ARMv6 HF image to correctly build for ARMv6 architecture. r=Emilgardis a=Alexhuszagh

Change the `arm-unknown-linux-gnueabihf` to build a toolchain using crosstool-ng, so that we build a toolchain using ARMv6 support, rather than ARMv7.

This also adds support for crosstool-ng-based images, which are configured from template config files so that we can modify the GCC, glibc, and Linux versions. These are configured by running `crosstool-ng/configure.sh`, which scans that directory for all `*.config.in` files, and configures them to `docker/crosstool-config`. The script can have the toolchain versions modified via `GCC_VERSION`, `GLIBC_VERSION`, and `LINUX_VERSION`.

Closes #426.

735: add issue templates r=Emilgardis a=Emilgardis

resolves #732


Co-authored-by: Alex Huszagh <ahuszagh@gmail.com>
Co-authored-by: Emil Gardström <emil.gardstrom@gmail.com>
@bors
Copy link
Contributor

bors bot commented May 31, 2022

This PR was included in a batch that was canceled, it will be automatically retried

@Emilgardis
Copy link
Member

bors cancel

bors r+

@bors
Copy link
Contributor

bors bot commented May 31, 2022

Canceled.

@bors
Copy link
Contributor

bors bot commented May 31, 2022

Build succeeded:

@talksik
Copy link

talksik commented Jun 21, 2023

I think adding a custom docker image in cross.toml is not read when using this target. Could it be this PR that introduced this problem?

@Emilgardis
Copy link
Member

@talksik I'm not sure I follow your comment, there should not be any issues with using a custom docker image according to the wiki page and this PR doesn't touch any logic related to that. Could you open a new issue or reach out on our matrix server (found in the readme)

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-arm Area: ARM targets enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't target Raspberry Pi 1 and Pi Zero
3 participants