2014-07-03 13:39:42 +02:00
|
|
|
#
|
|
|
|
# \brief Build config for Genodes core process
|
|
|
|
# \author Martin Stein
|
|
|
|
# \date 2011-12-16
|
|
|
|
#
|
|
|
|
|
2017-01-02 15:51:09 +01:00
|
|
|
LIBS += base-hw-common cxx
|
2014-07-03 13:39:42 +02:00
|
|
|
|
|
|
|
# add include paths
|
2021-01-18 17:55:51 +01:00
|
|
|
REP_INC_DIR += src/core
|
|
|
|
REP_INC_DIR += src/core/include
|
|
|
|
REP_INC_DIR += src/include
|
2014-07-03 13:39:42 +02:00
|
|
|
|
|
|
|
# add C++ sources
|
|
|
|
SRC_CC += cpu_session_component.cc
|
|
|
|
SRC_CC += cpu_session_support.cc
|
2016-05-10 18:05:38 +02:00
|
|
|
SRC_CC += cpu_thread_component.cc
|
2017-12-11 13:05:08 +01:00
|
|
|
SRC_CC += core_log.cc
|
2017-12-12 10:53:03 +01:00
|
|
|
SRC_CC += core_log_out.cc
|
2016-04-15 15:19:22 +02:00
|
|
|
SRC_CC += core_region_map.cc
|
2014-07-03 13:39:42 +02:00
|
|
|
SRC_CC += core_mem_alloc.cc
|
2016-01-19 20:24:22 +01:00
|
|
|
SRC_CC += core_rpc_cap_alloc.cc
|
2014-07-03 13:39:42 +02:00
|
|
|
SRC_CC += dataspace_component.cc
|
2016-05-03 16:31:17 +02:00
|
|
|
SRC_CC += default_log.cc
|
2014-07-03 13:39:42 +02:00
|
|
|
SRC_CC += dump_alloc.cc
|
2016-11-07 18:00:24 +01:00
|
|
|
SRC_CC += kernel_log.cc
|
2014-07-03 13:39:42 +02:00
|
|
|
SRC_CC += io_mem_session_component.cc
|
|
|
|
SRC_CC += io_mem_session_support.cc
|
|
|
|
SRC_CC += irq_session_component.cc
|
|
|
|
SRC_CC += main.cc
|
2017-06-13 14:54:08 +02:00
|
|
|
SRC_CC += native_pd_component.cc
|
2017-06-20 15:25:04 +02:00
|
|
|
SRC_CC += native_utcb.cc
|
2017-08-02 17:30:49 +02:00
|
|
|
SRC_CC += pd_session_support.cc
|
2014-07-03 13:39:42 +02:00
|
|
|
SRC_CC += platform.cc
|
2017-08-17 16:20:56 +02:00
|
|
|
SRC_CC += platform_rom_modules.cc
|
2014-07-03 13:39:42 +02:00
|
|
|
SRC_CC += platform_pd.cc
|
|
|
|
SRC_CC += platform_thread.cc
|
2016-01-23 14:42:55 +01:00
|
|
|
SRC_CC += stack_area.cc
|
2017-05-11 20:03:28 +02:00
|
|
|
SRC_CC += pd_session_component.cc
|
2017-05-11 15:03:03 +02:00
|
|
|
SRC_CC += ram_dataspace_support.cc
|
2016-04-15 15:19:22 +02:00
|
|
|
SRC_CC += region_map_component.cc
|
2014-07-03 13:39:42 +02:00
|
|
|
SRC_CC += rom_session_component.cc
|
|
|
|
SRC_CC += trace_session_component.cc
|
2017-05-10 20:11:38 +02:00
|
|
|
SRC_CC += signal_receiver.cc
|
2017-05-11 15:03:03 +02:00
|
|
|
SRC_CC += ram_dataspace_factory.cc
|
2017-05-10 20:11:38 +02:00
|
|
|
SRC_CC += signal_transmitter_noinit.cc
|
2014-07-09 12:03:17 +02:00
|
|
|
SRC_CC += thread_start.cc
|
2015-05-19 14:18:40 +02:00
|
|
|
SRC_CC += env.cc
|
2016-04-15 15:19:22 +02:00
|
|
|
SRC_CC += region_map_support.cc
|
2014-07-03 13:39:42 +02:00
|
|
|
SRC_CC += pager.cc
|
|
|
|
SRC_CC += _main.cc
|
2018-11-26 11:18:57 +01:00
|
|
|
SRC_CC += kernel/cpu.cc
|
2015-04-16 11:25:23 +02:00
|
|
|
SRC_CC += kernel/cpu_scheduler.cc
|
2015-12-09 12:02:00 +01:00
|
|
|
SRC_CC += kernel/init.cc
|
2015-04-16 11:25:23 +02:00
|
|
|
SRC_CC += kernel/ipc_node.cc
|
2014-07-03 13:39:42 +02:00
|
|
|
SRC_CC += kernel/irq.cc
|
2018-11-26 11:18:57 +01:00
|
|
|
SRC_CC += kernel/kernel.cc
|
2015-05-19 14:18:40 +02:00
|
|
|
SRC_CC += kernel/object.cc
|
2018-11-26 11:18:57 +01:00
|
|
|
SRC_CC += kernel/signal_receiver.cc
|
|
|
|
SRC_CC += kernel/thread.cc
|
|
|
|
SRC_CC += kernel/timer.cc
|
2015-03-09 15:00:58 +01:00
|
|
|
SRC_CC += init_main_thread.cc
|
2015-05-19 14:18:40 +02:00
|
|
|
SRC_CC += capability.cc
|
2017-06-20 15:01:05 +02:00
|
|
|
SRC_CC += stack_area_addr.cc
|
2018-11-14 16:19:30 +01:00
|
|
|
SRC_CC += heartbeat.cc
|
2014-07-03 13:39:42 +02:00
|
|
|
|
|
|
|
# provide Genode version information
|
|
|
|
include $(BASE_DIR)/src/core/version.inc
|
|
|
|
|
2017-01-02 15:29:21 +01:00
|
|
|
# configure multiprocessor mode
|
2016-11-07 18:00:24 +01:00
|
|
|
NR_OF_CPUS ?= 1
|
2017-01-02 15:29:21 +01:00
|
|
|
CC_OPT += -Wa,--defsym -Wa,NR_OF_CPUS=$(NR_OF_CPUS) -DNR_OF_CPUS=$(NR_OF_CPUS)
|
|
|
|
|
2021-01-18 17:55:51 +01:00
|
|
|
TMP := $(call select_from_repositories,lib/mk/core-hw.inc)
|
|
|
|
BASE_HW_DIR := $(TMP:%lib/mk/core-hw.inc=%)
|
|
|
|
|
2014-07-03 13:39:42 +02:00
|
|
|
# declare source locations
|
2020-04-08 17:24:34 +02:00
|
|
|
vpath % $(BASE_HW_DIR)/src/core
|
2014-07-09 12:03:17 +02:00
|
|
|
vpath % $(BASE_DIR)/src/core
|
2015-09-03 14:55:05 +02:00
|
|
|
vpath % $(BASE_DIR)/src/lib/startup
|