fix: release virtio-gpu from initfs
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
--- a/drivers/initfs.toml
|
||||
+++ b/drivers/initfs.toml
|
||||
@@ -29,9 +29,6 @@ vendor = 0x1AF4
|
||||
device = 0x1001
|
||||
command = ["/scheme/initfs/lib/drivers/virtio-blkd"]
|
||||
|
||||
-[[drivers]]
|
||||
-name = "virtio-gpu"
|
||||
-class = 3
|
||||
-vendor = 0x1AF4
|
||||
-device = 0x1050
|
||||
-command = ["/scheme/initfs/lib/drivers/virtio-gpud"]
|
||||
+# Red Bear full-image graphics hands display-class GPUs to the root filesystem
|
||||
+# DRM/KMS stack. Do not claim QEMU virtio-gpu in initfs, or the later root
|
||||
+# pcid-spawner cannot pass the PCI function to /usr/bin/redox-drm.
|
||||
@@ -76,6 +76,7 @@ cp -v "${COOKBOOK_SOURCE}/drivers/initfs.toml" "${COOKBOOK_BUILD}/initfs/lib/pci
|
||||
|
||||
export CARGO_PROFILE_RELEASE_OPT_LEVEL=s
|
||||
export CARGO_PROFILE_RELEASE_PANIC=abort
|
||||
rm -rf "${CARGO_TARGET_DIR}"
|
||||
"${COOKBOOK_CARGO}" build ${build_flags} \
|
||||
--manifest-path "${COOKBOOK_SOURCE}/Cargo.toml" \
|
||||
$(for bin in "${BINS[@]}"; do echo "-p" "${bin}"; done)
|
||||
|
||||
@@ -40,6 +40,7 @@ patches = [
|
||||
"P4-acpi-shutdown-hardening.patch",
|
||||
"P4-acpi-s3-sleep.patch",
|
||||
"P4-initfs-usb-drm-services.patch",
|
||||
"P4-initfs-release-virtio-gpu.patch",
|
||||
"P4-initfs-network-services.patch",
|
||||
"P4-initfs-getty-services.patch",
|
||||
"P4-initfs-dbus-services.patch",
|
||||
|
||||
Reference in New Issue
Block a user