mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 13:47:56 +00:00
4da52517c1
This patch removes the component_entry_point library, which used to proved a hook for the libc to intercept the call of the 'Component::construct' function. The mechansim has several shortcomings (see the discussion in the associated issue) and was complex. So we eventually discarded the approach in favor of the explicit handling of the startup. A regular Genode component provides a 'Component::construct' function, which is determined by the dynamic linker via a symbol lookup. For the time being, the dynamic linker falls back to looking up a 'main' function if no 'Component::construct' function could be found. The libc provides an implementation of 'Component::construct', which sets up the libc's task handling and finally call the function 'Libc::Component::construct' from the context of the appllication task. This function is expected to be provided by the libc-using application. Consequently, Genode components that use the libc have to implement the 'Libc::Component::construct' function. The new 'posix' library provides an implementation of 'Libc::Component::construct' that calls a main function. Hence, POSIX programs that merely use the POSIX API merely have to add 'posix' to the 'LIBS' declaration in their 'target.mk' file. Their execution starts at 'main'. Issue #2199
67 lines
1.8 KiB
PHP
67 lines
1.8 KiB
PHP
#
|
|
# \brief Build config for Genodes core process
|
|
# \author Martin Stein
|
|
# \date 2011-12-16
|
|
#
|
|
|
|
LIBS += core-hw-perf_counter base-hw-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 += 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
|