Move timer from os to base repository

Since the timer and timeout handling is part of the base library (the
dynamic linker), it belongs to the base repository.

Besides moving the timer and its related infrastructure (alarm, timeout
libs, tests) to the base repository, this patch also moves the timer
from the 'drivers' subdirectory directly to 'src' and disamibuates the
timer's build locations for the various kernels. Otherwise the different
timer implementations could interfere with each other when using one
build directory with multiple kernels.

Note that this patch changes the include paths for the former os/timer,
os/alarm.h, os/duration.h, and os/timed_semaphore.h to base/.

Issue #3101
This commit is contained in:
Norman Feske
2019-01-03 18:01:49 +01:00
parent 14cd115c82
commit bf62d6b896
222 changed files with 272 additions and 454 deletions

View File

@@ -3,8 +3,7 @@
#
set build_components {
core init
drivers/timer
core init timer
drivers/framebuffer/intel
test/framebuffer
server/report_rom

View File

@@ -12,8 +12,8 @@ proc gpio_drv { } { if {[have_spec rpi] && [have_spec hw]} { return hw_gpio_drv
return gpio_drv }
set build_components {
core init
drivers/timer drivers/nic
core init timer
drivers/nic
test/lxip/http_srv
}

View File

@@ -6,8 +6,8 @@ set use_nic_driver [expr [have_spec linux] || [expr !$use_usb_driver && ![have_s
#
set build_components {
core init
drivers/timer drivers/nic
core init timer
drivers/nic
test/lxip/udp_echo
}

View File

@@ -25,7 +25,7 @@ proc platform_drv_priority {} { return { priority="-1"} }
append build_components { core }
append build_components { init }
append build_components { drivers/timer }
append build_components { timer }
append build_components { server/nic_router }
append build_components { server/dynamic_rom }
append build_components { server/report_rom }

View File

@@ -58,8 +58,7 @@ if { [get_cmd_switch --autopilot] && ![have_spec x86_64] } {
#
set build_components {
core init
drivers/timer
core init timer
drivers/usb_host
drivers/usb_hid
test/input

View File

@@ -3,8 +3,7 @@
#
set build_components {
core init
drivers/timer
core init timer
drivers/usb
test/input
}

View File

@@ -23,8 +23,7 @@ if { [get_cmd_switch --autopilot] && ![have_spec x86_64] } {
#
set build_components {
core init
drivers/timer
core init timer
drivers/usb
test/input
server/dynamic_rom

View File

@@ -12,8 +12,7 @@
#
set build_components {
core init
drivers/timer
core init timer
drivers/usb_host
drivers/usb_net
test/lwip/http_srv

View File

@@ -9,8 +9,8 @@
#
set build_components {
core init
drivers/timer drivers/usb
core init timer
drivers/usb
server/tcp_terminal
test/terminal_echo
lib/vfs/lwip

View File

@@ -9,8 +9,7 @@
#
set build_components {
core init
drivers/timer
core init timer
drivers/usb
test/blk/cli
}

View File

@@ -19,8 +19,7 @@ proc gpio_drv { } { if {[have_spec rpi] && [have_spec hw]} { return hw_gpio_drv
# Build
#
set build_components {
core init
drivers/timer
core init timer
drivers/usb
server/usb_terminal
test/terminal_echo

View File

@@ -1,7 +1,6 @@
set build_components {
core init
core init timer
drivers/nic
drivers/timer
lib/vfs/lxip
server/vfs
server/dynamic_rom

View File

@@ -1,8 +1,8 @@
assert_spec linux
set build_components {
core init
drivers/timer drivers/nic
core init timer
drivers/nic
server/tcp_terminal
test/terminal_echo
lib/vfs/lxip

View File

@@ -20,9 +20,8 @@ assert_spec x86
#
set build_components {
core init
core init timer
drivers/rtc
drivers/timer
drivers/wifi
server/report_rom
server/dynamic_rom