2014-07-03 11:39:42 +00:00
|
|
|
#
|
|
|
|
# \brief Build config for Genodes core process
|
|
|
|
# \author Martin Stein
|
|
|
|
# \date 2011-12-16
|
|
|
|
#
|
|
|
|
|
2014-07-09 10:03:17 +00:00
|
|
|
# add library dependencies
|
|
|
|
LIBS += core-perf_counter
|
|
|
|
|
2014-07-03 11:39:42 +00:00
|
|
|
# set entry point of core's first thread
|
|
|
|
CC_OPT += -DCORE_MAIN=_main
|
|
|
|
|
|
|
|
# add library dependencies
|
2014-07-09 10:03:17 +00:00
|
|
|
LIBS += base-common
|
2014-07-03 11:39:42 +00:00
|
|
|
|
|
|
|
# add include paths
|
|
|
|
INC_DIR += $(REP_DIR)/src/core/include
|
|
|
|
INC_DIR += $(BASE_DIR)/src/core/include
|
|
|
|
INC_DIR += $(BASE_DIR)/src/base/include
|
2014-07-09 10:03:17 +00:00
|
|
|
INC_DIR += $(BASE_DIR)/src/base/thread
|
|
|
|
INC_DIR += $(BASE_DIR)/src/platform
|
2014-07-03 11:39:42 +00:00
|
|
|
|
|
|
|
# add C++ sources
|
|
|
|
SRC_CC += console.cc
|
|
|
|
SRC_CC += cpu_session_component.cc
|
|
|
|
SRC_CC += cpu_session_support.cc
|
|
|
|
SRC_CC += core_rm_session.cc
|
|
|
|
SRC_CC += core_mem_alloc.cc
|
|
|
|
SRC_CC += dataspace_component.cc
|
|
|
|
SRC_CC += dump_alloc.cc
|
|
|
|
SRC_CC += io_mem_session_component.cc
|
|
|
|
SRC_CC += io_mem_session_support.cc
|
|
|
|
SRC_CC += irq_session_component.cc
|
|
|
|
SRC_CC += main.cc
|
|
|
|
SRC_CC += pd_session_component.cc
|
|
|
|
SRC_CC += platform.cc
|
|
|
|
SRC_CC += platform_pd.cc
|
|
|
|
SRC_CC += platform_thread.cc
|
|
|
|
SRC_CC += context_area.cc
|
|
|
|
SRC_CC += ram_session_component.cc
|
|
|
|
SRC_CC += ram_session_support.cc
|
|
|
|
SRC_CC += rm_session_component.cc
|
|
|
|
SRC_CC += rom_session_component.cc
|
|
|
|
SRC_CC += signal_session_component.cc
|
|
|
|
SRC_CC += trace_session_component.cc
|
2014-07-09 10:03:17 +00:00
|
|
|
SRC_CC += thread/thread.cc
|
|
|
|
SRC_CC += thread_start.cc
|
2014-07-03 11:39:42 +00:00
|
|
|
SRC_CC += rm_session_support.cc
|
|
|
|
SRC_CC += pager.cc
|
|
|
|
SRC_CC += _main.cc
|
|
|
|
SRC_CC += kernel/kernel.cc
|
|
|
|
SRC_CC += kernel/thread.cc
|
|
|
|
SRC_CC += kernel/signal_receiver.cc
|
|
|
|
SRC_CC += kernel/irq.cc
|
2014-07-28 14:55:47 +00:00
|
|
|
SRC_CC += kernel/pd.cc
|
2014-10-10 14:13:52 +00:00
|
|
|
SRC_CC += kernel/cpu.cc
|
2014-07-03 11:39:42 +00:00
|
|
|
|
|
|
|
# add assembly sources
|
|
|
|
SRC_S += boot_modules.s
|
|
|
|
|
|
|
|
# provide Genode version information
|
|
|
|
include $(BASE_DIR)/src/core/version.inc
|
|
|
|
|
2015-02-09 09:08:54 +00:00
|
|
|
# switch to build-specific boot-modules if further images shall be available
|
2014-07-03 11:39:42 +00:00
|
|
|
ifneq ($(wildcard $(BUILD_BASE_DIR)/boot_modules.s),)
|
|
|
|
BOOT_MODULES_VPATH = $(BUILD_BASE_DIR)
|
|
|
|
INC_DIR += $(BOOT_MODULES_VPATH)
|
2015-02-09 09:08:54 +00:00
|
|
|
else
|
|
|
|
# use dummy boot-modules per default
|
|
|
|
BOOT_MODULES_VPATH = $(REP_DIR)/src/core/
|
2014-07-03 11:39:42 +00:00
|
|
|
endif
|
|
|
|
vpath boot_modules.s $(BOOT_MODULES_VPATH)
|
|
|
|
|
|
|
|
# declare source locations
|
2014-07-09 10:03:17 +00:00
|
|
|
vpath % $(REP_DIR)/src/core
|
|
|
|
vpath % $(BASE_DIR)/src/core
|
|
|
|
vpath % $(BASE_DIR)/src/platform
|
|
|
|
vpath % $(BASE_DIR)/src/base
|