mirror of
https://github.com/genodelabs/genode.git
synced 2025-05-06 18:48:35 +00:00
Since the timer and timeout handling is part of the base library (the dynamic linker), it belongs to the base repository. Besides moving the timer and its related infrastructure (alarm, timeout libs, tests) to the base repository, this patch also moves the timer from the 'drivers' subdirectory directly to 'src' and disamibuates the timer's build locations for the various kernels. Otherwise the different timer implementations could interfere with each other when using one build directory with multiple kernels. Note that this patch changes the include paths for the former os/timer, os/alarm.h, os/duration.h, and os/timed_semaphore.h to base/. Issue #3101
34 lines
745 B
PHP
34 lines
745 B
PHP
include $(GENODE_DIR)/repos/base/recipes/src/base_content.inc
|
|
|
|
FROM_BASE_FOC := include/foc include/foc_native_cpu
|
|
|
|
content: $(FROM_BASE_FOC)
|
|
|
|
$(FROM_BASE_FOC):
|
|
$(mirror_from_rep_dir)
|
|
|
|
content: README
|
|
README:
|
|
cp $(RECIPE_DIR)/README $@
|
|
|
|
content: lib/import config etc
|
|
lib/import config etc:
|
|
$(mirror_from_rep_dir)
|
|
|
|
content: src/kernel/foc
|
|
src/kernel:
|
|
$(mirror_from_rep_dir)
|
|
|
|
KERNEL_PORT_DIR := $(call port_dir,$(REP_DIR)/ports/foc)
|
|
|
|
src/kernel/foc: src/kernel
|
|
cp -r $(KERNEL_PORT_DIR)/src/kernel/foc/* $@
|
|
|
|
content:
|
|
for spec in x86_32 x86_64 arm; do \
|
|
mv lib/mk/spec/$$spec/ld-foc.mk lib/mk/spec/$$spec/ld.mk; \
|
|
done;
|
|
sed -i "s/ld-foc/ld/" src/lib/ld/foc/target.mk
|
|
sed -i "s/foc_timer_drv/timer/" src/timer/foc/target.mk
|
|
|