File tree Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 1
1
name=rust
2
2
revision=1
3
3
from_source=rust-host
4
- hostdeps="llvm gcc"
4
+ hostdeps="llvm gcc rust-libc "
5
5
source_deps="rust-libc"
6
6
imagedeps="python git wget gcc"
7
7
allow_network="yes"
8
8
9
- #unset CARGO_HOME
10
-
11
9
build() {
12
10
# Rust memes.
13
- # cp -rp "${source_dir}/." ./
11
+ cp -rp "${source_dir}/." ./
14
12
15
- ./x.py build --stage 2 -j${parallelism}
13
+ CARGO_HOME=/tmp/cargo ./x.py build --stage 2 -j${parallelism}
16
14
}
17
15
18
16
package() {
19
- DESTDIR="${dest_dir}" ./x.py install -j${parallelism}
17
+ CARGO_HOME=/tmp/cargo DESTDIR="${dest_dir}" ./x.py install -j${parallelism}
20
18
21
19
find ${dest_dir} -name "*.old" -delete
22
20
Original file line number Diff line number Diff line change
1
+ name=rust-libc
2
+ from_source=rust-libc
3
+ revision=1
Original file line number Diff line number Diff line change 1
1
name=rust-libc
2
2
version=fe4e9cda46b0be8421b0f56df0b63b8c4dcaf5e6
3
3
tarball_url="https://github.com/Andy-Python-Programmer/libc/archive/${version}.tar.gz"
4
- tarball_blake2b="xadfdf "
4
+ tarball_blake2b="7a97d83784dfb6cdfd189d880f367facd2e06e43468248b41aa0239d3043172dfb508eca0209a7adb0ec12fda06887bfbdc37f41ebcb65b1a48967754c940b8f "
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ pub fn relocate_self() {
133
133
for section in kernel_elf. section_iter ( ) {
134
134
if let Ok ( SectionData :: Rela64 ( rela) ) = section. get_data ( kernel_elf) {
135
135
for item in rela {
136
- if ! item. get_type ( ) = = STT_GNU_IFUNC {
136
+ if item. get_type ( ) ! = STT_GNU_IFUNC {
137
137
continue ;
138
138
}
139
139
You can’t perform that action at this time.
0 commit comments