run: use unambigously named components and pkgs
This commit is contained in:
committed by
Norman Feske
parent
e178109093
commit
e639510af5
@@ -1,23 +1,8 @@
|
||||
if {[expr [have_spec linux]]} {
|
||||
puts "\n Run script is not supported on this platform. \n"; exit 0 }
|
||||
|
||||
#
|
||||
# Test logging to file system
|
||||
#
|
||||
|
||||
set build_components {
|
||||
core init timer
|
||||
proxy/udp_log
|
||||
test/bomb
|
||||
drivers/nic
|
||||
}
|
||||
|
||||
source ${genode_dir}/repos/base/run/platform_drv.inc
|
||||
append_platform_drv_build_components
|
||||
|
||||
build $build_components
|
||||
|
||||
create_boot_directory
|
||||
import_from_depot [depot_user]/src/[base_src] \
|
||||
[depot_user]/pkg/[drivers_nic_pkg] \
|
||||
[depot_user]/src/init
|
||||
build { proxy/udp_log test/bomb }
|
||||
|
||||
install_config {
|
||||
<config prio_levels="2">
|
||||
@@ -35,16 +20,24 @@ install_config {
|
||||
<any-service> <parent/> <any-child/> </any-service>
|
||||
</default-route>
|
||||
<default caps="100"/>
|
||||
|
||||
<start name="timer">
|
||||
<resource name="CPU" quantum="10"/>
|
||||
<resource name="RAM" quantum="1M"/>
|
||||
<provides><service name="Timer"/></provides>
|
||||
</start>
|
||||
<start name="nic_drv">
|
||||
<binary name="} [nic_drv_binary] {" />
|
||||
<resource name="RAM" quantum="2M"/>
|
||||
<provides><service name="Nic"/></provides>
|
||||
|
||||
<start name="drivers" caps="1000">
|
||||
<resource name="RAM" quantum="32M" constrain_phys="yes"/>
|
||||
<binary name="init"/>
|
||||
<route>
|
||||
<service name="ROM" label="config"> <parent label="drivers.config"/> </service>
|
||||
<service name="Timer"> <child name="timer"/> </service>
|
||||
<any-service> <parent/> </any-service>
|
||||
</route>
|
||||
<provides> <service name="Nic"/> </provides>
|
||||
</start>
|
||||
|
||||
<start name="udp_log">
|
||||
<resource name="RAM" quantum="2M"/>
|
||||
<provides><service name="LOG"/></provides>
|
||||
@@ -52,6 +45,7 @@ install_config {
|
||||
<default-policy ip="192.168.42.11" />
|
||||
</config>
|
||||
</start>
|
||||
|
||||
<start name="bomb-master" priority="-1" caps="500">
|
||||
<binary name="bomb"/>
|
||||
<resource name="CPU" quantum="90"/>
|
||||
@@ -63,15 +57,9 @@ install_config {
|
||||
</start>
|
||||
</config>}
|
||||
|
||||
append boot_modules {
|
||||
core init ld.lib.so bomb timer udp_log
|
||||
} [nic_drv_binary] {
|
||||
}
|
||||
|
||||
append_platform_drv_boot_modules
|
||||
build_boot_image $boot_modules
|
||||
build_boot_image { bomb udp_log }
|
||||
|
||||
append qemu_args " -nographic"
|
||||
append qemu_args " -net tap,ifname=tap2 "
|
||||
append qemu_args " -net tap,ifname=tap0 "
|
||||
|
||||
run_genode_until forever
|
||||
|
||||
Reference in New Issue
Block a user