public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [PATCH] rust-toolchain.eclass: support bootstrapping armv5te
@ 2020-07-11 13:55 David Michael
  0 siblings, 0 replies; only message in thread
From: David Michael @ 2020-07-11 13:55 UTC (permalink / raw
  To: gentoo-dev

This adds support for using system-bootstrap to build Rust for the
armv5tel profile.  It does not add binary bootstrap compilers.

Signed-off-by: David Michael <fedora.dm0@gmail.com>
---

Hi,

I have an ARM9 chip that I'd like to be able to target for Rust
packages.  Things are getting masked in the armv5tel profile due to it
not having Rust binaries.  Can we start fixing this?

I've bootstrapped armv5te Rust by cross-compiling it, and it seems to
work.  I can send my ebuild changes if anyone wants to build their own
armv5te compiler, but the eclass should at least define its default
builtin target so that it can be built with USE=system-bootstrap.

Thanks.

David

 eclass/rust-toolchain.eclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/eclass/rust-toolchain.eclass b/eclass/rust-toolchain.eclass
index 9d7360ed1c4..9ae4ad93945 100644
--- a/eclass/rust-toolchain.eclass
+++ b/eclass/rust-toolchain.eclass
@@ -41,6 +41,7 @@ rust_abi() {
 		powerpc64*)   echo powerpc64-unknown-linux-gnu;;
 		x86_64*gnu)	  echo x86_64-unknown-linux-gnu;;
 		x86_64*musl)  echo x86_64-unknown-linux-musl;;
+		armv5te*)	  echo armv5te-unknown-linux-gnueabi;;
 		armv6j*s*)	  echo arm-unknown-linux-gnueabi;;
 		armv6j*h*)	  echo arm-unknown-linux-gnueabihf;;
 		armv7a*h*)	  echo armv7-unknown-linux-gnueabihf;;
-- 
2.26.2



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-11 13:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-11 13:55 [gentoo-dev] [PATCH] rust-toolchain.eclass: support bootstrapping armv5te David Michael

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox