support native x86 hardware run

Issue #1167
This commit is contained in:
Alexander Boettcher 2014-06-04 12:39:27 +02:00 committed by Christian Helmuth
parent bf158017da
commit aae541f9c0
1 changed files with 25 additions and 4 deletions

View File

@ -17,11 +17,15 @@ if {[have_spec linux]} {
build {
core init
drivers/pci drivers/timer drivers/nic
drivers/timer drivers/nic
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
@ -44,7 +48,7 @@ set config {
<service name="SIGNAL"/>
<any-service> <parent/> <any-child/> </any-service>
<any-service> <any-child/> <parent/> </any-service>
<start name="timer">
<resource name="RAM" quantum="1M"/>
@ -68,7 +72,22 @@ set config {
<resource name="RAM" quantum="1M"/>
append_if [have_spec pci] config {
append_if [have_spec acpi] config {
<start name="acpi">
<resource name="RAM" quantum="6M"/>
<binary name="acpi_drv"/>
<service name="PCI"/>
<service name="IRQ" />
<service name="PCI"> <any-child /> </service>
<service name="IRQ"> <parent /> </service>
<any-service> <parent/> <any-child /> </any-service>
append_if [expr ![have_spec acpi] && [have_spec pci]] config {
<start name="pci_drv">
<resource name="RAM" quantum="2M"/>
<provides> <service name="PCI"/> </provides>
@ -94,7 +113,9 @@ set boot_modules {
# platform-specific modules
lappend_if [have_spec pci] boot_modules pci_drv
lappend_if [have_spec pci] boot_modules pci_drv
lappend_if [have_spec acpi] boot_modules acpi_drv
lappend_if [have_spec nova] boot_modules pci_device_pd
build_boot_image $boot_modules