2017-03-28 16:42:41 +00:00
|
|
|
include $(GENODE_DIR)/repos/base/recipes/src/base_content.inc
|
|
|
|
|
2019-05-09 12:04:03 +00:00
|
|
|
RECIPE_DIR := $(REP_DIR)/recipes/src/base-foc-$(BOARD)
|
2017-06-22 17:28:43 +00:00
|
|
|
FROM_BASE_FOC := include/foc include/foc_native_cpu
|
2017-03-28 16:42:41 +00:00
|
|
|
|
|
|
|
content: $(FROM_BASE_FOC)
|
|
|
|
|
|
|
|
$(FROM_BASE_FOC):
|
|
|
|
$(mirror_from_rep_dir)
|
|
|
|
|
|
|
|
content: README
|
|
|
|
README:
|
2018-11-06 15:12:59 +00:00
|
|
|
cp $(RECIPE_DIR)/README $@
|
2017-03-28 16:42:41 +00:00
|
|
|
|
|
|
|
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
|
2019-07-11 14:04:53 +00:00
|
|
|
tar -C $(KERNEL_PORT_DIR)/src/kernel/foc --exclude=.git -cf - . |\
|
|
|
|
tar -C $@ -xf -
|
|
|
|
|
2017-03-28 16:42:41 +00:00
|
|
|
|
|
|
|
content:
|
2019-05-21 12:01:26 +00:00
|
|
|
for spec in x86_32 x86_64 arm arm_64; do \
|
2017-03-28 16:42:41 +00:00
|
|
|
mv lib/mk/spec/$$spec/ld-foc.mk lib/mk/spec/$$spec/ld.mk; \
|
|
|
|
done;
|
2019-01-03 17:01:49 +00:00
|
|
|
sed -i "s/ld-foc/ld/" src/lib/ld/foc/target.mk
|
|
|
|
sed -i "s/foc_timer_drv/timer/" src/timer/foc/target.mk
|
2019-05-09 12:04:03 +00:00
|
|
|
sed -i "s/BOARD.*unknown/BOARD = $(BOARD)/" src/core/foc/target.mk
|
|
|
|
sed -i "s/BOARD.*unknown/BOARD = $(BOARD)/" src/kernel/foc/target.mk
|
|
|
|
sed -i "s/BOARD.*unknown/BOARD = $(BOARD)/" lib/mk/syscall-foc.inc
|
|
|
|
sed -i "s/BOARD.*unknown/BOARD = $(BOARD)/" lib/mk/kernel-foc.inc
|
|
|
|
|
|
|
|
content: enable_board_spec
|
|
|
|
enable_board_spec: etc/specs.conf
|
|
|
|
echo "SPECS += $(BOARD)" >> etc/specs.conf
|