mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 13:47:56 +00:00
depot: avoid rule aliaing in api/base content.mk
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.
This commit is contained in:
parent
1cc09ac786
commit
bea305aec5
@ -3,17 +3,14 @@ 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
|
||||
|
||||
MIRRORED_FROM_OS := $(foreach A,$(ARCHS),include/spec/$A/trace/timestamp.h)
|
||||
|
||||
include:
|
||||
mkdir -p include
|
||||
cp -r $(REP_DIR)/include/* $@/
|
||||
|
||||
content: $(MIRRORED_FROM_OS)
|
||||
|
||||
$(MIRRORED_FROM_OS):
|
||||
mkdir -p $(dir $@)
|
||||
cp $(GENODE_DIR)/repos/os/$@ $@
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user