Skip to content

Commit 16448a3

Browse files
Revert "userland: build userland using our custom rust toolchain"
This reverts commit 0f6e461.
1 parent 50afdad commit 16448a3

File tree

5 files changed

+13
-26
lines changed

5 files changed

+13
-26
lines changed

aero.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -193,13 +193,13 @@ def extract_artifacts(stdout):
193193
return result
194194

195195

196-
def build_cargo_workspace(cwd, command, args, cargo='cargo'):
197-
code, _, _ = run_command([cargo, command, *args], cwd=cwd)
196+
def build_cargo_workspace(cwd, command, args):
197+
code, _, _ = run_command(['cargo', command, *args], cwd=cwd)
198198

199199
if code != 0:
200200
return None
201201

202-
_, stdout, _ = run_command([cargo, command, *args, '--message-format=json'],
202+
_, stdout, _ = run_command(['cargo', command, *args, '--message-format=json'],
203203
stdout=subprocess.PIPE,
204204
stderr=subprocess.DEVNULL,
205205
cwd=cwd)
@@ -279,13 +279,10 @@ def build_userland(args):
279279
if args.check:
280280
command = 'check'
281281

282-
cargo = '../sysroot/tools/host-cargo/bin/cargo'
283-
cmd_args += ['--target', 'x86_64-unknown-aero-system']
284-
285282
if args.test:
286-
return build_cargo_workspace('userland', 'build', ['--package', 'utest', *cmd_args], cargo)
283+
return build_cargo_workspace('userland', 'build', ['--package', 'utest', *cmd_args])
287284
else:
288-
return build_cargo_workspace('userland', command, cmd_args, cargo)
285+
return build_cargo_workspace('userland', command, cmd_args)
289286

290287
# TODO: Userland check
291288
# elif args.check:

userland/.cargo/config.toml

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,6 @@
1-
[build]
2-
rustc = "/home/czapek/Development/aero/sysroot/tools/host-rust/bin/rustc"
3-
target = "x86_64-unknown-aero-system"
4-
rustflags = ["-C", "link-args=-no-pie", "-lc"]
5-
6-
[target.x86_64-unknown-aero-system]
7-
linker = "/home/czapek/Development/aero/sysroot/tools/host-gcc/bin/x86_64-aero-gcc"
8-
9-
[patch.crates-io]
10-
libc = { path = "/home/czapek/Development/aero/bundled/rust-libc" }
11-
num_cpus = { path = "/home/czapek/Development/aero/bundled/rust-num-cpus" }
12-
users = { path = "/home/czapek/Development/aero/bundled/rust-users" }
1+
[unstable]
2+
build-std = ["core", "compiler_builtins", "alloc"]
3+
build-std-features = ["compiler-builtins-mem"]
134

14-
# [unstable]
15-
# build-std = ["core", "compiler_builtins", "alloc"]
16-
# build-std-features = ["compiler-builtins-mem"]
17-
18-
# [build]
19-
# target = "./.cargo/x86_64-unknown-none.json"
5+
[build]
6+
target = "./.cargo/x86_64-unknown-none.json"

userland/aero_shell/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ edition = "2021"
66

77
[dependencies]
88
aero_syscall = { path = "../../src/aero_syscall" }
9+
std = { path = "../aero_std" }

userland/init/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ edition = "2021"
66

77
[dependencies]
88
aero_syscall = { path = "../../src/aero_syscall" }
9+
std = { path = "../aero_std" }

userland/utest/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ edition = "2021"
55
authors = ["Anhad Singh <[email protected]>"]
66

77
[dependencies]
8+
std = { path = "../aero_std" }
89
aero_syscall = { path = "../../src/aero_syscall" }
910
utest-proc = { path = "../utest-proc" }

0 commit comments

Comments
 (0)