mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-04 13:04:14 +00:00
2f46930824
This commit adds a port the jitterentropy library to Genode. As backend on x86_{32,64} 'rdtsc' is used and on ARMv{6,7} the performance-counter. Fixes #1239.
16 lines
481 B
Makefile
16 lines
481 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 += $(REP_DIR)/src/lib/jitterentropy \
|
|
$(REP_DIR)/src/lib/jitterentropy/$(TARGET_CPUARCH)
|
|
|
|
CC_OPT += -DJITTERENTROPY_GENODE
|