From aa98450f71f90b3eb4597dc7570ff0e481e9e0c0 Mon Sep 17 00:00:00 2001 From: Alexander Boettcher Date: Wed, 17 Apr 2013 15:10:05 +0200 Subject: [PATCH] run: use kdb_uart and acpi_drv with l4linux Test now succeeds also on native x86 32bit hardware. --- ports-foc/run/l4linux.run | 48 ++++++++++++++++++++++++--------------- 1 file changed, 30 insertions(+), 18 deletions(-) diff --git a/ports-foc/run/l4linux.run b/ports-foc/run/l4linux.run index f53439a21b..524b3f5a60 100644 --- a/ports-foc/run/l4linux.run +++ b/ports-foc/run/l4linux.run @@ -13,6 +13,7 @@ set build_components { lappend_if [have_spec x86] build_components drivers/nic lappend_if [have_spec pci] build_components drivers/pci +lappend_if [have_spec acpi] build_components drivers/acpi lappend_if [have_spec ps2] build_components drivers/input/ps2 lappend_if [have_spec lan9118] build_components drivers/nic @@ -44,17 +45,31 @@ set config { - + - + } -append_if [have_spec pci] config { +append_if [have_spec acpi] config { + + + + + + + + + + + + } + +append_if [expr ![have_spec acpi] && [have_spec pci]] config { - - - } + + + } append_if [have_spec framebuffer] config { @@ -66,13 +81,13 @@ append_if [have_spec ps2] config { - } + } append_if [have_spec x86] config { - } + } append_if [have_spec lan9118] config { @@ -82,28 +97,26 @@ append_if [have_spec lan9118] config { append config { - -} + } append_if [have_spec x86] config { - -} + } append_if [have_spec arm] config { - -} + } append config { -} + } install_config $config # # Boot modules # -set boot_modules { core init timer uart_drv l4linux initrd.gz } +set boot_modules { core init timer kdb_uart_drv l4linux initrd.gz } lappend_if [have_spec pci] boot_modules pci_drv +lappend_if [have_spec acpi] boot_modules acpi_drv lappend_if [have_spec ps2] boot_modules ps2_drv lappend_if [have_spec framebuffer] boot_modules fb_drv lappend_if [have_spec x86] boot_modules nic_drv @@ -125,7 +138,6 @@ build_boot_image [join $boot_modules " "] # Qemu # append qemu_args " -m 128 -nographic " -append qemu_args " -serial file:kdb.log " append qemu_args " -serial mon:stdio " append_if [have_spec x86] qemu_args " -smp 2,cores=2 " append_if [have_spec x86] qemu_args " -net nic,model=e1000 -net user " @@ -146,4 +158,4 @@ expect { } puts "Test succeeded" -exec rm bin/initrd.gz kdb.log +exec rm bin/initrd.gz