2012-05-30 20:13:09 +02:00
|
|
|
#
|
|
|
|
# \brief The core of Genode
|
|
|
|
# \author Martin Stein
|
|
|
|
# \date 2011-12-16
|
|
|
|
#
|
|
|
|
|
|
|
|
# set program name
|
|
|
|
TARGET = core
|
|
|
|
|
2012-12-10 13:55:19 +01:00
|
|
|
# set entry point of core's first thread
|
|
|
|
CC_OPT += -DCORE_MAIN=_main
|
|
|
|
|
2012-05-30 20:13:09 +02:00
|
|
|
# add library dependencies
|
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 12:39:51 +01:00
|
|
|
LIBS += base-common
|
2012-05-30 20:13:09 +02:00
|
|
|
|
2013-05-14 22:40:30 +02:00
|
|
|
# enable C++11 support
|
|
|
|
CC_CXX_OPT += -std=gnu++11
|
|
|
|
|
2012-05-30 20:13:09 +02:00
|
|
|
# add include paths
|
2012-12-10 13:55:19 +01:00
|
|
|
INC_DIR += $(REP_DIR)/src/core \
|
|
|
|
$(REP_DIR)/src/core/include \
|
|
|
|
$(REP_DIR)/include \
|
|
|
|
$(REP_DIR)/src/platform \
|
2013-05-14 22:40:30 +02:00
|
|
|
$(REP_DIR)/src/base \
|
2012-12-10 13:55:19 +01:00
|
|
|
$(BASE_DIR)/src/core/include \
|
|
|
|
$(BASE_DIR)/include \
|
2013-08-10 03:44:55 +02:00
|
|
|
$(BASE_DIR)/src/platform \
|
|
|
|
$(BASE_DIR)/src/base/thread
|
2012-05-30 20:13:09 +02:00
|
|
|
|
|
|
|
# add C++ sources
|
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 12:39:51 +01:00
|
|
|
SRC_CC += console.cc \
|
2012-10-02 13:11:58 +02:00
|
|
|
cpu_session_component.cc \
|
|
|
|
cpu_session_support.cc \
|
|
|
|
dataspace_component.cc \
|
|
|
|
dump_alloc.cc \
|
|
|
|
io_mem_session_component.cc \
|
|
|
|
io_mem_session_support.cc \
|
|
|
|
irq_session_component.cc \
|
|
|
|
main.cc \
|
|
|
|
pd_session_component.cc \
|
|
|
|
platform.cc \
|
|
|
|
platform_pd.cc \
|
|
|
|
platform_thread.cc \
|
2013-05-07 11:02:51 +02:00
|
|
|
context_area.cc \
|
2012-10-02 13:11:58 +02:00
|
|
|
ram_session_component.cc \
|
|
|
|
ram_session_support.cc \
|
|
|
|
rm_session_component.cc \
|
|
|
|
rom_session_component.cc \
|
|
|
|
signal_session_component.cc \
|
2013-08-10 03:44:55 +02:00
|
|
|
trace_session_component.cc \
|
2012-12-10 13:55:19 +01:00
|
|
|
thread.cc \
|
|
|
|
kernel.cc \
|
|
|
|
rm_session_support.cc \
|
|
|
|
kernel_support.cc \
|
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 12:39:51 +01:00
|
|
|
trustzone.cc \
|
|
|
|
pager.cc \
|
|
|
|
_main.cc
|
2012-05-30 20:13:09 +02:00
|
|
|
|
|
|
|
# declare file locations
|
|
|
|
vpath _main.cc $(BASE_DIR)/src/platform
|
2012-12-10 13:55:19 +01:00
|
|
|
vpath cpu_session_component.cc $(BASE_DIR)/src/core
|
|
|
|
vpath dataspace_component.cc $(BASE_DIR)/src/core
|
|
|
|
vpath io_mem_session_component.cc $(BASE_DIR)/src/core
|
|
|
|
vpath io_mem_session_support.cc $(BASE_DIR)/src/core
|
|
|
|
vpath main.cc $(BASE_DIR)/src/core
|
|
|
|
vpath pd_session_component.cc $(BASE_DIR)/src/core
|
|
|
|
vpath ram_session_component.cc $(BASE_DIR)/src/core
|
|
|
|
vpath rm_session_component.cc $(BASE_DIR)/src/core
|
|
|
|
vpath rom_session_component.cc $(BASE_DIR)/src/core
|
2013-08-10 03:44:55 +02:00
|
|
|
vpath trace_session_component.cc $(BASE_DIR)/src/core
|
2012-12-10 13:55:19 +01:00
|
|
|
vpath dump_alloc.cc $(BASE_DIR)/src/core
|
2012-05-30 20:13:09 +02:00
|
|
|
vpath console.cc $(REP_DIR)/src/base
|
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 12:39:51 +01:00
|
|
|
vpath pager.cc $(REP_DIR)/src/base
|
|
|
|
vpath _main.cc $(BASE_DIR)/src/platform
|
2012-05-30 20:13:09 +02:00
|
|
|
vpath % $(REP_DIR)/src/core
|
|
|
|
|