mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-18 23:28:29 +00:00
timer: Build platform-specific parts as lib
By using the build system's library-selection mechanism instead of many timer targets with different 'REQUIRES' declarations, this patch reduces the noise of the build system. For all platforms, the target at 'os/src/drivers/timer' is built. The target, in turn, depends on a 'timer' library, which is platform-specific. The various library description files are located under 'os/lib/mk/<platform>'. The common bits are contained in 'os/lib/mk/timer.inc'.
This commit is contained in:
13
os/lib/mk/codezero/timer.mk
Normal file
13
os/lib/mk/codezero/timer.mk
Normal file
@ -0,0 +1,13 @@
|
||||
include $(REP_DIR)/lib/mk/timer.inc
|
||||
|
||||
INC_DIR += $(REP_DIR)/src/drivers/timer/include_periodic
|
||||
|
||||
#
|
||||
# Supply dummy includes to prevent warning about missing string.h and stdio.h,
|
||||
# which are included by Codezero's headers.
|
||||
#
|
||||
REP_INC_DIR += include/codezero/dummies
|
||||
|
||||
SRC_CC += platform_timer.cc
|
||||
vpath platform_timer.cc $(REP_DIR)/src/drivers/timer/codezero
|
||||
|
Reference in New Issue
Block a user