Skip to content

Commit c45fed1

Browse files
committed
Move test kernel profiles to test kernel workspace
1 parent 80e1905 commit c45fed1

File tree

2 files changed

+25
-19
lines changed

2 files changed

+25
-19
lines changed

Cargo.toml

-19
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
cargo-features = ["profile-rustflags"]
2-
31
[package]
42
name = "bootloader"
53
description = "An experimental x86_64 bootloader that works on both BIOS and UEFI systems."
@@ -101,23 +99,6 @@ inherits = "release"
10199
debug = true
102100
overflow-checks = true
103101

104-
[profile.lto]
105-
inherits = "release"
106-
lto = true
107-
108-
[profile.test.package.test_kernel_higher_half]
109-
rustflags = [
110-
"-C",
111-
"link-args=--image-base 0xFFFF800000000000",
112-
"-C",
113-
"relocation-model=pic",
114-
"-C",
115-
"code-model=large",
116-
]
117-
118-
[profile.test.package.test_kernel_min_stack]
119-
opt-level = 2
120-
121102
[build-dependencies]
122103
llvm-tools = "0.1.1"
123104

tests/test_kernels/Cargo.toml

+25
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
cargo-features = ["profile-rustflags"]
2+
13
[workspace]
24
resolver = "2"
35
members = [
@@ -11,3 +13,26 @@ members = [
1113
"lower_memory_free",
1214
"write_usable_memory",
1315
]
16+
17+
[profile.release]
18+
panic = "abort"
19+
lto = false
20+
debug = true
21+
overflow-checks = true
22+
23+
[profile.lto]
24+
inherits = "release"
25+
lto = true
26+
27+
[profile.test.package.test_kernel_higher_half]
28+
rustflags = [
29+
"-C",
30+
"link-args=--image-base 0xFFFF800000000000",
31+
"-C",
32+
"relocation-model=pic",
33+
"-C",
34+
"code-model=large",
35+
]
36+
37+
[profile.test.package.test_kernel_min_stack]
38+
opt-level = 2

0 commit comments

Comments
 (0)