2011-12-22 15:19:25 +00:00
|
|
|
TARGET = core
|
|
|
|
|
|
|
|
GEN_CORE_DIR = $(BASE_DIR)/src/core
|
|
|
|
|
2015-06-19 12:58:18 +00:00
|
|
|
SRC_CC += cap_session_component.cc \
|
|
|
|
context_area.cc \
|
|
|
|
core_printf.cc \
|
2011-12-22 15:19:25 +00:00
|
|
|
cpu_session_component.cc \
|
2012-05-28 14:57:09 +00:00
|
|
|
cpu_session_support.cc \
|
2015-06-19 12:58:18 +00:00
|
|
|
dataspace_component.cc \
|
|
|
|
dump_alloc.cc \
|
2011-12-22 15:19:25 +00:00
|
|
|
io_mem_session_component.cc \
|
|
|
|
io_mem_session_support.cc \
|
2015-06-19 12:58:18 +00:00
|
|
|
io_port_session_component.cc \
|
|
|
|
ipc_pager.cc \
|
|
|
|
irq_session_component.cc \
|
|
|
|
main.cc \
|
|
|
|
multiboot_info.cc \
|
|
|
|
pager.cc \
|
|
|
|
pager_common.cc \
|
|
|
|
pd_session_component.cc \
|
|
|
|
platform.cc \
|
2011-12-22 15:19:25 +00:00
|
|
|
platform_pd.cc \
|
2012-10-02 11:11:58 +00:00
|
|
|
platform_services.cc \
|
2015-06-19 12:58:18 +00:00
|
|
|
platform_thread.cc \
|
|
|
|
ram_session_component.cc \
|
|
|
|
ram_session_support.cc \
|
2011-12-22 15:19:25 +00:00
|
|
|
rm_session_component.cc \
|
|
|
|
rm_session_support.cc \
|
2015-06-19 12:58:18 +00:00
|
|
|
rom_session_component.cc \
|
2011-12-22 15:19:25 +00:00
|
|
|
signal_session_component.cc \
|
|
|
|
signal_source_component.cc \
|
2015-06-19 12:58:18 +00:00
|
|
|
thread_start.cc \
|
|
|
|
trace_session_component.cc
|
2011-12-22 15:19:25 +00:00
|
|
|
|
|
|
|
INC_DIR += $(REP_DIR)/src/core/include \
|
Merge base libraries into a single library
This patch simplifies the way of how Genode's base libraries are
organized. Originally, the base API was implemented in the form of many
small libraries such as 'thread', 'env', 'server', etc. Most of them
used to consist of only a small number of files. Because those libraries
are incorporated in any build, the checking of their inter-dependencies
made the build process more verbose than desired. Also, the number of
libraries and their roles (core only, non-core only, shared by both core
and non-core) were not easy to capture.
Hereby, the base libraries have been reduced to the following few
libraries:
- startup.mk contains the startup code for normal Genode processes.
On some platform, core is able to use the library as well.
- base-common.mk contains the parts of the base library that are
identical by core and non-core processes.
- base.mk contains the complete base API implementation for non-core
processes
Consequently, the 'LIBS' declaration in 'target.mk' files becomes
simpler as well. In the most simple case, only the 'base' library must
be mentioned.
Fixes #18
2013-02-14 11:39:51 +00:00
|
|
|
$(GEN_CORE_DIR)/include \
|
2013-08-10 01:44:55 +00:00
|
|
|
$(REP_DIR)/src/base/console \
|
|
|
|
$(BASE_DIR)/src/base/thread
|
Merge base libraries into a single library
This patch simplifies the way of how Genode's base libraries are
organized. Originally, the base API was implemented in the form of many
small libraries such as 'thread', 'env', 'server', etc. Most of them
used to consist of only a small number of files. Because those libraries
are incorporated in any build, the checking of their inter-dependencies
made the build process more verbose than desired. Also, the number of
libraries and their roles (core only, non-core only, shared by both core
and non-core) were not easy to capture.
Hereby, the base libraries have been reduced to the following few
libraries:
- startup.mk contains the startup code for normal Genode processes.
On some platform, core is able to use the library as well.
- base-common.mk contains the parts of the base library that are
identical by core and non-core processes.
- base.mk contains the complete base API implementation for non-core
processes
Consequently, the 'LIBS' declaration in 'target.mk' files becomes
simpler as well. In the most simple case, only the 'base' library must
be mentioned.
Fixes #18
2013-02-14 11:39:51 +00:00
|
|
|
|
|
|
|
LIBS += base-common
|
2011-12-22 15:19:25 +00:00
|
|
|
|
2014-03-18 15:23:52 +00:00
|
|
|
include $(GEN_CORE_DIR)/version.inc
|
|
|
|
|
2011-12-22 15:19:25 +00:00
|
|
|
vpath main.cc $(GEN_CORE_DIR)
|
|
|
|
vpath multiboot_info.cc $(GEN_CORE_DIR)
|
|
|
|
vpath ram_session_component.cc $(GEN_CORE_DIR)
|
|
|
|
vpath rom_session_component.cc $(GEN_CORE_DIR)
|
2015-03-11 10:09:45 +00:00
|
|
|
vpath cap_session_component.cc $(GEN_CORE_DIR)
|
2011-12-22 15:19:25 +00:00
|
|
|
vpath cpu_session_component.cc $(GEN_CORE_DIR)
|
|
|
|
vpath pd_session_component.cc $(GEN_CORE_DIR)
|
|
|
|
vpath rm_session_component.cc $(GEN_CORE_DIR)
|
|
|
|
vpath io_mem_session_component.cc $(GEN_CORE_DIR)
|
|
|
|
vpath io_mem_session_support.cc $(GEN_CORE_DIR)
|
|
|
|
vpath signal_session_component.cc $(GEN_CORE_DIR)
|
|
|
|
vpath signal_source_component.cc $(GEN_CORE_DIR)
|
2013-08-10 01:44:55 +00:00
|
|
|
vpath trace_session_component.cc $(GEN_CORE_DIR)
|
2011-12-22 15:19:25 +00:00
|
|
|
vpath dataspace_component.cc $(GEN_CORE_DIR)
|
|
|
|
vpath dump_alloc.cc $(GEN_CORE_DIR)
|
|
|
|
vpath context_area.cc $(GEN_CORE_DIR)
|
2015-06-19 12:58:18 +00:00
|
|
|
vpath pager_common.cc $(GEN_CORE_DIR)
|
Merge base libraries into a single library
This patch simplifies the way of how Genode's base libraries are
organized. Originally, the base API was implemented in the form of many
small libraries such as 'thread', 'env', 'server', etc. Most of them
used to consist of only a small number of files. Because those libraries
are incorporated in any build, the checking of their inter-dependencies
made the build process more verbose than desired. Also, the number of
libraries and their roles (core only, non-core only, shared by both core
and non-core) were not easy to capture.
Hereby, the base libraries have been reduced to the following few
libraries:
- startup.mk contains the startup code for normal Genode processes.
On some platform, core is able to use the library as well.
- base-common.mk contains the parts of the base library that are
identical by core and non-core processes.
- base.mk contains the complete base API implementation for non-core
processes
Consequently, the 'LIBS' declaration in 'target.mk' files becomes
simpler as well. In the most simple case, only the 'base' library must
be mentioned.
Fixes #18
2013-02-14 11:39:51 +00:00
|
|
|
vpath core_printf.cc $(BASE_DIR)/src/base/console
|
2011-12-22 15:19:25 +00:00
|
|
|
vpath %.cc $(REP_DIR)/src/core
|