Commit Graph
373 Commits
Author SHA1 Message Date
Doug Goldstein 49ea508249 Merge pull request #7 from starlab-io/arm-strip-fix
rust: inhibit stripping for cross compiler to avoid errors
2016-02-02 17:09:50 -06:00
Cody P Schafer 5a933d0f08 rust: inhibit stripping for cross compiler to avoid errors 2016-02-02 18:07:30 -05:00
Tyler Hall 0ade0cc790 Fix prelink issue breaking .bss
The reason prelink seemed to break relocations in .bss is because the
.note.rustc section happened to be placed in front of .bss. Using
objcopy to strip the note renumbered the sections and the symbols in the
.dynsym section were pointing to the wrong section index, but only for
.bss. Prelink would skip updating these dyn entries because it thought
they were pointing to a section that didn't get relocated, like
.comment. In some cases the GOT was actually prelinked correctly, but
the dynamic linker at run time would modify it to point at the
non-prelinked address.

Removing the SHF_ALLOC flag from the section causes it to be placed at
the end of the executable where it can be safely removed.

This is still a hack to the compiler because I couldn't find any way to
get the section attributes to be correct using the high-level LLVM
interface.
2016-02-02 13:08:14 -05:00
Cody Schafer ba3486997a Merge pull request #31 from srwalter/aarch64-support
Support building for the ARMv8 (64-bit) architecture
2016-02-02 12:13:27 -05:00
Tyler Hall 483334f02b rust: aarch64 support 2016-02-02 11:40:25 -05:00
Tyler Hall aaaeaeed3f rustlib: libdir may be different between build and host
With multilib, we may want to install under lib64 but the rust libraries
get published in the build sysroot under the libdir for the build
machine which is usually just lib. Support these being different.
2016-02-02 11:40:25 -05:00
Cody Schafer f0ea28ae30 Merge pull request #30 from srwalter/update-rust-bin-bbclass
Update rust-bin.bbclass
2016-02-02 11:37:23 -05:00
Wes Lindauer 45d77b849f rust-bin.bbclass: Add empty do_configure
This prevents rust recipes that are missing clean rules from failing
when they are rebuilt.
2016-02-01 16:36:52 -05:00
Steven Walter ebe7fb0d8f rust-bin.bbclass: look for RUNPATH instead of RPATH
Poky 1.7 uses RPATH is now RUNPATH, so update our grep string appropriately.

Additionally, bitbake is having trouble with the automatic RDEPENDS on
rustlib.  Make it explicit for now.
2016-02-01 16:36:52 -05:00
Dan Dedrick 63cf611e65 rust-bin.bbclass: update path to cross output
poky 1.7 changes where it publishes cross output to so this recipe
needs to follow that. Unfortunately this path is defined in
cross.bbclass and we can't inherit that since we aren't cross.
2016-02-01 16:36:52 -05:00
Tyler Hall 302cca7529 rust-bin.bbclass: suffix rust libraries with -rs
Rust library names may have sonames that overlap with C/C++ libraries.
This causes bitbake to not be able to create the correct automatic
RDEPENDS between packages. The result is that dependencies may not get
automatically installed.

Add -rs to the file name and soname. The crate name remains the same,
and rust is not dependent on the file name to look up the crate inside
the library.
2016-02-01 16:36:52 -05:00
Cody Schafer 355863b528 Merge pull request #29 from srwalter/add-more-crates
Add more crates
2016-02-01 16:29:18 -05:00
Tyler Hall 34c36492db Don't build any rlibs
I've seen this error from the compiler:
    found possibly newer version of crate `regex_syntax` which
    `env_logger` depends on

This is probably because the rlib hashes are not deterministic, but I
can't reproduce non-deterministic hashes locally.

There have been lots of other types of errors caused by mixing rlibs and
dylibs in the same dependency chain, so let's try using only dylibs
until that's stable.
2016-02-01 20:54:20 +00:00
Tyler Hall 84bacaaf21 time-rs: compile native helper C code 2016-02-01 20:54:20 +00:00
Tyler Hall fc0e2f74b3 libc: use common build functions and create dylib
Working around "error: cannot satisfy dependencies so `libc` only shows
up once."
2016-02-01 20:53:51 +00:00
Tyler Hall 9fac435f1c Add crypto crate 2016-02-01 20:53:51 +00:00
Tyler Hall 232d100c09 Add rand crate 2016-02-01 20:53:51 +00:00
Tyler Hall b516012a46 Add unix-socket crate 2016-02-01 20:53:51 +00:00
Tyler Hall fa0d333237 Add debug-builders crate 2016-02-01 20:53:51 +00:00
Tyler Hall 1c1819971e Add rustc-serialize crate 2016-02-01 20:53:51 +00:00
Steven Walter 9c571225f2 libudev: add recipes for latest releases of libudev-{rs,sys} 2016-02-01 20:53:51 +00:00
Steven Walter b5058823f2 rust.inc: add missing dependency on file-native 2016-02-01 20:53:39 +00:00
Cody P Schafer 0ed55291b6 cargo: relocate config files to avoid clobber 2016-01-26 17:11:25 -05:00
Doug Goldstein 67d821913e rust-llvm: fix linking issues
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
2016-01-21 21:36:50 -06:00
Cody P Schafer 6f9559d152 deps/libgit2: actually update, and disable libgit2_git 2015-12-13 21:44:55 -05:00
Cody P Schafer 82238846e4 rust 1.4.0: use snapshot include 2015-12-13 01:23:30 -05:00
Cody P Schafer bb5c2042a9 update libgit2 to 0.23.4 2015-12-13 01:22:10 -05:00
Cody P Schafer 8c74d4ce6f rust: update to 1.5.0 2015-12-13 01:08:00 -05:00
Cody P Schafer 3371589498 cargo: update to 0.7.0 2015-12-12 23:18:55 -05:00
Cody P Schafer 5d8b5d2862 rust-1.4.0: compiler works, but cannot build the old version of cargo we ship 2015-12-12 21:35:48 -05:00
Cody P Schafer 836fbef13b Merge remote-tracking branch 'origin/rust-1.4.0' 2015-12-12 18:57:14 -05:00
Cody P Schafer 7413948eaf Merge branches 'pr19', 'pr20' and 'pr21', remote-tracking branch 'origin/no-strip' 2015-12-11 22:41:38 -05:00
Jonathan Creekmore 3a3381b8d0 Merge pull request #5 from starlab-io/cleanup
drop older versions and rename to recipes-devtools
2015-12-11 15:25:10 -06:00
Doug Goldstein 9a1f1aad8d move recipes/{rust,cargo} to recipes-devtools
This better matches where upstream puts compilers and development
utilities.
2015-12-11 00:43:18 -06:00
Doug Goldstein 0653dc1572 remove Rust 1.2.0 2015-12-11 00:41:23 -06:00
Doug Goldstein be7e8c8ee6 remove Rust 1.1.0 2015-12-11 00:40:35 -06:00
Cody P Schafer 934450e2b0 rust: inhibit stripping for cross compiler to avoid errors 2015-12-08 16:13:09 -05:00
Jonathan Creekmore 344a19bafb Merge pull request #4 from starlab-io/fix-cross-build
Fix security flags for rust-cross
2015-11-17 10:14:52 -06:00
Doug Goldstein 640b962181 Fix security flags for rust-cross 2015-11-17 10:09:12 -06:00
Jonathan Creekmore d19f3cb6cf Merge pull request #3 from starlab-io/misc-updates
Move license files and update debug message
2015-11-17 09:56:26 -06:00
Doug Goldstein a526e7a435 move licenses to top level 2015-11-17 09:23:22 -06:00
Doug Goldstein 6ae148d342 cargo.bbclass: update debug message
Hopefully this makes a bit more clear when you see this outputted.
2015-11-16 15:34:44 -06:00
Doug Goldstein ff13d3319d Merge pull request #2 from starlab-io/fix_sstate_cargo
Updates to rust build recipes
2015-11-16 11:31:26 -06:00
Derek Straka a018f9586b Add no PIE to rust-llvm 2015-11-15 07:44:29 -06:00
Derek Straka 3406a2920c Update PR number and pack sstate correctly 2015-11-15 07:44:03 -06:00
Doug Goldstein 559214fceb Merge pull request #1 from starlab-io/update-cargo-native
Use the pre-packaged version of cargo for the native packager.

While this is not how we really want to do things, this does let us move forward for right now.
2015-11-13 08:42:02 -06:00
Derek Straka 8702fd31f7 Use the pre-packaged version of cargo for the native packager 2015-11-12 17:40:14 -06:00
Doug Goldstein 1280c29fa7 Merge branch 'security-flags' into fido 2015-11-10 07:48:04 -06:00
Doug Goldstein 6a75a08ef4 Provide distro config include for security flags
When someone is using a distro that's using security flags we need to
provide overrides to disable PIE.

Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
2015-11-09 12:11:24 -06:00
Doug Goldstein 2f703c9f1f fix LICENSE_PATH location
The path in LICENSE_PATH was not the correct path to where the licenses
are located in this repo.

Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
2015-11-06 10:19:07 -06:00