diff --git a/repos/base/run/platform_drv.inc b/repos/base/run/platform_drv.inc
index 038d51b4c6..a904a7973d 100644
--- a/repos/base/run/platform_drv.inc
+++ b/repos/base/run/platform_drv.inc
@@ -44,32 +44,6 @@ proc usb_host_drv_binary { } {
}
-##
-# Return name of the NIC driver binary
-#
-proc nic_drv_binary { } {
- if {[have_spec linux]} { return linux_nic_drv }
- if {[have_spec omap4] || [have_spec arndale] || [have_spec rpi]} { return usb_drv }
- if {[have_spec zynq]} { return zynq_nic_drv }
- if {!([have_spec riscv] || [have_spec odroid_xu])} { return nic_drv }
- return no_nic_drv_available
-}
-
-
-##
-# Return configuration for NIC driver
-#
-proc nic_drv_config { } {
- if {[have_spec imx53]} {
- return "" }
- if {[have_spec imx6q_sabrelite]} {
- return "" }
- if {[have_spec omap4] || [have_spec arndale] || [have_spec rpi]} {
- return {} }
- return ""
-}
-
-
##
# Return name of the audio driver binary
#
diff --git a/repos/dde_linux/run/nic_router_uplinks.run b/repos/dde_linux/run/nic_router_uplinks.run
index 948720dfab..dba11ab49d 100644
--- a/repos/dde_linux/run/nic_router_uplinks.run
+++ b/repos/dde_linux/run/nic_router_uplinks.run
@@ -75,6 +75,7 @@ append config {
+
@@ -379,7 +380,7 @@ append boot_modules { libc.lib.so }
append boot_modules { dynamic_rom }
append boot_modules { rtc_drv }
append boot_modules { vfs.lib.so }
-append boot_modules { nic_drv }
+append boot_modules { ipxe_nic_drv }
append_platform_drv_boot_modules
build_boot_image $boot_modules
diff --git a/repos/dde_linux/run/vfs_cfg.run b/repos/dde_linux/run/vfs_cfg.run
index f842b19db5..d847ff80b5 100644
--- a/repos/dde_linux/run/vfs_cfg.run
+++ b/repos/dde_linux/run/vfs_cfg.run
@@ -1,3 +1,5 @@
+assert_spec linux
+
set build_components {
core init timer
drivers/nic
@@ -5,10 +7,6 @@ set build_components {
server/vfs
server/dynamic_rom
}
-
-source ${genode_dir}/repos/base/run/platform_drv.inc
-append_platform_drv_build_components
-
build $build_components
create_boot_directory
@@ -33,8 +31,8 @@ append config {
-
-
+
+
@@ -72,23 +70,16 @@ append config {
-}
-
-append_platform_drv_config
-
-append config {
}
install_config $config
append boot_modules {
- core init timer } [nic_drv_binary] { vfs dynamic_rom
- ld.lib.so vfs_lxip.lib.so lxip.lib.so
+ core init timer linux_nic_drv vfs dynamic_rom
+ ld.lib.so vfs.lib.so vfs_lxip.lib.so lxip.lib.so
}
-append_platform_drv_boot_modules
-
build_boot_image $boot_modules
puts "#################################################################"
@@ -96,8 +87,6 @@ puts "## run simultaneous ping to 10.0.2.55 and ##"
puts "#################################################################"
sleep 1
-append qemu_args " -nographic -net nic,model=e1000 -net tap,ifname=tap0,downscript=no,script=no "
-
run_genode_until forever
# vi: set ft=tcl :
diff --git a/repos/dde_linux/run/vfs_lxip.run b/repos/dde_linux/run/vfs_lxip.run
index ab2a100991..cc9b410dab 100644
--- a/repos/dde_linux/run/vfs_lxip.run
+++ b/repos/dde_linux/run/vfs_lxip.run
@@ -8,10 +8,6 @@ set build_components {
lib/vfs/lxip
test/vfs_lxip
}
-
-source ${genode_dir}/repos/base/run/platform_drv.inc
-append_platform_drv_build_components
-
build $build_components
create_boot_directory
@@ -37,8 +33,8 @@ append config {
-
-
+
+
@@ -77,18 +73,13 @@ append config {
-->
-}
-
-append_platform_drv_config
-
-append config {
}
install_config $config
append boot_modules {
- core init timer } [nic_drv_binary] {
+ core init timer linux_nic_drv
ld.lib.so libc.lib.so vfs.lib.so libc_pipe.lib.so posix.lib.so
libm.lib.so
vfs_lxip.lib.so lxip.lib.so
@@ -97,8 +88,6 @@ append boot_modules {
test-vfs_lxip
}
-append_platform_drv_boot_modules
-
build_boot_image $boot_modules
run_genode_until forever
diff --git a/repos/gems/run/depot_download.run b/repos/gems/run/depot_download.run
index e1cf90f8ca..550fb3e41f 100644
--- a/repos/gems/run/depot_download.run
+++ b/repos/gems/run/depot_download.run
@@ -1,12 +1,12 @@
create_boot_directory
-# the test currently is tied to the x86-only iPXE NIC driver
-if {![have_spec x86] || [have_spec linux]} {
+if {[have_spec linux]} {
puts "Run script does not support this platform."
exit 0
}
import_from_depot [depot_user]/src/[base_src] \
+ [depot_user]/pkg/[drivers_nic_pkg] \
[depot_user]/src/report_rom \
[depot_user]/src/fs_rom \
[depot_user]/src/vfs \
@@ -20,16 +20,11 @@ import_from_depot [depot_user]/src/[base_src] \
[depot_user]/src/curl \
[depot_user]/src/init \
[depot_user]/src/chroot \
- [depot_user]/src/acpi_drv \
- [depot_user]/src/ipxe_nic_drv \
- [depot_user]/src/platform_drv \
[depot_user]/src/extract \
[depot_user]/src/libarchive \
[depot_user]/src/liblzma \
[depot_user]/src/verify
-source ${genode_dir}/repos/base/run/platform_drv.inc
-
set config {
@@ -49,8 +44,6 @@ set config {
}
-append_platform_drv_config
-
proc depot_user_download { user } {
return [exec cat [genode_dir]/depot/$user/download] }
@@ -63,6 +56,17 @@ append config {
+
+
+
+
+
+
+
+
+
+
+
@@ -94,11 +98,6 @@ append config {
-
-
-
-
-
@@ -134,7 +133,18 @@ append boot_modules { depot_download_manager depot_query }
build_boot_image $boot_modules
-append qemu_args " -nographic -net nic,model=e1000 -net user "
+append qemu_args " -nographic "
+
+proc qemu_nic_model {} {
+ if [have_spec x86] { return e1000 }
+ if [have_spec lan9118] { return lan9118 }
+ if [have_spec zynq] { return cadence_gem }
+ return nic_model_missing
+}
+
+append qemu_args " -netdev user,id=net0 "
+append qemu_args " -net nic,model=[qemu_nic_model],netdev=net0 "
+
# watch the state reports generated by the depot-download manager
set expected_pattern {}
@@ -143,4 +153,3 @@ append expected_pattern {.*path="nfeske/index/19.02" state="done".*}
append expected_pattern {.*path="nfeske/index/19.03" state="failed".*}
run_genode_until $expected_pattern 150
-
diff --git a/repos/gems/run/mirage_pretty.run b/repos/gems/run/mirage_pretty.run
index 25e6900c34..efa3081feb 100644
--- a/repos/gems/run/mirage_pretty.run
+++ b/repos/gems/run/mirage_pretty.run
@@ -22,8 +22,9 @@ create_boot_directory
import_from_depot \
[depot_user]/src/[base_src] \
[depot_user]/src/init \
+ [depot_user]/src/ipxe_nic_drv \
[depot_user]/src/rtc_drv \
- [depot_user]/pkg/terminal \
+ [depot_user]/pkg/terminal
source ${genode_dir}/repos/base/run/platform_drv.inc
@@ -31,19 +32,12 @@ set build_components {
app/log_core
drivers/framebuffer
drivers/input/dummy
- drivers/nic
- drivers/rtc
lib/solo5
server/terminal_log
}
append_platform_drv_build_components
-lappend_if [expr {[nic_drv_binary] == "nic_drv"}] build_components drivers/nic
-lappend_if [expr {[nic_drv_binary] == "usb_drv"}] build_components drivers/usb
-
-lappend_if [have_spec gpio] build_components drivers/gpio
-
build $build_components
set fb_drv "fb_drv"
@@ -71,20 +65,13 @@ append config {
append_platform_drv_config
-append_if [have_spec gpio] config "
-
-
-
-
- "
-
append config {
-
+
@@ -137,7 +124,6 @@ append boot_modules {
log_core
terminal_log
mirage
- rtc_drv
solo5.lib.so
}
@@ -146,20 +132,9 @@ append boot_modules " $fb_drv"
# platform-specific modules
append_platform_drv_boot_modules
-lappend boot_modules [nic_drv_binary]
-
-lappend_if [have_spec gpio] boot_modules [gpio_drv]
-
build_boot_image $boot_modules
-proc qemu_nic_model {} {
- if [have_spec x86] { return e1000 }
- if [have_spec lan9118] { return lan9118 }
- if [have_spec zynq] { return cadence_gem }
- return nic_model_missing
-}
-
append qemu_args " -netdev user,id=net0 "
-append qemu_args " -net nic,model=[qemu_nic_model],netdev=net0 "
+append qemu_args " -net nic,model=e1000,netdev=net0 "
run_genode_until forever
diff --git a/repos/gems/run/ssh_terminal.run b/repos/gems/run/ssh_terminal.run
index 538e782862..6f58b21f5e 100644
--- a/repos/gems/run/ssh_terminal.run
+++ b/repos/gems/run/ssh_terminal.run
@@ -64,6 +64,7 @@ set config {
+
@@ -139,7 +140,7 @@ if {![file exists bin/ed25519_key]} {
# generic modules
set boot_modules {
- core ld.lib.so init timer nic_drv rtc_drv report_rom
+ core ld.lib.so init timer ipxe_nic_drv rtc_drv report_rom
noux test-terminal_echo
libc.lib.so libm.lib.so vfs.lib.so
diff --git a/repos/gems/run/tcp_terminal.run b/repos/gems/run/tcp_terminal.run
index a8ebff2a99..bced65a210 100644
--- a/repos/gems/run/tcp_terminal.run
+++ b/repos/gems/run/tcp_terminal.run
@@ -11,30 +11,18 @@
if {[have_spec linux]} {
puts "Run script does not support Linux."; exit 0 }
-#
-# Build
-#
-
-set build_components {
- core init timer
- drivers/nic
- server/tcp_terminal
- test/terminal_echo
- lib/vfs/lwip
-}
-
-source ${genode_dir}/repos/base/run/platform_drv.inc
-append_platform_drv_build_components
-
-build $build_components
-
create_boot_directory
-#
-# Generate config
-#
+import_from_depot [depot_user]/src/[base_src] \
+ [depot_user]/pkg/[drivers_nic_pkg] \
+ [depot_user]/src/init \
+ [depot_user]/src/libc \
+ [depot_user]/src/vfs \
+ [depot_user]/src/vfs_lwip
-set config {
+build { server/tcp_terminal test/terminal_echo }
+
+install_config {
@@ -54,8 +42,14 @@ set config {
-
-
+
+
+
+
+
+
+
+
@@ -72,50 +66,25 @@ set config {
- }
-
-append_platform_drv_config
-
-append config {
+
}
-install_config $config
+build_boot_image { tcp_terminal test-terminal_echo libc_pipe.lib.so }
-#
-# Boot modules
-#
-
-# generic modules
-set boot_modules {
- core ld.lib.so init timer
- nic_drv
- libc.lib.so vfs.lib.so libc_pipe.lib.so
- tcp_terminal
- test-terminal_echo
- vfs_lwip.lib.so
-}
-
-# platform-specific modules
-append_platform_drv_boot_modules
-
-build_boot_image $boot_modules
-
-#
-# Execute test
-#
# qemu config
-append qemu_args " -nographic "
proc qemu_nic_model {} {
if [have_spec x86] { return e1000 }
if [have_spec lan9118] { return lan9118 }
+ if [have_spec zynq] { return cadence_gem }
return nic_model_missing
}
-append qemu_args " -net nic,model=[qemu_nic_model],netdev=net0 "
+append qemu_args " -nographic "
append qemu_args " -netdev user,id=net0,hostfwd=tcp::5555-:8888 "
+append qemu_args " -net nic,model=[qemu_nic_model],netdev=net0 "
run_genode_until forever
diff --git a/repos/libports/run/fetchurl.inc b/repos/libports/run/fetchurl.inc
index 4c3322a52a..d473d15add 100644
--- a/repos/libports/run/fetchurl.inc
+++ b/repos/libports/run/fetchurl.inc
@@ -4,34 +4,35 @@
# \date 2016-06-05
#
-if {[have_spec odroid_xu] || [have_spec linux] ||
+if {[have_spec linux] ||
[expr [have_spec imx53] && [have_spec trustzone]]} {
puts "Run script does not support this platform."
exit 0
}
-set build_components {
- app/fetchurl
- core init timer
- drivers/nic
- server/report_rom
+proc socket_fs_plugin {} {
+ global use_lxip
+ if { $use_lxip } { return lxip }
+ return lwip
}
-lappend_if [have_spec gpio] build_components drivers/gpio
-
-source ${genode_dir}/repos/base/run/platform_drv.inc
-
-append_platform_drv_build_components
-append_socket_fs_build_components
-
-lappend_if [expr {[nic_drv_binary] == "nic_drv"}] build_components drivers/nic
-lappend_if [expr {[nic_drv_binary] == "usb_drv"}] build_components drivers/usb
-
-build $build_components
-
create_boot_directory
-append config {
+import_from_depot [depot_user]/src/[base_src] \
+ [depot_user]/pkg/[drivers_nic_pkg] \
+ [depot_user]/src/curl \
+ [depot_user]/src/fetchurl \
+ [depot_user]/src/init \
+ [depot_user]/src/libc \
+ [depot_user]/src/libcrypto \
+ [depot_user]/src/libssh \
+ [depot_user]/src/libssl \
+ [depot_user]/src/report_rom \
+ [depot_user]/src/vfs \
+ [depot_user]/src/vfs_[socket_fs_plugin] \
+ [depot_user]/src/zlib
+
+install_config {
@@ -48,28 +49,24 @@ append config {
- }
+
-append_platform_drv_config
-
-append_if [have_spec gpio] config "
-
-
-
-
- "
-
-append config {
-
-
-
+
+
+
+
+
+
+
+
+
- } [nic_drv_config] {
+
@@ -94,35 +91,7 @@ append config {
}
-install_config $config
-
-# generic modules
-set boot_modules {
- core init ld.lib.so
- curl.lib.so
- fetchurl
- libc.lib.so vfs.lib.so
- libcrypto.lib.so
- libssh.lib.so
- libssl.lib.so
- timer
- zlib.lib.so
- report_rom
-}
-
-# platform-specific modules
-append_platform_drv_boot_modules
-
-# vfs plugin modules
-append_socket_fs_boot_modules
-
-lappend boot_modules [nic_drv_binary]
-
-lappend_if [have_spec gpio] boot_modules [gpio_drv]
-
-build_boot_image $boot_modules
-
-append qemu_args " -nographic "
+build_boot_image {}
proc qemu_nic_model {} {
if [have_spec x86] { return e1000 }
@@ -131,6 +100,7 @@ proc qemu_nic_model {} {
return nic_model_missing
}
+append qemu_args " -nographic "
append qemu_args " -netdev user,id=net0 "
append qemu_args " -net nic,model=[qemu_nic_model],netdev=net0 "
diff --git a/repos/libports/run/fetchurl_lwip.run b/repos/libports/run/fetchurl_lwip.run
index afad0425d5..06c4149513 100644
--- a/repos/libports/run/fetchurl_lwip.run
+++ b/repos/libports/run/fetchurl_lwip.run
@@ -1,2 +1,2 @@
-source ${genode_dir}/repos/libports/run/vfs_lwip.inc
+set use_lxip 0
source ${genode_dir}/repos/libports/run/fetchurl.inc
diff --git a/repos/libports/run/fetchurl_lxip.run b/repos/libports/run/fetchurl_lxip.run
index fc50332766..ff68b116da 100644
--- a/repos/libports/run/fetchurl_lxip.run
+++ b/repos/libports/run/fetchurl_lxip.run
@@ -1,2 +1,2 @@
-source ${genode_dir}/repos/dde_linux/run/vfs_lxip.inc
+set use_lxip 1
source ${genode_dir}/repos/libports/run/fetchurl.inc
diff --git a/repos/libports/run/libc_getaddrinfo.run b/repos/libports/run/libc_getaddrinfo.run
index c53ebc4ea8..b50d79675c 100644
--- a/repos/libports/run/libc_getaddrinfo.run
+++ b/repos/libports/run/libc_getaddrinfo.run
@@ -1,23 +1,22 @@
-source ${genode_dir}/repos/base/run/platform_drv.inc
-
if {[have_spec linux]} {
puts "The [run_name] scenario requires QEMU networking."
exit 1
}
-set build_components {
- core init timer
- lib/vfs/lwip
- test/libc_getaddrinfo
-}
-
-append_platform_drv_build_components
-
-build $build_components
-
create_boot_directory
-append config {
+import_from_depot [depot_user]/src/[base_src] \
+ [depot_user]/pkg/[drivers_nic_pkg] \
+ [depot_user]/src/init \
+ [depot_user]/src/libc \
+ [depot_user]/src/posix \
+ [depot_user]/src/vfs \
+ [depot_user]/src/vfs_lwip \
+ [depot_user]/src/zlib
+
+build { test/libc_getaddrinfo }
+
+install_config {
@@ -32,18 +31,21 @@ append config {
- }
+
-append_platform_drv_config
-
-append config {
-
-
-
+
+
+
+
+
+
+
+
+
@@ -64,23 +66,15 @@ append config {
}
-install_config $config
+build_boot_image { test-libc_getaddrinfo }
-set boot_modules {
- core init ld.lib.so
- libc.lib.so libm.lib.so posix.lib.so
- vfs_lwip.lib.so
- test-libc_getaddrinfo
- vfs.lib.so
- timer
+proc qemu_nic_model {} {
+ if [have_spec x86] { return e1000 }
+ if [have_spec lan9118] { return lan9118 }
+ if [have_spec zynq] { return cadence_gem }
+ return nic_model_missing
}
-# platform-specific modules
-append_platform_drv_boot_modules
-lappend boot_modules [nic_drv_binary]
-
-build_boot_image $boot_modules
-
-append qemu_args " -nographic -net nic,model=e1000 -net user"
+append qemu_args " -nographic -net nic,model=[qemu_nic_model] -net user"
run_genode_until "child .* exited with exit value 0.*\n" 20
diff --git a/repos/libports/run/lwip.run b/repos/libports/run/lwip.run
index 8eb52120b1..7864850f5d 100644
--- a/repos/libports/run/lwip.run
+++ b/repos/libports/run/lwip.run
@@ -20,41 +20,25 @@
# tun/tap proxy driver at os/src/drivers/nic/linux)
#
-set use_usb_driver [expr [have_spec omap4] || [have_spec arndale] || [have_spec rpi]]
-set use_nic_driver [expr !$use_usb_driver && ![have_spec odroid_xu] && ![have_spec linux]]
-
-if {[expr !$use_usb_driver && !$use_nic_driver] ||
- [expr [have_spec imx53] && [have_spec trustzone]]} {
+if {[expr [have_spec linux]] ||
+ [expr [have_spec imx53] && [have_spec trustzone]] ||
+ [expr [have_spec riscv]]} {
puts "\n Run script is not supported on this platform. \n"; exit 0 }
set lynx [installed_command lynx]
-#
-# Build
-#
-
-set build_components {
- core init timer
- drivers/nic
- test/lwip/http_srv
- lib/vfs/lwip
-}
-
-lappend_if $use_usb_driver build_components drivers/usb
-lappend_if [have_spec gpio] build_components drivers/gpio
-
-source ${genode_dir}/repos/base/run/platform_drv.inc
-append_platform_drv_build_components
-
-build $build_components
-
create_boot_directory
-#
-# Generate config
-#
+import_from_depot [depot_user]/src/[base_src] \
+ [depot_user]/pkg/[drivers_nic_pkg] \
+ [depot_user]/src/init \
+ [depot_user]/src/libc \
+ [depot_user]/src/vfs_lwip \
+ [depot_user]/src/vfs
-set config {
+build { test/lwip/http_srv }
+
+install_config {
@@ -70,10 +54,23 @@ set config {
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -83,75 +80,22 @@ set config {
- }
-
-append_if [have_spec gpio] config "
-
-
-
-
- "
-
-append_if $use_usb_driver config {
-
-
-
-
-
-
-
-
- }
-
-append_platform_drv_config
-
-append_if $use_nic_driver config {
-
-
-
-
- } [nic_drv_config] {
- }
-
-append config {
+
}
-install_config $config
+build_boot_image { test-lwip_httpsrv }
#
-# Boot modules
+# Qemu config
#
-
-# generic modules
-set boot_modules {
- core init timer
- ld.lib.so libc.lib.so vfs.lib.so vfs_lwip.lib.so test-lwip_httpsrv
-}
-
-# platform-specific modules
-lappend_if $use_usb_driver boot_modules usb_drv
-lappend_if $use_nic_driver boot_modules [nic_drv_binary]
-lappend_if [have_spec gpio] boot_modules [gpio_drv]
-
-append_platform_drv_boot_modules
-
-build_boot_image $boot_modules
-
-#
-# Execute test case
-#
-
-# qemu config
-append qemu_args " -nographic "
-
proc qemu_nic_model {} {
if [have_spec x86] { return e1000 }
if [have_spec lan9118] { return lan9118 }
if [have_spec zynq] { return cadence_gem }
return nic_model_missing
}
-
+append qemu_args " -nographic "
append qemu_args " -netdev user,id=net0,hostfwd=tcp::5555-:80 "
append qemu_args " -net nic,model=[qemu_nic_model],netdev=net0 "
diff --git a/repos/libports/run/mirage_net.run b/repos/libports/run/mirage_net.run
index 3bdf85579f..f4c00ba3d1 100644
--- a/repos/libports/run/mirage_net.run
+++ b/repos/libports/run/mirage_net.run
@@ -34,11 +34,6 @@ set build_components {
append_platform_drv_build_components
-lappend_if [expr {[nic_drv_binary] == "nic_drv"}] build_components drivers/nic
-lappend_if [expr {[nic_drv_binary] == "usb_drv"}] build_components drivers/usb
-
-lappend_if [have_spec gpio] build_components drivers/gpio
-
build $build_components
append config {
@@ -60,20 +55,13 @@ append config {
append_platform_drv_config
-append_if [have_spec gpio] config "
-
-
-
-
- "
-
append config {
-
+
@@ -93,16 +81,13 @@ install_config $config
set boot_modules {
mirage
rtc_drv
+ ipxe_nic_drv
solo5.lib.so
}
# platform-specific modules
append_platform_drv_boot_modules
-lappend boot_modules [nic_drv_binary]
-
-lappend_if [have_spec gpio] boot_modules [gpio_drv]
-
build_boot_image $boot_modules
append qemu_args " -nographic "
diff --git a/repos/libports/run/netty.inc b/repos/libports/run/netty.inc
index 0849d7b0e1..028d901e70 100644
--- a/repos/libports/run/netty.inc
+++ b/repos/libports/run/netty.inc
@@ -1,16 +1,14 @@
-assert_spec x86
-
proc use_dynamic_rom { } { return true }
-set build_components {
- core init timer drivers/nic server/vfs
- lib/vfs/lxip
-}
-
-lappend_if [use_dynamic_rom] build_components server/dynamic_rom
-
-source ${genode_dir}/repos/base/run/platform_drv.inc
-append_platform_drv_build_components
+create_boot_directory
+import_from_depot [depot_user]/src/[base_src] \
+ [depot_user]/pkg/[drivers_nic_pkg] \
+ [depot_user]/src/dynamic_rom \
+ [depot_user]/src/init \
+ [depot_user]/src/libc \
+ [depot_user]/src/vfs_audit \
+ [depot_user]/src/vfs_lxip \
+ [depot_user]/src/vfs
append config {
@@ -33,16 +31,17 @@ append config {
-}
-append_platform_drv_config
-
-append config {
-
-
-
+
+
+
+
+
+
+
+
- }
+ }
append_if [use_dynamic_rom] config {
@@ -102,15 +101,14 @@ append config {
}
-append boot_modules {
- core init timer } [nic_drv_binary] { vfs
- ld.lib.so libc.lib.so vfs.lib.so vfs_lxip.lib.so lxip.lib.so
+proc qemu_nic_model {} {
+ if [have_spec x86] { return e1000 }
+ if [have_spec lan9118] { return lan9118 }
+ if [have_spec zynq] { return cadence_gem }
+ return nic_model_missing
}
-
-lappend_if [use_dynamic_rom] boot_modules dynamic_rom
-
-append_platform_drv_boot_modules
-
-append qemu_args " -nographic -net nic,model=e1000 -net tap,ifname=tap0,downscript=no,script=no "
+append qemu_args " -nographic "
+append qemu_args " -net nic,model=[qemu_nic_model] "
+append qemu_args " -net tap,ifname=tap0,downscript=no,script=no "
# vi: set ft=tcl :
diff --git a/repos/libports/run/netty_lwip.inc b/repos/libports/run/netty_lwip.inc
index 8772575023..8692cd7d70 100644
--- a/repos/libports/run/netty_lwip.inc
+++ b/repos/libports/run/netty_lwip.inc
@@ -1,19 +1,11 @@
-assert_spec x86
-
-proc use_dynamic_rom { } { return false }
-
-set build_components {
- core init timer
- drivers/nic
- server/vfs
- lib/vfs/lwip
- lib/vfs/audit
-}
-
-lappend_if [use_dynamic_rom] build_components server/dynamic_rom
-
-source ${genode_dir}/repos/base/run/platform_drv.inc
-append_platform_drv_build_components
+create_boot_directory
+import_from_depot [depot_user]/src/[base_src] \
+ [depot_user]/pkg/[drivers_nic_pkg] \
+ [depot_user]/src/init \
+ [depot_user]/src/libc \
+ [depot_user]/src/vfs_audit \
+ [depot_user]/src/vfs_lwip \
+ [depot_user]/src/vfs
append config {
@@ -36,17 +28,16 @@ append config {
-}
-
-append_platform_drv_config
-
-append config {
-
-
-
+
+
+
+
+
+
+
+
-
@@ -70,20 +61,14 @@ append config {
}
-append boot_modules {
- core init timer } [nic_drv_binary] {
- ld.lib.so
- libc.lib.so
- vfs
- vfs_audit.lib.so
- vfs.lib.so
- vfs_lwip.lib.so
+proc qemu_nic_model {} {
+ if [have_spec x86] { return e1000 }
+ if [have_spec lan9118] { return lan9118 }
+ if [have_spec zynq] { return cadence_gem }
+ return nic_model_missing
}
-
-lappend_if [use_dynamic_rom] boot_modules dynamic_rom
-
-append_platform_drv_boot_modules
-
-append qemu_args " -nographic -net nic,model=e1000 -net tap,ifname=tap0,downscript=no,script=no "
+append qemu_args " -nographic "
+append qemu_args " -net nic,model=[qemu_nic_model] "
+append qemu_args " -net tap,ifname=tap0,downscript=no,script=no "
# vi: set ft=tcl :
diff --git a/repos/libports/run/netty_lwip_tcp.run b/repos/libports/run/netty_lwip_tcp.run
index fdc54e5709..b223fde751 100644
--- a/repos/libports/run/netty_lwip_tcp.run
+++ b/repos/libports/run/netty_lwip_tcp.run
@@ -1,10 +1,6 @@
source ${genode_dir}/repos/libports/run/netty_lwip.inc
-append build_components { test/netty/tcp }
-
-build $build_components
-
-create_boot_directory
+build { test/netty/tcp }
append config {
@@ -62,11 +58,7 @@ append config {
}
install_config $config
-
-append boot_modules { test-netty_tcp }
-
-build_boot_image $boot_modules
-
+build_boot_image { test-netty_tcp }
run_genode_until forever
# vi: set ft=tcl :
diff --git a/repos/libports/run/netty_lwip_udp.run b/repos/libports/run/netty_lwip_udp.run
index 94752c0490..a6aed1841a 100644
--- a/repos/libports/run/netty_lwip_udp.run
+++ b/repos/libports/run/netty_lwip_udp.run
@@ -1,10 +1,6 @@
source ${genode_dir}/repos/libports/run/netty_lwip.inc
-append build_components { test/netty/udp }
-
-build $build_components
-
-create_boot_directory
+build { test/netty/udp }
append config {
@@ -35,11 +31,7 @@ append config {
}
install_config $config
-
-append boot_modules { test-netty_udp }
-
-build_boot_image $boot_modules
-
+build_boot_image { test-netty_udp }
run_genode_until forever
# vi: set ft=tcl :
diff --git a/repos/libports/run/netty_lxip_tcp.run b/repos/libports/run/netty_lxip_tcp.run
index 26bb2f3340..018db1dea1 100644
--- a/repos/libports/run/netty_lxip_tcp.run
+++ b/repos/libports/run/netty_lxip_tcp.run
@@ -1,10 +1,6 @@
source ${genode_dir}/repos/libports/run/netty.inc
-append build_components { test/netty/tcp }
-
-build $build_components
-
-create_boot_directory
+build { test/netty/tcp }
append config {
@@ -62,11 +58,7 @@ append config {
}
install_config $config
-
-append boot_modules { test-netty_tcp }
-
-build_boot_image $boot_modules
-
+build_boot_image { test-netty_tcp }
run_genode_until forever
# vi: set ft=tcl :
diff --git a/repos/libports/run/netty_lxip_udp.run b/repos/libports/run/netty_lxip_udp.run
index a3360a06c7..249137e211 100644
--- a/repos/libports/run/netty_lxip_udp.run
+++ b/repos/libports/run/netty_lxip_udp.run
@@ -1,10 +1,6 @@
source ${genode_dir}/repos/libports/run/netty.inc
-append build_components { test/netty/udp }
-
-build $build_components
-
-create_boot_directory
+build { test/netty/udp }
append config {
@@ -35,11 +31,7 @@ append config {
}
install_config $config
-
-append boot_modules { test-netty_udp }
-
-build_boot_image $boot_modules
-
+build_boot_image { test-netty_udp }
run_genode_until forever
# vi: set ft=tcl :
diff --git a/repos/libports/run/nic_bridge.run b/repos/libports/run/nic_bridge.run
index 18aec96f41..b096ba6a3c 100644
--- a/repos/libports/run/nic_bridge.run
+++ b/repos/libports/run/nic_bridge.run
@@ -1,33 +1,21 @@
-#
-# Build
-#
-
if {![have_include power_on/qemu]} {
puts "Run script is only supported on Qemu"
exit 0
}
-set build_components {
- core init timer
- drivers/nic
- server/nic_bridge
- test/lwip/http_srv
- test/lwip/http_clnt
- lib/vfs/lwip
-}
-
-source ${genode_dir}/repos/base/run/platform_drv.inc
-append_platform_drv_build_components
-
-build $build_components
-
create_boot_directory
-#
-# Generate config
-#
+import_from_depot [depot_user]/src/[base_src] \
+ [depot_user]/pkg/[drivers_nic_pkg] \
+ [depot_user]/src/init \
+ [depot_user]/src/libc \
+ [depot_user]/src/nic_bridge \
+ [depot_user]/src/vfs_lwip \
+ [depot_user]/src/vfs
-append config {
+build { test/lwip }
+
+install_config {
@@ -42,20 +30,22 @@ append config {
- }
+
-append_platform_drv_config
-
-append config {
-
-
-
-
+
+
+
+
+
+
+
+
+
@@ -68,7 +58,7 @@ append config {
-
+
@@ -158,34 +148,11 @@ append config {
}
-install_config $config
-
-#
-# Boot modules
-#
-
-# generic modules
-append boot_modules {
- core init
- timer } [nic_drv_binary] {
- nic_bridge
- ld.lib.so
- libc.lib.so vfs.lib.so
+build_boot_image {
test-http_clnt
test-lwip_httpsrv
- vfs_lwip.lib.so
}
-
-# platform-specific modules
-lappend_if [have_spec linux] boot_modules fb_sdl
-
-append_platform_drv_boot_modules
-
-build_boot_image $boot_modules
-
-append qemu_args " -nographic "
-
proc qemu_nic_model {} {
if [have_spec x86] { return e1000 }
if [have_spec lan9118] { return lan9118 }
@@ -193,6 +160,7 @@ proc qemu_nic_model {} {
return nic_model_missing
}
+append qemu_args " -nographic "
append qemu_args " -netdev user,id=net0 "
append qemu_args " -net nic,model=[qemu_nic_model],netdev=net0 "
diff --git a/repos/libports/run/nic_bridge_lighttpd.run b/repos/libports/run/nic_bridge_lighttpd.run
deleted file mode 100644
index 613e3a0796..0000000000
--- a/repos/libports/run/nic_bridge_lighttpd.run
+++ /dev/null
@@ -1,170 +0,0 @@
-#
-# Build
-#
-
-set build_components {
- core init timer
- drivers/input drivers/nic
- server/nic_bridge
- app/lighttpd
- test/lwip/http_clnt
-
-}
-
-source ${genode_dir}/repos/base/run/platform_drv.inc
-append_platform_drv_build_components
-
-build $build_components
-
-create_boot_directory
-
-#
-# Generate config
-#
-
-append config {
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
-
-append_platform_drv_config
-
-append config {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-# lighttpd configuration
-server.port = 80
-server.document-root = "/website"
-server.event-handler = "select"
-server.network-backend = "write"
-index-file.names = (
- "index.xhtml", "index.html", "index.htm"
-)
-mimetype.assign = (
- ".html" => "text/html",
- ".htm" => "text/html"
-)
-
-
-
-
-
-
-
- Hello
-
-
- Hello Genode!
- I am bold ;-)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-}
-
-install_config $config
-
-#
-# Boot modules
-#
-
-# generic modules
-append boot_modules {
- core init
- timer } [nic_drv_binary] {
- nic_bridge
- ld.lib.so
- libc.lib.so vfs.lib.so
- posix.lib.so
- lwip_legacy.lib.so
- test-http_clnt
- libm.lib.so
- zlib.lib.so
- lighttpd
-}
-
-
-# platform-specific modules
-lappend_if [have_spec linux] boot_modules fb_sdl
-
-append_platform_drv_boot_modules
-
-build_boot_image $boot_modules
-
-append qemu_args " -nographic -serial mon:stdio "
-
-proc qemu_nic_model {} {
- if [have_spec x86] { return e1000 }
- if [have_spec lan9118] { return lan9118 }
- if [have_spec zynq] { return cadence_gem }
- return nic_model_missing
-}
-
-append qemu_args " -netdev user,id=net0 "
-append qemu_args " -net nic,model=[qemu_nic_model],netdev=net0 "
-
-run_genode_until forever
diff --git a/repos/libports/run/qt5_drivers.inc b/repos/libports/run/qt5_drivers.inc
index 9c48763aa2..fb08123822 100644
--- a/repos/libports/run/qt5_drivers.inc
+++ b/repos/libports/run/qt5_drivers.inc
@@ -43,10 +43,22 @@ proc use_nic_drv { feature_arg } {
return [expr {[info exists feature(Nic)] &&
([have_spec zynq] ||
[have_spec lan9118] ||
+ [have_spec imx53] ||
+ [have_spec imx6] ||
[have_spec linux] ||
[have_spec x86])}]
}
+proc nic_drv_binary { } {
+ if {[have_spec linux]} { return linux_nic_drv }
+ if {[have_spec zynq]} { return zynq_nic_drv }
+ if {[have_spec lan9118]} { return lan9118_nic_drv }
+ if {[have_spec x86]} { return ipxe_nic_drv }
+ if {[have_spec imx53]} { return fec_nic_drv }
+ if {[have_spec imx6]} { return fec_nic_drv }
+ return no_nic_drv_available
+}
+
proc use_ps2_drv { feature_arg } {
upvar $feature_arg feature
return [have_spec ps2]
diff --git a/repos/libports/run/solo5_ping.run b/repos/libports/run/solo5_ping.run
index 6a00ca9455..96ca697ea6 100644
--- a/repos/libports/run/solo5_ping.run
+++ b/repos/libports/run/solo5_ping.run
@@ -49,10 +49,9 @@ append config {
-
+
- } [nic_drv_config] {
@@ -110,7 +109,7 @@ build $build_components
append boot_modules {
nic_bridge
ping
- } [nic_drv_binary] {
+ ipxe_nic_drv
solo5-test_ping_serve
solo5.lib.so
}
diff --git a/repos/os/run/nic_router_flood.run b/repos/os/run/nic_router_flood.run
index e0cb29ea9e..3d0c7eb05d 100644
--- a/repos/os/run/nic_router_flood.run
+++ b/repos/os/run/nic_router_flood.run
@@ -1,9 +1,5 @@
-#
-# Build
-#
-
if {![have_include power_on/qemu] ||
- [have_spec foc] || [have_spec odroid_xu] ||
+ [have_spec foc] ||
[expr [have_spec imx53] && [have_spec trustzone]]} {
puts "Run script is not supported on this platform."
@@ -15,30 +11,18 @@ proc pause_sec { } { return 5 }
proc good_dst_ip { } { return "10.0.2.2" }
proc bad_dst_ip { } { return "10.0.0.123" }
-set build_components {
- core init timer
- drivers/nic
- server/nic_router
- test/net_flood
- app/ping
- server/report_rom
- server/dynamic_rom
-}
-
-lappend_if [have_spec gpio] build_components drivers/gpio
-
-source ${genode_dir}/repos/base/run/platform_drv.inc
-append_platform_drv_build_components
-
-build $build_components
-
create_boot_directory
-#
-# Generate config
-#
+import_from_depot [depot_user]/src/[base_src] \
+ [depot_user]/pkg/[drivers_nic_pkg] \
+ [depot_user]/src/dynamic_rom \
+ [depot_user]/src/init \
+ [depot_user]/src/nic_router \
+ [depot_user]/src/report_rom
-append config {
+build { app/ping test/net_flood }
+
+install_config {
@@ -54,30 +38,22 @@ append config {
- }
-
-append_platform_drv_config
-
-append_if [have_spec gpio] config "
-
-
-
-
-
- "
-
-append config {
+
-
-
-
-
- } [nic_drv_config] {
+
+
+
+
+
+
+
+
+
@@ -119,7 +95,7 @@ append config {
-
+
@@ -213,34 +189,7 @@ append config {
}
-install_config $config
-
-#
-# Boot modules
-#
-
-# generic modules
-append boot_modules {
- core init
- timer
- } [nic_drv_binary] {
- test-net_flood
- ld.lib.so
- nic_router
- ping
- report_rom
- dynamic_rom
-}
-
-# platform-specific modules
-lappend_if [have_spec linux] boot_modules fb_sdl
-lappend_if [have_spec gpio] boot_modules [gpio_drv]
-
-append_platform_drv_boot_modules
-
-build_boot_image $boot_modules
-
-append qemu_args " -nographic "
+build_boot_image { test-net_flood ping }
proc qemu_nic_model {} {
if [have_spec x86] { return e1000 }
@@ -249,6 +198,7 @@ proc qemu_nic_model {} {
return nic_model_missing
}
+append qemu_args " -nographic "
append qemu_args " -netdev user,id=net0 "
append qemu_args " -net nic,model=[qemu_nic_model],netdev=net0 "
diff --git a/repos/os/run/ping.run b/repos/os/run/ping.run
index 44543af09c..2581e086bf 100644
--- a/repos/os/run/ping.run
+++ b/repos/os/run/ping.run
@@ -1,24 +1,20 @@
-#
-# Build
-#
-
-set on_hardware [expr ![have_include power_on/qemu]]
-
-set build_components {
- core init timer
- drivers/nic
- server/nic_bridge
- app/ping
-}
-
-lappend_if [have_spec gpio] build_components drivers/gpio
-
-if {[have_spec foc] || [have_spec odroid_xu] || [have_spec linux] ||
+if {[have_spec foc] || [have_spec linux] ||
[expr [have_spec imx53] && [have_spec trustzone]]} {
puts "Run script is not supported on this platform."
exit 0
}
+set on_hardware [expr ![have_include power_on/qemu]]
+
+create_boot_directory
+
+import_from_depot [depot_user]/src/[base_src] \
+ [depot_user]/pkg/[drivers_nic_pkg] \
+ [depot_user]/src/init \
+ [depot_user]/src/nic_bridge
+
+build { app/ping }
+
proc dst_ip { } {
if {![have_include power_on/qemu]} {
return "10.0.0.2"
@@ -27,17 +23,6 @@ proc dst_ip { } {
}
}
-source ${genode_dir}/repos/base/run/platform_drv.inc
-append_platform_drv_build_components
-
-build $build_components
-
-create_boot_directory
-
-#
-# Generate config
-#
-
append config {
@@ -53,28 +38,22 @@ append config {
- }
+
-append_platform_drv_config
-
-append_if [have_spec gpio] config "
-
-
-
-
- "
-
-append config {
-
-
-
-
- } [nic_drv_config] {
+
+
+
+
+
+
+
+
+
@@ -85,7 +64,7 @@ append config {
-
+
}
@@ -122,30 +101,7 @@ append config {
}
install_config $config
-
-#
-# Boot modules
-#
-
-# generic modules
-append boot_modules {
- core init
- timer
- } [nic_drv_binary] {
- ping
- ld.lib.so
- nic_bridge
-}
-
-# platform-specific modules
-lappend_if [have_spec linux] boot_modules fb_sdl
-lappend_if [have_spec gpio] boot_modules [gpio_drv]
-
-append_platform_drv_boot_modules
-
-build_boot_image $boot_modules
-
-append qemu_args " -nographic "
+build_boot_image { ping }
proc qemu_nic_model {} {
if [have_spec x86] { return e1000 }
@@ -154,6 +110,7 @@ proc qemu_nic_model {} {
return nic_model_missing
}
+append qemu_args " -nographic "
append qemu_args " -netdev user,id=net0 "
append qemu_args " -net nic,model=[qemu_nic_model],netdev=net0 "
diff --git a/repos/os/run/ping_nic_router.run b/repos/os/run/ping_nic_router.run
index 3f0885445a..d551f762c9 100644
--- a/repos/os/run/ping_nic_router.run
+++ b/repos/os/run/ping_nic_router.run
@@ -1,25 +1,21 @@
-#
-# Build
-#
-
-set on_hardware [expr ![have_include power_on/qemu]]
-
-set build_components {
- core init timer
- drivers/nic
- server/nic_router
- server/nic_bridge
- app/ping
-}
-
-lappend_if [have_spec gpio] build_components drivers/gpio
-
if {[have_spec foc] || [have_spec odroid_xu] || [have_spec linux] ||
[expr [have_spec imx53] && [have_spec trustzone]]} {
puts "Run script is not supported on this platform."
exit 0
}
+set on_hardware [expr ![have_include power_on/qemu]]
+
+create_boot_directory
+
+import_from_depot [depot_user]/src/[base_src] \
+ [depot_user]/pkg/[drivers_nic_pkg] \
+ [depot_user]/src/init \
+ [depot_user]/src/nic_bridge \
+ [depot_user]/src/nic_router
+
+build { app/ping }
+
proc good_dst_ip { } {
if {![have_include power_on/qemu]} {
return "10.0.0.2"
@@ -30,18 +26,6 @@ proc good_dst_ip { } {
proc bad_dst_port { } { return "12345" }
proc bad_dst_ip { } { return "10.0.1.2" }
-
-source ${genode_dir}/repos/base/run/platform_drv.inc
-append_platform_drv_build_components
-
-build $build_components
-
-create_boot_directory
-
-#
-# Generate config
-#
-
append config {
@@ -57,28 +41,22 @@ append config {
- }
+
-append_platform_drv_config
-
-append_if [have_spec gpio] config "
-
-
-
-
- "
-
-append config {
-
-
-
-
- } [nic_drv_config] {
+
+
+
+
+
+
+
+
+
@@ -111,7 +89,7 @@ append config {
-
+
@@ -237,31 +215,7 @@ append config {
}
install_config $config
-
-#
-# Boot modules
-#
-
-# generic modules
-append boot_modules {
- core init
- timer
- } [nic_drv_binary] {
- ping
- ld.lib.so
- nic_router
- nic_bridge
-}
-
-# platform-specific modules
-lappend_if [have_spec linux] boot_modules fb_sdl
-lappend_if [have_spec gpio] boot_modules [gpio_drv]
-
-append_platform_drv_boot_modules
-
-build_boot_image $boot_modules
-
-append qemu_args " -nographic "
+build_boot_image { ping }
proc qemu_nic_model {} {
if [have_spec x86] { return e1000 }
@@ -270,6 +224,7 @@ proc qemu_nic_model {} {
return nic_model_missing
}
+append qemu_args " -nographic "
append qemu_args " -netdev user,id=net0 "
append qemu_args " -net nic,model=[qemu_nic_model],netdev=net0 "
diff --git a/repos/ports/run/genode_org.run b/repos/ports/run/genode_org.run
index f0bb52d3d8..b31da972ce 100644
--- a/repos/ports/run/genode_org.run
+++ b/repos/ports/run/genode_org.run
@@ -9,35 +9,21 @@
# browser to http://localhost:5555
#
-if {[have_spec odroid_xu]} {
- puts "Run script does not support this platform."
- exit 0
-}
-
-set build_components {
- core init timer
- app/lighttpd
- lib/vfs/lwip
-}
-
-set use_usb_driver [expr [have_spec omap4] || [have_spec arndale] || [have_spec rpi]]
-set use_nic_driver [expr !$use_usb_driver]
-
-if {$use_usb_driver} { set network_driver "usb_drv" }
-if {$use_nic_driver} { set network_driver "nic_drv" }
-
-lappend_if $use_usb_driver build_components drivers/usb
-lappend_if $use_nic_driver build_components drivers/nic
-lappend_if [have_spec gpio] build_components drivers/gpio
-
-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 \
+ [depot_user]/src/libc \
+ [depot_user]/src/libcrypto \
+ [depot_user]/src/libssh \
+ [depot_user]/src/libssl \
+ [depot_user]/src/lighttpd \
+ [depot_user]/src/posix \
+ [depot_user]/src/vfs \
+ [depot_user]/src/vfs_lwip \
+ [depot_user]/src/zlib
-append config {
+install_config {
@@ -53,39 +39,23 @@ append config {
+
- }
+
-append_if [have_spec gpio] config "
-
-
-
-
- "
+
+
+
+
+
+
+
+
+
+
-append_if $use_usb_driver config {
-
-
-
-
-
-
-
-
- }
-
-append_if $use_nic_driver config {
-
-
-
-
- }
-
-append_platform_drv_config
-
-append config {
@@ -105,13 +75,9 @@ append config {
- }
-
-append config {
+
}
-install_config $config
-
#
# Create TAR archive containting the web-server configuration and the
# website content.
@@ -152,31 +118,12 @@ if {![file exists bin/genode_org/website/index]} {
exec tar cfv bin/genode_org.tar -h -C bin/genode_org .
-#
-# Boot modules
-#
-
-# generic modules
-set boot_modules {
- core init timer ld.lib.so
- libc.lib.so libm.lib.so posix.lib.so
- vfs.lib.so vfs_lwip.lib.so zlib.lib.so
- libcrypto.lib.so libssl.lib.so
- lighttpd genode_org.tar
-}
-
-# platform-specific modules
-lappend_if $use_usb_driver boot_modules usb_drv
-lappend_if $use_nic_driver boot_modules [nic_drv_binary]
-lappend_if [have_spec gpio] boot_modules [gpio_drv]
-
-append_platform_drv_boot_modules
-
-build_boot_image $boot_modules
+build_boot_image { genode_org.tar }
proc qemu_nic_model {} {
if [have_spec x86] { return e1000 }
if [have_spec lan9118] { return lan9118 }
+ if [have_spec zynq] { return cadence_gem }
return nic_model_missing
}
diff --git a/repos/ports/run/lighttpd.run b/repos/ports/run/lighttpd.run
index 6576810854..402fa6b295 100644
--- a/repos/ports/run/lighttpd.run
+++ b/repos/ports/run/lighttpd.run
@@ -4,20 +4,21 @@
# \date 2012-08-16
#
-set build_components {
- core init timer
- drivers/nic
- app/lighttpd
-}
-
-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 \
+ [depot_user]/src/libc \
+ [depot_user]/src/libcrypto \
+ [depot_user]/src/libssh \
+ [depot_user]/src/libssl \
+ [depot_user]/src/lighttpd \
+ [depot_user]/src/posix \
+ [depot_user]/src/vfs \
+ [depot_user]/src/vfs_lwip \
+ [depot_user]/src/zlib
-append config {
+install_config {
@@ -33,19 +34,23 @@ append config {
+
- }
-
-append_platform_drv_config
-
-append config {
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
@@ -95,35 +100,15 @@ mimetype.assign = (
- }
-
-append config {
+
}
-install_config $config
-
-
-#
-# Boot modules
-#
-
-# generic modules
-append boot_modules {
- core init timer ld.lib.so } [nic_drv_binary] {
- libc.lib.so libm.lib.so posix.lib.so
- vfs.lib.so vfs_lwip.lib.so zlib.lib.so
- libcrypto.lib.so libssl.lib.so
- lighttpd
-}
-
-# platform-specific modules
-append_platform_drv_boot_modules
-
-build_boot_image $boot_modules
+build_boot_image {}
proc qemu_nic_model {} {
if [have_spec x86] { return e1000 }
if [have_spec lan9118] { return lan9118 }
+ if [have_spec zynq] { return cadence_gem }
return nic_model_missing
}
diff --git a/repos/ports/run/netperf.inc b/repos/ports/run/netperf.inc
index 655e07e71f..f01ed78246 100644
--- a/repos/ports/run/netperf.inc
+++ b/repos/ports/run/netperf.inc
@@ -15,22 +15,15 @@ if {[get_cmd_switch --autopilot] && [have_include "power_on/qemu"]} {
exit
}
-if {![info exists use_usb_driver]} {
- set use_usb_driver [expr [have_spec omap4] || [have_spec arndale] || [have_spec rpi]]
-}
-set use_nic_driver [expr !$use_usb_driver && !$use_wifi_driver]
-
-if {[expr !$use_usb_driver && !$use_nic_driver && !$use_wifi_driver] ||
- [have_spec odroid_xu] ||
- [expr [have_spec imx53] && [have_spec trustzone]]} {
- puts "Run script is not supported on this platform."
+if {[have_include "power_on/qemu"] &&
+ [expr $use_nic_bridge || $use_nic_router || $use_usb_driver || $use_wifi_driver]} {
+ puts "Cannot test this configuration on qemu.";
exit 0
}
-# provide wifi related variables in case we do not use the wifi driver
-if {!$use_wifi_driver} {
- set wifi_ssid ""
- set wifi_psk ""
+if {[expr [have_spec imx53] && [have_spec trustzone]]} {
+ puts "Run script is not supported on this platform."
+ exit 0
}
set bridge_mac "02:02:02:02:02:00"
@@ -41,10 +34,6 @@ if {[get_cmd_switch --autopilot]} {
if {[have_spec x86_64]} { set bridge_mac "02:02:02:02:64:00" }
}
-#
-# Build
-#
-
set version "2.6.0"
# sanity check that the right version is used
@@ -70,46 +59,56 @@ if {$wrong_version} {
set packet_size 1024
set netperf_tests "TCP_STREAM TCP_MAERTS"
-# start run script generation
-
-if {$use_usb_driver} { set network_driver "usb_drv" }
-if {$use_nic_driver} { set network_driver "nic_drv" }
-if {$use_wifi_driver} { set network_driver "wifi_drv" }
-
-append build_components {
- core init timer
- app/netperf
+proc socket_fs_plugin {} {
+ global use_lxip
+ if { $use_lxip } { return lxip }
+ return lwip
}
-append_socket_fs_build_components
-
-lappend_if $use_nic_driver build_components drivers/nic
-lappend_if $use_usb_driver build_components drivers/usb
-lappend_if $use_nic_bridge build_components server/nic_bridge
-lappend_if $use_nic_router build_components server/nic_router
-lappend_if [have_spec gpio] build_components drivers/gpio
-
-append_if $use_wifi_driver build_components {
- drivers/wifi
- server/fs_rom
- server/ram_fs
- server/report_rom
- lib/vfs/jitterentropy
-}
-
-source ${genode_dir}/repos/base/run/platform_drv.inc
-append_platform_drv_build_components
-
-build $build_components
-
create_boot_directory
+set packages "
+ [depot_user]/src/[base_src]
+ [depot_user]/pkg/[drivers_nic_pkg]
+ [depot_user]/src/init
+ [depot_user]/src/libc
+ [depot_user]/src/posix
+ [depot_user]/src/vfs
+"
+
+append_if [expr !$use_lxip] packages " [depot_user]/src/vfs_lwip "
+append_if $use_lxip packages " [depot_user]/src/vfs_lxip "
+append_if $use_nic_bridge packages " [depot_user]/src/nic_bridge "
+append_if $use_nic_router packages " [depot_user]/src/nic_router "
+append_if $use_usb_driver packages " [depot_user]/src/platform_drv "
+append_if $use_usb_driver packages " [depot_user]/src/usb_drv "
+append_if $use_wifi_driver packages " [depot_user]/src/ram_fs "
+append_if $use_wifi_driver packages " [depot_user]/src/fs_rom "
+append_if $use_wifi_driver packages " [depot_user]/src/report_rom "
+append_if $use_wifi_driver packages " [depot_user]/src/wifi_drv "
+append_if $use_wifi_driver packages " [depot_user]/src/libcrypto "
+append_if $use_wifi_driver packages " [depot_user]/src/libssl "
+append_if $use_wifi_driver packages " [depot_user]/src/vfs_jitterentropy "
+append_if $use_wifi_driver packages " [depot_user]/raw/wifi_firmware "
+
+import_from_depot $packages
+
+build { app/netperf }
+
#
# Generate config
#
set lx_ip_addr "10.0.2.55"
+source ${genode_dir}/repos/base/run/platform_drv.inc
+proc platform_drv_policy {} {
+ global use_wifi_driver
+ if { $use_wifi_driver } {
+ return { }}
+ return { }
+}
+
set config {
@@ -132,12 +131,89 @@ set config {
}
-append_if [have_spec gpio] config "
-
-
-
-
- "
+if { $use_wifi_driver } {
+ append_platform_drv_config
+ append config {
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+}
+append config ""
+append config {
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 2018-01-01 00:01
+
+
+
+
+
+
+
+
+
+
+ }
+
+} elseif { $use_usb_driver } {
+ append_platform_drv_config
+ append config {
+
+
+
+
+
+
+
+ }
+} else {
+ append config {
+
+
+
+
+
+
+
+
+
+ }
+}
append_if $use_nic_router config {
@@ -166,11 +242,7 @@ append_if $use_nic_router config {
- }
-append_if $use_nic_router config "
- "
-append_if $use_nic_router config {
-
+
@@ -187,104 +259,11 @@ append_if $use_nic_bridge config {
- }
-append_if $use_nic_bridge config "
- "
-append_if $use_nic_bridge config {
-
+
}
-proc usb_drv_ram_quota {} {
- if {[have_spec x86]} { return 18M }
- return 14M
-}
-
-append_if $use_usb_driver config {
-
-
-
-
- }
-append_if $use_usb_driver config "
- "
-append_if $use_usb_driver config {
-
-
- }
-
-# don't use the dynamic linker for loading the lx_hybrid nic_drv on Linux
-proc nic_drv_ld_attr {} {
- if {[have_spec linux]} { return {ld="no"} }
- return ""
-}
-
-append_if $use_nic_driver config {
-
-
-
-
- } [nic_drv_config] {
- }
-
-append_if $use_wifi_driver config {
-
-
-
-
-
-
-
-
-
-
-
-
-
-}
-append_if $use_wifi_driver config "
- "
-append_if $use_wifi_driver config {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 2018-01-01 00:01
-
-
-
-
-
-
-
-
-
-
- }
-
-append_platform_drv_config
-
append config {
@@ -327,48 +306,7 @@ append config {
install_config $config
-#
-# Boot modules
-#
-
-# generic modules
-append boot_modules {
- core init timer
- ld.lib.so libc.lib.so vfs.lib.so libm.lib.so posix.lib.so
- netserver
-}
-
-append_socket_fs_boot_modules
-
-lappend_if $use_nic_bridge boot_modules nic_bridge
-lappend_if $use_nic_router boot_modules nic_router
-
-# platform-specific modules
-lappend_if [have_spec gpio] boot_modules [gpio_drv]
-lappend_if $use_usb_driver boot_modules usb_drv
-lappend_if $use_nic_driver boot_modules [nic_drv_binary]
-
-append_if $use_wifi_driver boot_modules {
- ram_fs fs_rom report_rom
- libcrypto.lib.so libssl.lib.so
- wpa_driver_nl80211.lib.so wpa_supplicant.lib.so
- vfs_jitterentropy.lib.so
- wifi.lib.so wifi_drv
-
- iwlwifi-6000-4.ucode
- iwlwifi-6000g2a-6.ucode
- iwlwifi-6000g2b-6.ucode
- iwlwifi-7260-17.ucode
- iwlwifi-7265-17.ucode
- iwlwifi-7265D-29.ucode
- iwlwifi-8000C-36.ucode
- iwlwifi-8265-36.ucode
- regulatory.db
-}
-
-append_platform_drv_boot_modules
-
-build_boot_image $boot_modules
+build_boot_image { netserver }
#
# Execute test case
@@ -386,7 +324,13 @@ proc qemu_nic_model {} {
append qemu_args " -netdev user,id=net0,hostfwd=tcp::12865-:12865,hostfwd=tcp::49153-:49153 "
append qemu_args " -net nic,model=[qemu_nic_model],netdev=net0 "
+set ip_match_string ""
set force_ports ""
+if $use_lxip {
+ set ip_match_string "ipaddr=(\[0-9\]+\.\[0-9\]+\.\[0-9\]+\.\[0-9\]+).*\n"
+} else {
+ set ip_match_string "address=(\[0-9\]+\.\[0-9\]+\.\[0-9\]+\.\[0-9\]+).*\n"
+}
if $use_nic_router {
set ip_match_string "nic_router\\\] \\\[uplink\\\] dynamic IP config: interface (\[0-9]{1,3}.\[0-9]{1,3}.\[0-9]{1,3}.\[0-9]{1,3}).*\n"
set force_ports "-P 12864,12864"
@@ -446,10 +390,6 @@ foreach netperf_test $netperf_tests {
puts -nonewline "! PERF: $netperf_test"
if {$use_nic_bridge} { puts -nonewline "_bridge" }
if {$use_nic_router} { puts -nonewline "_router" }
- if {$use_usb_driver} {
- if {![string compare $use_usb_11 "yes"]} { puts -nonewline "_uhci" }
- if {![string compare $use_usb_20 "yes"]} { puts -nonewline "_ohci" }
- if {![string compare $use_usb_30 "yes"]} { puts -nonewline "_xhci" }
- }
+ if {$use_usb_driver} { puts -nonewline "_xhci" }
puts " [lindex $throughput 1] MBit/s ok"
}
diff --git a/repos/ports/run/netperf_lwip.run b/repos/ports/run/netperf_lwip.run
index 61f38c517f..df8e8e8f1a 100644
--- a/repos/ports/run/netperf_lwip.run
+++ b/repos/ports/run/netperf_lwip.run
@@ -9,11 +9,7 @@
set use_nic_bridge 0
set use_nic_router 0
set use_wifi_driver 0
-set use_usb_11 "no"
-set use_usb_20 "yes"
-set use_usb_30 "no"
+set use_usb_driver 0
+set use_lxip 0
-set ip_match_string "address=(\[0-9\]+\.\[0-9\]+\.\[0-9\]+\.\[0-9\]+).*\n"
-
-source ${genode_dir}/repos/libports/run/vfs_lwip.inc
source ${genode_dir}/repos/ports/run/netperf.inc
diff --git a/repos/ports/run/netperf_lwip_bridge.run b/repos/ports/run/netperf_lwip_bridge.run
index 0f90fd0e32..252e7b9a57 100644
--- a/repos/ports/run/netperf_lwip_bridge.run
+++ b/repos/ports/run/netperf_lwip_bridge.run
@@ -5,25 +5,11 @@
# \date 2013-07-08
#
-if {[have_include "power_on/qemu"]} {
- puts "\nNetperf running on Qemu with a bridge is not supported.\n"
- exit
-}
-
-if {[have_spec omap4]} {
- puts stderr "\nTest requires 1 Gbit network interface - not supported for omap4\n"
- exit 0
-}
-
# network configuration
set use_nic_bridge 1
set use_nic_router 0
set use_wifi_driver 0
-set use_usb_11 "no"
-set use_usb_20 "no"
-set use_usb_30 "yes"
+set use_usb_driver 0
+set use_lxip 0
-set ip_match_string "address=(\[0-9\]+\.\[0-9\]+\.\[0-9\]+\.\[0-9\]+).*\n"
-
-source ${genode_dir}/repos/libports/run/vfs_lwip.inc
source ${genode_dir}/repos/ports/run/netperf.inc
diff --git a/repos/ports/run/netperf_lwip_router.run b/repos/ports/run/netperf_lwip_router.run
index f5fe09df6b..13d5b4ea95 100644
--- a/repos/ports/run/netperf_lwip_router.run
+++ b/repos/ports/run/netperf_lwip_router.run
@@ -5,25 +5,11 @@
# \date 2017-12-19
#
-if {[have_include "power_on/qemu"]} {
- puts "\nNetperf running on Qemu with a router is not supported.\n"
- exit
-}
-
-if {[have_spec omap4]} {
- puts stderr "\nTest requires 1 Gbit network interface - not supported for omap4\n"
- exit 0
-}
-
# network configuration
set use_nic_bridge 0
set use_nic_router 1
set use_wifi_driver 0
-set use_usb_11 "no"
-set use_usb_20 "no"
-set use_usb_30 "yes"
+set use_usb_driver 0
+set use_lxip 0
-set ip_match_string "address=(\[0-9\]+\.\[0-9\]+\.\[0-9\]+\.\[0-9\]+).*\n"
-
-source ${genode_dir}/repos/libports/run/vfs_lwip.inc
source ${genode_dir}/repos/ports/run/netperf.inc
diff --git a/repos/ports/run/netperf_lwip_usb30.run b/repos/ports/run/netperf_lwip_usb30.run
index 868cd97e85..9cf5aad44e 100644
--- a/repos/ports/run/netperf_lwip_usb30.run
+++ b/repos/ports/run/netperf_lwip_usb30.run
@@ -5,8 +5,11 @@
# \date 2013-07-08
#
-if {[have_spec omap4]} {
- puts stderr "\nTest requires 1 Gbit network interface - not supported for omap4\n"
+# our nightly test infrastructure currently support usb 3.0 on our x86 64bit machine only
+assert_spec x86_64
+
+if {[have_include "power_on/qemu"] || [have_include "power_on/linux"]} {
+ puts stderr "\nNetperf USB3.0 running on Qemu/Linux is not supported.\n"
exit 0
}
@@ -14,15 +17,7 @@ if {[have_spec omap4]} {
set use_nic_bridge 0
set use_nic_router 0
set use_wifi_driver 0
+set use_usb_driver 1
+set use_lxip 0
-# force usage of usb for nova, known to work with usb30 network adapter
-if {[have_spec nova] && [have_spec x86_64]} { set use_usb_driver 1 }
-
-set use_usb_11 "no"
-set use_usb_20 "no"
-set use_usb_30 "yes"
-
-set ip_match_string "address=(\[0-9\]+\.\[0-9\]+\.\[0-9\]+\.\[0-9\]+).*\n"
-
-source ${genode_dir}/repos/libports/run/vfs_lwip.inc
source ${genode_dir}/repos/ports/run/netperf.inc
diff --git a/repos/ports/run/netperf_lwip_wifi.run b/repos/ports/run/netperf_lwip_wifi.run
index e3e820f898..a84049effd 100644
--- a/repos/ports/run/netperf_lwip_wifi.run
+++ b/repos/ports/run/netperf_lwip_wifi.run
@@ -25,17 +25,10 @@ if {[get_cmd_switch --autopilot] && [have_spec x86_32] && ![have_spec acpi]} {
set use_nic_bridge 0
set use_nic_router 0
set use_wifi_driver 1
-set use_usb_11 "no"
-set use_usb_20 "no"
-set use_usb_30 "no"
+set use_usb_driver 0
+set use_lxip 0
set wifi_ssid $::env(GENODE_WIFI_SSID)
set wifi_psk $::env(GENODE_WIFI_PSK)
-set ip_match_string "address=(\[0-9\]+\.\[0-9\]+\.\[0-9\]+\.\[0-9\]+).*\n"
-
-source ${genode_dir}/repos/libports/run/vfs_lwip.inc
source ${genode_dir}/repos/ports/run/netperf.inc
-
-# remove firmware images
-exec sh -c "rm bin/*.ucode"
diff --git a/repos/ports/run/netperf_lxip.run b/repos/ports/run/netperf_lxip.run
index 820ce98c04..bdec1eaf57 100644
--- a/repos/ports/run/netperf_lxip.run
+++ b/repos/ports/run/netperf_lxip.run
@@ -9,11 +9,7 @@
set use_nic_bridge 0
set use_nic_router 0
set use_wifi_driver 0
-set use_usb_11 "no"
-set use_usb_20 "yes"
-set use_usb_30 "no"
+set use_usb_driver 0
+set use_lxip 1
-set ip_match_string "ipaddr=(\[0-9\]+\.\[0-9\]+\.\[0-9\]+\.\[0-9\]+).*\n"
-
-source ${genode_dir}/repos/dde_linux/run/vfs_lxip.inc
source ${genode_dir}/repos/ports/run/netperf.inc
diff --git a/repos/ports/run/netperf_lxip_bridge.run b/repos/ports/run/netperf_lxip_bridge.run
index f5202b44d1..7b56275bf9 100644
--- a/repos/ports/run/netperf_lxip_bridge.run
+++ b/repos/ports/run/netperf_lxip_bridge.run
@@ -5,25 +5,11 @@
# \date 2013-07-08
#
-if {[have_include "power_on/qemu"]} {
- puts "\nNetperf running on Qemu with a bridge is not supported.\n"
- exit
-}
-
-if {[have_spec omap4]} {
- puts stderr "\nTest requires 1 Gbit network interface - not supported for omap4\n"
- exit 0
-}
-
# network configuration
set use_nic_bridge 1
set use_nic_router 0
set use_wifi_driver 0
-set use_usb_11 "no"
-set use_usb_20 "no"
-set use_usb_30 "yes"
+set use_usb_driver 0
+set use_lxip 1
-set ip_match_string "ipaddr=(\[0-9\]+\.\[0-9\]+\.\[0-9\]+\.\[0-9\]+).*\n"
-
-source ${genode_dir}/repos/dde_linux/run/vfs_lxip.inc
source ${genode_dir}/repos/ports/run/netperf.inc
diff --git a/repos/ports/run/netperf_lxip_router.run b/repos/ports/run/netperf_lxip_router.run
index bb69b5c258..7cf39fea58 100644
--- a/repos/ports/run/netperf_lxip_router.run
+++ b/repos/ports/run/netperf_lxip_router.run
@@ -5,25 +5,11 @@
# \date 2017-12-19
#
-if {[have_include "power_on/qemu"]} {
- puts "\nNetperf running on Qemu with a router is not supported.\n"
- exit
-}
-
-if {[have_spec omap4]} {
- puts stderr "\nTest requires 1 Gbit network interface - not supported for omap4\n"
- exit 0
-}
-
# network configuration
set use_nic_bridge 0
set use_nic_router 1
set use_wifi_driver 0
-set use_usb_11 "no"
-set use_usb_20 "no"
-set use_usb_30 "yes"
+set use_usb_driver 0
+set use_lxip 1
-set ip_match_string "ipaddr=(\[0-9\]+\.\[0-9\]+\.\[0-9\]+\.\[0-9\]+).*\n"
-
-source ${genode_dir}/repos/dde_linux/run/vfs_lxip.inc
source ${genode_dir}/repos/ports/run/netperf.inc
diff --git a/repos/ports/run/netperf_lxip_usb30.run b/repos/ports/run/netperf_lxip_usb30.run
index 6aee11272e..bb499fbde7 100644
--- a/repos/ports/run/netperf_lxip_usb30.run
+++ b/repos/ports/run/netperf_lxip_usb30.run
@@ -5,8 +5,11 @@
# \date 2013-07-08
#
-if {[have_spec omap4]} {
- puts stderr "\nTest requires 1 Gbit network interface - not supported for omap4\n"
+# our nightly test infrastructure currently support usb 3.0 on our x86 64bit machine only
+assert_spec x86_64
+
+if {[have_include "power_on/qemu"] || [have_include "power_on/linux"]} {
+ puts stderr "\nNetperf USB3.0 running on Qemu/Linux is not supported.\n"
exit 0
}
@@ -14,15 +17,7 @@ if {[have_spec omap4]} {
set use_nic_bridge 0
set use_nic_router 0
set use_wifi_driver 0
+set use_usb_driver 1
+set use_lxip 1
-# force usage of usb for nova, known to work with usb30 network adapter
-if {[have_spec nova] && [have_spec x86_64]} { set use_usb_driver 1 }
-
-set use_usb_11 "no"
-set use_usb_20 "no"
-set use_usb_30 "yes"
-
-set ip_match_string "ipaddr=(\[0-9\]+\.\[0-9\]+\.\[0-9\]+\.\[0-9\]+).*\n"
-
-source ${genode_dir}/repos/dde_linux/run/vfs_lxip.inc
source ${genode_dir}/repos/ports/run/netperf.inc
diff --git a/repos/ports/run/netperf_lxip_wifi.run b/repos/ports/run/netperf_lxip_wifi.run
index b3ca6bf0d2..1477c0470f 100644
--- a/repos/ports/run/netperf_lxip_wifi.run
+++ b/repos/ports/run/netperf_lxip_wifi.run
@@ -25,17 +25,10 @@ if {[get_cmd_switch --autopilot] && [have_spec x86_32] && ![have_spec acpi]} {
set use_nic_bridge 0
set use_nic_router 0
set use_wifi_driver 1
-set use_usb_11 "no"
-set use_usb_20 "no"
-set use_usb_30 "no"
+set use_usb_driver 0
+set use_lxip 1
set wifi_ssid $::env(GENODE_WIFI_SSID)
set wifi_psk $::env(GENODE_WIFI_PSK)
-set ip_match_string "ipaddr=(\[0-9\]+\.\[0-9\]+\.\[0-9\]+\.\[0-9\]+).*\n"
-
-source ${genode_dir}/repos/dde_linux/run/vfs_lxip.inc
source ${genode_dir}/repos/ports/run/netperf.inc
-
-# remove firmware images
-exec sh -c "rm bin/*.ucode"
diff --git a/repos/ports/run/seoul.inc b/repos/ports/run/seoul.inc
index 17e524547f..f5ba88266c 100644
--- a/repos/ports/run/seoul.inc
+++ b/repos/ports/run/seoul.inc
@@ -237,6 +237,7 @@ append_platform_drv_config
append_if $use_nic_session config {
+
@@ -438,7 +439,7 @@ lappend_if [expr !$use_usb] boot_modules ps2_drv
lappend_if $use_usb boot_modules usb_drv
lappend_if $use_block_ram boot_modules ram_block
lappend_if $use_block_sata boot_modules ahci_drv
-lappend_if $use_nic_session boot_modules nic_drv
+lappend_if $use_nic_session boot_modules ipxe_nic_drv
lappend_if $use_nic_bridge boot_modules nic_bridge
lappend_if $use_framebuffer boot_modules fb_drv
diff --git a/repos/ports/run/stubby.run b/repos/ports/run/stubby.run
index 82a37bcc87..c57b381ec8 100644
--- a/repos/ports/run/stubby.run
+++ b/repos/ports/run/stubby.run
@@ -1,3 +1,5 @@
+assert_spec x86
+
if {[have_spec linux]} {
puts "The [run_name] scenario requires QEMU networking."
exit 1
@@ -55,7 +57,7 @@ append config {
-
+
@@ -174,6 +176,7 @@ set boot_modules {
libssl.lib.so
lxip.lib.so vfs_lxip.lib.so
nic_router
+ ipxe_nic_drv
rtc_drv
sequence
stubby
@@ -185,7 +188,6 @@ set boot_modules {
# platform-specific modules
append_platform_drv_boot_modules
-lappend boot_modules [nic_drv_binary]
build_boot_image $boot_modules
diff --git a/repos/ports/run/stubby_deploy.run b/repos/ports/run/stubby_deploy.run
index 743cb5a634..b364af2d7c 100644
--- a/repos/ports/run/stubby_deploy.run
+++ b/repos/ports/run/stubby_deploy.run
@@ -1,18 +1,16 @@
-source ${genode_dir}/repos/base/run/platform_drv.inc
+assert_spec x86
create_boot_directory
proc current_pkg { pkg } { return $pkg/[_current_depot_archive_version pkg $pkg] }
import_from_depot [depot_user]/src/[base_src] \
+ [depot_user]/pkg/[drivers_nic_pkg] \
[depot_user]/src/report_rom \
[depot_user]/src/fs_rom \
[depot_user]/src/ram_fs \
[depot_user]/src/vfs \
[depot_user]/src/init \
- [depot_user]/src/ipxe_nic_drv \
- [depot_user]/src/acpi_drv \
- [depot_user]/src/platform_drv \
[depot_user]/src/rtc_drv \
[depot_user]/src/posix \
[depot_user]/src/libc \
@@ -21,7 +19,7 @@ import_from_depot [depot_user]/src/[base_src] \
create_tar_from_depot_binaries [run_dir]/genode/depot.tar \
[depot_user]/pkg/nic_router-nat-dns \
-append config {
+install_config {
@@ -39,26 +37,29 @@ append config {
- }
+
-append_platform_drv_config
-
-append config {
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
@@ -187,8 +188,6 @@ append config {
}
-install_config $config
-
append qemu_args -nographic
build { app/depot_query app/depot_deploy test/libc_getaddrinfo }
diff --git a/repos/ports/run/vbox_share.inc b/repos/ports/run/vbox_share.inc
index 70d4ee9d9e..d3f7b9228d 100644
--- a/repos/ports/run/vbox_share.inc
+++ b/repos/ports/run/vbox_share.inc
@@ -119,7 +119,7 @@ foreach pkg {bash coreutils} {
set boot_modules {
ram_fs
noux libc_noux.lib.so posix.lib.so bash.tar coreutils.tar
- tcp_terminal vfs_lwip.lib.so nic_drv report_rom
+ tcp_terminal vfs_lwip.lib.so ipxe_nic_drv report_rom
input_merger
test.bin template.bat
}
@@ -128,6 +128,7 @@ append boot_modules $vbox_file
set config_of_app {
+
diff --git a/repos/ports/run/vbox_win.inc b/repos/ports/run/vbox_win.inc
index 0721e07f0e..e7e91f7ca0 100644
--- a/repos/ports/run/vbox_win.inc
+++ b/repos/ports/run/vbox_win.inc
@@ -33,7 +33,7 @@ set build_components {
set boot_modules {
input_merger
- nic_drv
+ ipxe_nic_drv
audio_drv
report_rom
dynamic_rom
@@ -74,6 +74,7 @@ append config_of_app {
needs to be enabled in the .vbox file (disabled by default)
-->
+
diff --git a/repos/ports/run/virtualbox.run b/repos/ports/run/virtualbox.run
index f061d390cf..329de16dc4 100644
--- a/repos/ports/run/virtualbox.run
+++ b/repos/ports/run/virtualbox.run
@@ -119,6 +119,7 @@ append_if [have_spec x86] config {
append_if [expr $use_net] config {
+
@@ -276,7 +277,7 @@ append boot_modules {
qemu-usb.lib.so
}
-append_if [expr $use_net] boot_modules { nic_drv }
+append_if [expr $use_net] boot_modules { ipxe_nic_drv }
append_if [expr $use_bridge] boot_modules { nic_bridge }
append_if [expr $use_serial] boot_modules { log_terminal }
diff --git a/repos/ports/run/virtualbox_nic_router.run b/repos/ports/run/virtualbox_nic_router.run
index 3d45d57740..e47e328c38 100644
--- a/repos/ports/run/virtualbox_nic_router.run
+++ b/repos/ports/run/virtualbox_nic_router.run
@@ -83,6 +83,7 @@ append config {
+
@@ -387,7 +388,7 @@ append boot_modules { fb_drv }
append boot_modules { rtc_drv }
append boot_modules { usb_drv }
append boot_modules { vfs.lib.so }
-append boot_modules { nic_drv }
+append boot_modules { ipxe_nic_drv }
append boot_modules { input_merger }
append boot_modules { log_terminal }
append_platform_drv_boot_modules
diff --git a/tool/run/depot.inc b/tool/run/depot.inc
index b436a08847..6b5d02ebd3 100644
--- a/tool/run/depot.inc
+++ b/tool/run/depot.inc
@@ -468,7 +468,14 @@ proc drivers_interactive_pkg { } {
proc drivers_nic_pkg { } {
- if {[have_spec x86] && ![have_spec linux]} { return drivers_nic-pc }
+ if {[have_spec x86] &&
+ ![have_spec linux]} { return drivers_nic-pc }
+ if {[have_spec linux]} { return drivers_nic-linux }
+ if {[have_spec pbxa9]} { return drivers_nic-pbxa9 }
+ if {[have_spec rpi]} { return drivers_nic-rpi }
+ if {[have_spec zynq_qemu]} { return drivers_nic-zynq }
+ if {[have_spec imx53_qsb]} { return drivers_nic-imx53_qsb }
+ if {[have_spec imx6q_sabrelite]} { return drivers_nic-imx6q_sabrelite }
puts stderr "drivers_nic package undefined for this build configuration"
exit 1