depot: recipe for api/jitterentropy

The API archive makes the library usable for src/gpt_write.
This commit is contained in:
Norman Feske 2018-05-16 14:18:48 +02:00 committed by Christian Helmuth
parent 44a6e51114
commit df9eb55c5a
5 changed files with 35 additions and 23 deletions

View File

@ -8,7 +8,12 @@ else ifeq ($(filter-out $(SPECS),arm_v7),)
TARGET_CPUARCH=arm_v7
endif
ifeq ($(CONTRIB_DIR),)
REP_INC_DIR += include/jitterentropy
else
INC_DIR += $(call select_from_ports,jitterentropy)/include/jitterentropy
endif
INC_DIR += $(call select_from_repositories,src/lib/jitterentropy)
INC_DIR += $(call select_from_repositories,src/lib/jitterentropy/spec/$(TARGET_CPUARCH))

View File

@ -0,0 +1,25 @@
MIRROR_FROM_REP_DIR := lib/mk/jitterentropy.inc \
lib/import/import-jitterentropy.mk \
$(foreach SPEC,arm_v6 arm_v7 x86_32 x86_64,\
lib/mk/spec/$(SPEC)/jitterentropy.mk) \
src/lib/jitterentropy
PORT_DIR := $(call port_dir,$(REP_DIR)/ports/jitterentropy)
MIRROR_FROM_PORT_DIR := src/lib/jitterentropy/jitterentropy-base.c \
include/jitterentropy/jitterentropy.h
content: $(MIRROR_FROM_REP_DIR) $(MIRROR_FROM_PORT_DIR) LICENSE
$(MIRROR_FROM_PORT_DIR):
mkdir -p $(dir $@)
cp -r $(PORT_DIR)/$@ $@
$(MIRROR_FROM_REP_DIR):
$(mirror_from_rep_dir)
LICENSE:
( echo "The contrib sources"; \
echo " include/jitterentropy/jitterentropy.h"; \
echo " src/lib/jitterentropy/jitterentropy-base.c"; \
echo "by Stephan Mueller are licensed under a BSD-style license (please"; \
echo "see the corresponding copyright header in the files)." ) > $@

View File

@ -0,0 +1 @@
2018-05-18 f226ebc41dc260f4b3506870061d6f67c1fa34ec

View File

@ -1,29 +1,9 @@
MIRROR_FROM_REP_DIR := lib/mk/jitterentropy.inc \
lib/import/import-jitterentropy.mk \
$(foreach SPEC,arm_v6 arm_v7 x86_32 x86_64,\
lib/mk/spec/$(SPEC)/jitterentropy.mk) \
src/lib/jitterentropy \
lib/mk/vfs_jitterentropy.mk src/lib/vfs/jitterentropy
MIRROR_FROM_REP_DIR := lib/mk/vfs_jitterentropy.mk src/lib/vfs/jitterentropy
PORT_DIR := $(call port_dir,$(REP_DIR)/ports/jitterentropy)
MIRROR_FROM_PORT_DIR := src/lib/jitterentropy/jitterentropy-base.c \
include/jitterentropy/jitterentropy.h
content: $(MIRROR_FROM_REP_DIR) $(MIRROR_FROM_PORT_DIR) LICENSE
$(MIRROR_FROM_PORT_DIR):
mkdir -p $(dir $@)
cp -r $(PORT_DIR)/$@ $@
content: $(MIRROR_FROM_REP_DIR) LICENSE
$(MIRROR_FROM_REP_DIR):
$(mirror_from_rep_dir)
LICENSE:
( echo "The contrib sources"; \
echo " include/jitterentropy/jitterentropy.h"; \
echo " src/lib/jitterentropy/jitterentropy-base.c"; \
echo "by Stephan Mueller are licensed under a BSD-style license (please"; \
echo "see the corresponding copyright header in the files)."; \
echo ; \
echo "The remaining source files are subject to the Genode license: "; \
cat $(GENODE_DIR)/LICENSE; ) > $@
cp $(GENODE_DIR)/LICENSE $@

View File

@ -3,3 +3,4 @@ os
so
libc
vfs
jitterentropy