mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-21 06:33:31 +00:00
bdd923406f
* Remove SPEC declarations from mk/spec * Remove all board-specific REQUIRE declaratiions left * Replace [have_spec <board>] run-script declarations with have_board where necessary * Remove addition of BOARD variable to SPECS in toplevel Makefile * Move board-specific directories in base-hw out of specs
82 lines
1.5 KiB
Plaintext
82 lines
1.5 KiB
Plaintext
#
|
|
# Build
|
|
#
|
|
set build_components { core init test/pci timer }
|
|
|
|
set use_acpica_as_acpi_drv 0
|
|
|
|
source ${genode_dir}/repos/base/run/platform_drv.inc
|
|
|
|
# override default platform driver policy
|
|
proc platform_drv_policy {} {
|
|
global use_acpica_as_acpi_drv
|
|
set policy ""
|
|
|
|
append_if $use_acpica_as_acpi_drv policy {
|
|
<policy label="acpi_drv -> "> <pci class="ALL"/> </policy>}
|
|
|
|
append policy {
|
|
<policy label_prefix="test-pci"> <pci class="ALL"/> </policy>}
|
|
|
|
return $policy
|
|
}
|
|
|
|
append_platform_drv_build_components
|
|
|
|
build $build_components
|
|
create_boot_directory
|
|
|
|
#
|
|
# Generate config
|
|
#
|
|
|
|
append config {
|
|
<config>
|
|
<parent-provides>
|
|
<service name="ROM"/>
|
|
<service name="IRQ"/>
|
|
<service name="IO_MEM"/>
|
|
<service name="IO_PORT"/>
|
|
<service name="PD"/>
|
|
<service name="RM"/>
|
|
<service name="CPU"/>
|
|
<service name="LOG"/>
|
|
</parent-provides>
|
|
<default-route>
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
</default-route>
|
|
<default caps="100"/>
|
|
|
|
<start name="timer">
|
|
<resource name="RAM" quantum="10M"/>
|
|
<provides><service name="Timer"/></provides>
|
|
</start>}
|
|
|
|
append_platform_drv_config
|
|
|
|
append config {
|
|
<start name="test-pci">
|
|
<resource name="RAM" quantum="2M"/>
|
|
</start>
|
|
</config>}
|
|
|
|
install_config $config
|
|
|
|
#
|
|
# Boot modules
|
|
#
|
|
|
|
# generic modules
|
|
set boot_modules {
|
|
core ld.lib.so init test-pci timer
|
|
}
|
|
|
|
# platform-specific modules
|
|
append_platform_drv_boot_modules
|
|
build_boot_image $boot_modules
|
|
|
|
append qemu_args "-nographic "
|
|
|
|
run_genode_until "--- Platform test finished ---.*\n" 10
|
|
|