genode/repos/libports/lib/import/import-jitterentropy.mk
Norman Feske df9eb55c5a depot: recipe for api/jitterentropy
The API archive makes the library usable for src/gpt_write.
2018-05-30 13:36:24 +02:00

21 lines
600 B
Makefile

ifeq ($(filter-out $(SPECS),x86_32),)
TARGET_CPUARCH=x86_32
else ifeq ($(filter-out $(SPECS),x86_64),)
TARGET_CPUARCH=x86_64
else ifeq ($(filter-out $(SPECS),arm_v6),)
TARGET_CPUARCH=arm_v6
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))
CC_OPT += -DJITTERENTROPY_GENODE