build(gpu): lock the boot crate's build dependencies and gate DRM's sources

This commit is contained in:
Tyler Smith committed 2026-10-31 03:32:52 +00:00
1 parent 17a8fc0924
commit affa42e502
3 files changed
+107 -4

No files matched your search

+99
View File
@@ -63,6 +63,12 @@ version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4c7f02d4ea65f2c1853089ffd8d2787bdbc63de2f0d29dedbcf8ccdfa0ccd4cf"
[[package]]
name = "base64"
version = "0.23.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5"
[[package]]
name = "bit_field"
version = "0.10.3"
@@ -294,6 +300,12 @@ dependencies = [
"zeroize",
]
[[package]]
name = "deranged"
version = "0.5.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c"
[[package]]
name = "digest"
version = "0.10.7"
@@ -337,6 +349,12 @@ dependencies = [
"zeroize",
]
[[package]]
name = "equivalent"
version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
[[package]]
name = "errno"
version = "0.3.14"
@@ -432,6 +450,12 @@ dependencies = [
"byteorder",
]
[[package]]
name = "hashbrown"
version = "0.17.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"
[[package]]
name = "heapless"
version = "0.9.3"
@@ -472,6 +496,16 @@ dependencies = [
"typenum",
]
[[package]]
name = "indexmap"
version = "2.14.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855"
dependencies = [
"equivalent",
"hashbrown",
]
[[package]]
name = "inout"
version = "0.1.4"
@@ -544,6 +578,12 @@ dependencies = [
"adler2",
]
[[package]]
name = "num-conv"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "521739c6d2bac4aa25192232afe6841231376b2b26d4d9fae5ecf8ca5772e441"
[[package]]
name = "object"
version = "0.37.3"
@@ -583,6 +623,19 @@ dependencies = [
"sha2",
]
[[package]]
name = "plist"
version = "1.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2896bade328c13f7042a297ea5ac5b0951f6cf989dea5f32c2fd98da398195cb"
dependencies = [
"base64",
"indexmap",
"quick-xml",
"serde",
"time",
]
[[package]]
name = "poly1305"
version = "0.9.1"
@@ -606,6 +659,12 @@ dependencies = [
"zeroize",
]
[[package]]
name = "powerfmt"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4a6394b9e965e73d0a289ee54f589087e2c676aedf60885baf52c76b771e4958"
[[package]]
name = "primeorder"
version = "0.13.6"
@@ -644,6 +703,15 @@ dependencies = [
"syn",
]
[[package]]
name = "quick-xml"
version = "0.42.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "41b1177fdf999d2321d3fb46ff47159d9c1fb9ad66a4879f8c50a0b504615e9b"
dependencies = [
"memchr",
]
[[package]]
name = "quote"
version = "1.0.47"
@@ -1062,6 +1130,7 @@ version = "0.1.0"
dependencies = [
"hex",
"object",
"plist",
"serde",
"serde_json",
"sha2",
@@ -1192,6 +1261,36 @@ dependencies = [
"syn",
]
[[package]]
name = "time"
version = "0.3.55"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cdb87b95ec50ddfa440816d227a17b2ccbdda963a316a727fda0fc4334f7d134"
dependencies = [
"deranged",
"num-conv",
"powerfmt",
"serde_core",
"time-core",
"time-macros",
]
[[package]]
name = "time-core"
version = "0.1.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9e1c906769ad99c88eaa54e728060edef082f8e358ff32030cb7c7d315e81109"
[[package]]
name = "time-macros"
version = "0.2.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7e689342a48d2ea927c87ea50cabf8594854bf940e9310208848d680d668ed85"
dependencies = [
"num-conv",
"time-core",
]
[[package]]
name = "triomphe"
version = "0.1.16"
+3 -1
View File
@@ -46,7 +46,7 @@ fn main() {
return;
}
#[cfg(feature = "linux-kernel")]
let (mut linux, mut tests) = (native::Linux::new(), native::Tests::default());
let (linux, mut tests) = (native::Linux::new(), native::Tests::default());
#[cfg(feature = "linux-kernel")]
linux.tests(&mut tests);
#[cfg(feature = "amd-port")]
@@ -58,6 +58,8 @@ fn main() {
#[cfg(feature = "intel-port")]
intel::port(&linux, &mut tests);
#[cfg(feature = "nouveau-port")]
let mut linux = linux;
#[cfg(feature = "nouveau-port")]
nouveau::port(&mut linux);
#[cfg(feature = "linux-kernel")]
tests.write();
+5 -3
View File
@@ -136,7 +136,7 @@ const DRM: &str = "../../third_party/linux/drivers/gpu/drm";
/// DRM's core and the helpers nouveau selects, as Linux's `drm-y`,
/// `drm_kms_helper-y`, `ttm-y`, `gpu-sched-y` and `drm_display_helper-y`
/// compose them under Stela's Kconfig.
#[cfg(feature = "linux-kernel")]
#[cfg(any(feature = "nouveau-port", feature = "amd-port"))]
const DRM_SOURCES: &[&str] = &[
"drm_atomic",
"drm_atomic_uapi",
@@ -220,7 +220,7 @@ const DRM_SOURCES: &[&str] = &[
];
/// Linux's fences, reservation objects and shared buffers.
#[cfg(feature = "linux-kernel")]
#[cfg(any(feature = "nouveau-port", feature = "amd-port"))]
const DMA_BUF_SOURCES: &[&str] = &[
"dma-buf",
"dma-buf-mapping",
@@ -278,7 +278,7 @@ impl Linux {
let crc_tables = linux_crc::tables();
// Unchanged shared helpers use Linux's arithmetic types. Stela's
// extra conversion diagnostics remain confined to its own source.
let mut upstream = vec![
let upstream = vec![
PathBuf::from(format!("{LINUX}/lib/string.c")),
PathBuf::from(format!("{LINUX}/lib/hexdump.c")),
PathBuf::from(format!("{LINUX}/lib/ratelimit.c")),
@@ -313,6 +313,8 @@ impl Linux {
];
let mut hosted_upstream = upstream.clone();
#[cfg(any(feature = "nouveau-port", feature = "amd-port"))]
let mut upstream = upstream;
#[cfg(any(feature = "nouveau-port", feature = "amd-port"))]
{
upstream.extend(
DMA_BUF_SOURCES