mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-15 01:10:08 +00:00
7e1692d997
Instead of solving the problem to deliver ROM modules to core while booting differently for the several kernels (multi-boot, elfweaver, core re-linking), this commit unifies the approaches. It always builds core as a library, and after all binaries are built from a run-script, the run-tool will link an ELF image out of the core-library and all boot modules. Thereby, core can access its ROM modules directly. This approach now works for all kernels except Linux. With this solution, there is no [build_dir]/bin/core binary available anymore. For debugging purposes you will find a core binary without boot modules, but with debug symbols under [run_dir].core. Fix #2095
72 lines
1.9 KiB
PHP
72 lines
1.9 KiB
PHP
#
|
|
# \brief Build config for Genodes core process
|
|
# \author Martin Stein
|
|
# \date 2011-12-16
|
|
#
|
|
|
|
# add library dependencies
|
|
LIBS += core-perf_counter
|
|
|
|
# add library dependencies
|
|
LIBS += base-common
|
|
|
|
# add include paths
|
|
INC_DIR += $(BASE_DIR)/../base-hw/src/core/include
|
|
INC_DIR += $(BASE_DIR)/src/core/include
|
|
INC_DIR += $(BASE_DIR)/../base-hw/src/include
|
|
INC_DIR += $(BASE_DIR)/src/include
|
|
|
|
# add C++ sources
|
|
SRC_CC += cpu_session_component.cc
|
|
SRC_CC += cpu_session_support.cc
|
|
SRC_CC += cpu_thread_component.cc
|
|
SRC_CC += core_region_map.cc
|
|
SRC_CC += core_mem_alloc.cc
|
|
SRC_CC += core_rpc_cap_alloc.cc
|
|
SRC_CC += dataspace_component.cc
|
|
SRC_CC += default_log.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 += pd_upgrade_ram_quota.cc
|
|
SRC_CC += pd_assign_pci.cc
|
|
SRC_CC += platform.cc
|
|
SRC_CC += platform_pd.cc
|
|
SRC_CC += platform_thread.cc
|
|
SRC_CC += stack_area.cc
|
|
SRC_CC += ram_session_component.cc
|
|
SRC_CC += ram_session_support.cc
|
|
SRC_CC += region_map_component.cc
|
|
SRC_CC += rom_session_component.cc
|
|
SRC_CC += trace_session_component.cc
|
|
SRC_CC += thread_start.cc
|
|
SRC_CC += env.cc
|
|
SRC_CC += region_map_support.cc
|
|
SRC_CC += pager.cc
|
|
SRC_CC += _main.cc
|
|
SRC_CC += component_construct.cc
|
|
SRC_CC += kernel/cpu_scheduler.cc
|
|
SRC_CC += kernel/double_list.cc
|
|
SRC_CC += kernel/init.cc
|
|
SRC_CC += kernel/thread.cc
|
|
SRC_CC += kernel/signal_receiver.cc
|
|
SRC_CC += kernel/ipc_node.cc
|
|
SRC_CC += kernel/irq.cc
|
|
SRC_CC += kernel/pd.cc
|
|
SRC_CC += kernel/cpu.cc
|
|
SRC_CC += kernel/clock.cc
|
|
SRC_CC += kernel/object.cc
|
|
SRC_CC += init_main_thread.cc
|
|
SRC_CC += capability.cc
|
|
|
|
# provide Genode version information
|
|
include $(BASE_DIR)/src/core/version.inc
|
|
|
|
# declare source locations
|
|
vpath % $(BASE_DIR)/../base-hw/src/core
|
|
vpath % $(BASE_DIR)/src/core
|
|
vpath % $(BASE_DIR)/src/lib/startup
|