From 688375619a5803c507f623ccb436ba38130eb223 Mon Sep 17 00:00:00 2001 From: Alexander Boettcher Date: Tue, 14 May 2013 09:56:48 +0200 Subject: [PATCH] run: extend lwip test for arndale board --- libports/run/lwip.run | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/libports/run/lwip.run b/libports/run/lwip.run index 8ef1e47b3..9f1feb208 100644 --- a/libports/run/lwip.run +++ b/libports/run/lwip.run @@ -34,7 +34,10 @@ set build_components { test/lwip/http_srv } -lappend_if [have_spec omap4] build_components drivers/usb +set use_usb_driver [expr [have_spec omap4] || [have_spec exynos5]] +set use_nic_driver [expr !$use_usb_driver] + +lappend_if $use_usb_driver build_components drivers/usb lappend_if [have_spec acpi] build_components drivers/acpi lappend_if [have_spec pci] build_components drivers/pci/device_pd @@ -72,8 +75,8 @@ set config { } -append_if [have_spec omap4] config { - +append_if $use_usb_driver config { + @@ -83,7 +86,7 @@ append_if [have_spec omap4] config { } -append_if [expr ![have_spec omap4]] config { +append_if $use_nic_driver config { @@ -128,8 +131,8 @@ set boot_modules { # platform-specific modules lappend_if [have_spec acpi] boot_modules acpi_drv lappend_if [have_spec pci] boot_modules pci_drv -lappend_if [have_spec omap4] boot_modules usb_drv -lappend_if [expr ![have_spec omap4]] boot_modules nic_drv +lappend_if $use_usb_driver boot_modules usb_drv +lappend_if $use_nic_driver boot_modules nic_drv lappend_if [have_spec nova] boot_modules pci_device_pd build_boot_image $boot_modules @@ -148,13 +151,12 @@ append qemu_args " -net user -redir tcp:5555::80 " run_genode_until {.*Start the server loop \.\.\..*} 30 - if [is_qemu_available] { set uri "http://localhost:5555/" } else { set match_string "got IP address (.*)\033.*\n" - run_genode_until $match_string 30 $server_spawn_id - regexp $match_string $output all ip_addr + regexp $match_string $output ip_addr + regexp {[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+} $ip_addr ip_addr set uri "http://$ip_addr:80/" }