2017-03-28 16:42:41 +00:00
|
|
|
include $(GENODE_DIR)/repos/base/recipes/src/base_content.inc
|
|
|
|
|
|
|
|
content: src/bootstrap
|
|
|
|
|
|
|
|
src/bootstrap:
|
|
|
|
$(mirror_from_rep_dir)
|
|
|
|
|
2019-07-12 13:27:05 +00:00
|
|
|
content: generalize_target_names remove_other_board_libs
|
2017-03-28 16:42:41 +00:00
|
|
|
|
2019-01-03 17:01:49 +00:00
|
|
|
generalize_target_names: lib/mk src/lib src/timer
|
2017-03-28 16:42:41 +00:00
|
|
|
for spec in arm riscv x86_64; do \
|
|
|
|
mv lib/mk/spec/$$spec/ld-hw.mk lib/mk/spec/$$spec/ld.mk; \
|
|
|
|
done;
|
|
|
|
sed -i "s/ld-hw/ld/" src/lib/ld/hw/target.mk
|
2019-01-03 17:01:49 +00:00
|
|
|
sed -i "s/hw_timer_drv/timer/" src/timer/hw/target.mk
|
2017-03-28 16:42:41 +00:00
|
|
|
|
2019-07-12 13:27:05 +00:00
|
|
|
remove_other_board_libs: lib/mk
|
|
|
|
find lib/mk/spec -name core-hw-*.mk -o -name bootstrap-hw-*.mk |\
|
|
|
|
grep -v "hw-$(BOARD).mk" | xargs rm -rf
|