genode/base-hw/lib/mk/arm_v7a/startup_core.mk
2012-08-03 12:06:37 +02:00

30 lines
723 B
Makefile

#
# \brief Essential platform specific sources for core
# \author Martin Stein
# \date 2012-04-16
#
# Aad C++ sources
SRC_CC += syscall.cc
# add assembly sources
SRC_S += crt0.s mode_transition.s boot_modules.s
# add inlucde paths
INC_DIR += $(BASE_DIR)/src/core/include/
#
# Check if there are other images wich shall be linked to core.
# If not use a dummy boot-modules file wich includes only the symbols.
#
ifeq ($(wildcard $(BUILD_BASE_DIR)/boot_modules.s),)
vpath boot_modules.s $(REP_DIR)/src/core/arm_v7a
else
INC_DIR += $(BUILD_BASE_DIR)
vpath boot_modules.s $(BUILD_BASE_DIR)
endif
# declare remaining source paths
vpath syscall.cc $(REP_DIR)/src/base/arm_v7a
vpath % $(REP_DIR)/src/core/arm_v7a