<div dir="ltr"><div>Hi Vincent,<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 6, 2020 at 6:50 PM Vincent Fazio <<a href="mailto:vfazio@xes-inc.com">vfazio@xes-inc.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I'm not familiar with Rust, but there should be a cleaner way to set the <br>
target cpu than hacking the default. Preferably the target MIPS cpu <br>
selected within Buildroot would inform the target cpu?<br>
<br>
A quick search seems to suggest this may be possible <br>
(<a href="https://gitissue.com/issues/5a1e9e776805170abd3c8a38" rel="noreferrer" target="_blank">https://gitissue.com/issues/5a1e9e776805170abd3c8a38</a>):<br>
<br>
[build]<br>
target = "mipsel-unknown-linux-gnu"<br>
<br>
[target.mipsel-unknown-linux-gnu]<br>
rustflags = [<br>
   "-C", "link-arg=-EL",<br>
   "-C", "target-cpu=mips32",<br>
   "-C", "target-feature=+mips32,-mips32r2,-fpxx,-nooddspreg",<br>
]<br></blockquote><div><br></div><div>Yeah, probably there are slightly cleaner solutions. I think that Rust targetting mips32r2 by default sucks a little bit, so I'm not losing hope completely that the change will be reverted. If they do so, I think it would be quite easy for buildroot to iron out the few niggles required to get this to work.</div><div><br></div><div>However, I'm not really knowledgeable about buildroot, so all the patches involved in this are terrible. I saw the solution you quote at:</div><div><br></div><div><a href="https://github.com/rust-lang/rust/issues/37507#issuecomment-476026815">https://github.com/rust-lang/rust/issues/37507#issuecomment-476026815</a></div><div><br></div><div>, but I wasn't sure how to plug that cleanly into buildroot, so I went for the ugly solution. Perhaps I can plug that into buildroot/package/rust/<a href="http://rust.mk">rust.mk</a>, though. If I have some time I will try to clean things up (unfortunately, I was unemployed since mid-November, which gave me tons of spare time for this silly stuff... but I start a new job on Monday, so I won't have so much time..,).</div><div><br></div>If someone wants to spend time on this, I will be happy to test or whatever, though.</div><div class="gmail_quote"><br></div><div class="gmail_quote">Cheers,</div><div class="gmail_quote"><br></div><div class="gmail_quote">Álex<br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div><span style="font-family:monospace,monospace">   ___<br></span></div><div><span style="font-family:monospace,monospace"> {~._.~}</span></div><div><span style="font-family:monospace,monospace">  ( Y )<br></span></div><div><span style="font-family:monospace,monospace"> ()~*~()  <span>mail: alex at corcoles dot net</span></span></div><div><span style="font-family:monospace,monospace"> (_)-(_)  <a href="http://alex.corcoles.net/" target="_blank">http://alex.corcoles.net/</a></span></div><div><br></div></div></div></div></div></div></div>