usb_hid: adjust run script to run with new pci_drv

This commit is contained in:
Alexander Boettcher 2013-02-18 14:53:01 +01:00 committed by Norman Feske
parent ffeb4f5816
commit 554ab8372f
1 changed files with 31 additions and 6 deletions

View File

@ -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 {
</parent-provides>
<default-route>
<any-service> <parent/> <any-child/> </any-service>
</default-route>
</default-route>}
append_if [have_spec acpi] config {
<start name="acpi">
<resource name="RAM" quantum="8M"/>
<binary name="acpi_drv"/>
<provides>
<service name="PCI"/>
<service name="IRQ" />
</provides>
<route>
<service name="PCI"> <any-child /> </service>
<any-service> <parent/> <any-child /> </any-service>
</route>
</start>}
append_if [expr ![have_spec acpi] && [have_spec pci]] config {
<start name="pci_drv">
<resource name="RAM" quantum="1M"/>
<resource name="RAM" quantum="5M"/>
<provides><service name="PCI"/></provides>
</start>
</start>}
append config {
<start name="timer">
<resource name="RAM" quantum="1M"/>
<provides><service name="Timer"/></provides>
</start>
<start name="usb_drv">
<resource name="RAM" quantum="10M"/>
<resource name="RAM" quantum="7M"/>
<provides><service name="Input"/></provides>
<config>
<hid/>
@ -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"