genode/repos/libports/lib/import/import-jitterentropy.mk
Sebastian Sumpf ab0fd6510f jitterentropy: Fix foreign import
Make the jitterentropy library accessible from other repositories.

Noticed while working on issue #1393
2015-02-16 13:40:35 +01:00

16 lines
523 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
INC_DIR += $(call select_from_ports,jitterentropy)/include/jitterentropy
INC_DIR += $(call select_from_repositories,src/lib/jitterentropy)
INC_DIR += $(call select_from_repositories,src/lib/jitterentropy/$(TARGET_CPUARCH))
CC_OPT += -DJITTERENTROPY_GENODE