mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-27 22:59:43 +00:00
bea305aec5
This patch merges two similar rules, which create content at 'include' into a single rule. This prevents a possible race condition when creating archives in parallel.
32 lines
747 B
Makefile
32 lines
747 B
Makefile
content: include mk/spec lib LICENSE
|
|
|
|
# architectures, for which a 'trace/timestamp.h' header is available
|
|
ARCHS := riscv arm_v6 arm_v7 x86_32 x86_64
|
|
|
|
include:
|
|
mkdir -p include
|
|
cp -r $(REP_DIR)/include/* $@/
|
|
for a in ${ARCHS}; do \
|
|
mkdir -p include/spec/$$a/trace; \
|
|
cp $(GENODE_DIR)/repos/os/include/spec/$$a/trace/timestamp.h \
|
|
include/spec/$$a/trace; \
|
|
done
|
|
|
|
LIB_MK_FILES := base.mk ld.mk ldso-startup.mk
|
|
|
|
lib:
|
|
mkdir -p lib/mk lib/symbols
|
|
cp $(addprefix $(REP_DIR)/lib/mk/,$(LIB_MK_FILES)) lib/mk/
|
|
cp $(REP_DIR)/lib/symbols/ld lib/symbols/
|
|
touch lib/mk/config.mk
|
|
|
|
SPECS := x86_32 x86_64 32bit 64bit
|
|
|
|
mk/spec:
|
|
mkdir -p $@
|
|
cp $(foreach spec,$(SPECS),$(REP_DIR)/mk/spec/$(spec).mk) $@
|
|
|
|
LICENSE:
|
|
cp $(GENODE_DIR)/LICENSE $@
|
|
|