-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Allow cross-building the rust library #2527
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
base: dev
Are you sure you want to change the base?
Conversation
Modify make-linux.mk to allow cross-building with yocto and buildroot.
I want to add that when the triplet is not specified the makefile behaves exacly like before. I can also provide the bitbake recipe needed to build zt. |
Yes, please. Can we see the bitbake recipe? |
the license section got me in a hard fight I lost. So I simply put closed to have it compiled properly. I use it on scarthgap, but should work in whatever is newer. P.S. the 0001 patch is this commit I am proposing |
Dear @DBMTC , Or is there any ZeroTierOne repo, that is written is fully rust? (converted from C++) |
The rust code I am referring to is inside this repo: https://github.com/zerotier/ZeroTierOne/tree/dev/rustybits |
OK, but what does it do?
|
And most importantly of all why am I prompted to explain code I did not write and is already part of the official repo? I have no idea what zeroidc does I simply made the software cross-compile and run editing a makefile. |
Fair point! (The current exe stops working sometimes, if the Laptop is resumed from sleep. It was an error of the original OpenVPN driver that has been fixed many years later, but ZeroTier did not apply the same fix.) |
Modify make-linux.mk to allow cross-building with yocto and buildroot.
Currently it is not possible to cross-build (and link) the rust library due to hardcoded paths (target/(release|debug)/) instead of (target/$(triplet)/$(debug|release)) and the inability to pass additional rust flags (such as --freeze, needed when building with yocto).
This commit solves both problems and makes the software cross-buildable.