diff --git a/dde_linux/run/usb_hid.run b/dde_linux/run/usb_hid.run
index bc25a61c20..bd077cf2d3 100644
--- a/dde_linux/run/usb_hid.run
+++ b/dde_linux/run/usb_hid.run
@@ -5,11 +5,14 @@
set build_components {
core init
drivers/timer
- drivers/pci
drivers/usb
test/input
}
+lappend_if [have_spec acpi] build_components drivers/acpi
+lappend_if [have_spec pci] build_components drivers/pci
+lappend_if [have_spec pci] build_components drivers/pci/device_pd
+
build $build_components
create_boot_directory
@@ -35,17 +38,35 @@ append config {
-
+ }
+
+append_if [have_spec acpi] config {
+
+
+
+
+
+
+
+
+
+
+
+ }
+
+append_if [expr ![have_spec acpi] && [have_spec pci]] config {
-
+
-
+ }
+
+append config {
-
+
@@ -64,9 +85,13 @@ install_config $config
# generic modules
set boot_modules {
- core init timer pci_drv usb_drv test-input
+ core init timer usb_drv test-input
}
+lappend_if [have_spec acpi] boot_modules acpi_drv
+lappend_if [have_spec pci] boot_modules pci_drv
+lappend_if [have_spec nova] boot_modules pci_device_pd
+
build_boot_image $boot_modules
append qemu_args " -m 256 -usb -usbdevice mouse -usbdevice keyboard"