[Buildroot] "PATCH": hack to be able to build Rust targetting MIPS

Alex Corcoles alex at corcoles.net
Sat Jan 18 18:46:46 UTC 2020


Hi guys,

I'm trying to build mipsel Rust stuff, and I've had to do this:

8< 8< 8< 8< 8< 8< 8< 8< 8< 8< 8< 8< 8< 8< 8<
>From 8c3f68a687b4f94a7c2e20e2020fd1e6f9e2c414 Mon Sep 17 00:00:00 2001
From: alex <alex at pdp7.net>
Date: Sat, 18 Jan 2020 19:24:57 +0100
Subject: [PATCH 1/1] Set RUSTC_TARGET_NAME

Signed-off-by: alex <alex at pdp7.net>
---
 package/rust/rust.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/rust/rust.mk b/package/rust/rust.mk
index 5d14fc6682..258daef331 100644
--- a/package/rust/rust.mk
+++ b/package/rust/rust.mk
@@ -38,6 +38,8 @@ endef

 HOST_RUST_POST_EXTRACT_HOOKS += HOST_RUST_EXCLUDE_ORIG_FILES

+RUSTC_TARGET_NAME = $(RUSTC_ARCH)-unknown-linux-gnu$(RUSTC_ABI)
+
 define HOST_RUST_CONFIGURE_CMDS
  ( \
  echo '[build]'; \
-- 
2.20.1

8< 8< 8< 8< 8< 8< 8< 8< 8< 8< 8< 8< 8< 8< 8<

To advance things up (I'm currently compiling LLVM, apparently), as
otherwise the config.toml created is wrong. I'm attaching the .config I'm
using (I'm using the non-pre-built host rust- the pre-built one apparently
doesn't have std).

I certainly doubt what I'm doing is "correct", but maybe you guys want to
take a look at it.

BTW, tried to cc: Eric as instructed by get-developers, but mail to him
bounced...

Cheers,

Álex
-- 
   ___
 {~._.~}
  ( Y )
 ()~*~()  mail: alex at corcoles dot net
 (_)-(_)  http://alex.corcoles.net/



-- 
   ___
 {~._.~}
  ( Y )
 ()~*~()  mail: alex at corcoles dot net
 (_)-(_)  http://alex.corcoles.net/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20200118/d868f41b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config
Type: application/octet-stream
Size: 99552 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20200118/d868f41b/attachment-0001.obj>


More information about the buildroot mailing list