From 11829386fd07f6c3171154a5975e3a82fa2d47f5 Mon Sep 17 00:00:00 2001 From: Stephan Mueller Date: Sat, 12 Oct 2024 16:03:59 +0200 Subject: [PATCH] tests: add -DJENT_CONF_ENABLE_INTERNAL_TIMER This compile time flag enables the internal timer support for the test code. The invocation of the test code now can enable the internal timer if desired. Signed-off-by: Stephan Mueller --- tests/raw-entropy/recording_userspace/Makefile.hashtime | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/raw-entropy/recording_userspace/Makefile.hashtime b/tests/raw-entropy/recording_userspace/Makefile.hashtime index 82b8472..7b063bd 100644 --- a/tests/raw-entropy/recording_userspace/Makefile.hashtime +++ b/tests/raw-entropy/recording_userspace/Makefile.hashtime @@ -6,6 +6,9 @@ CFLAGS +=-Wextra -Wall -pedantic -fPIC -O0 CFLAGS +=-fwrapv --param ssp-buffer-size=4 -fvisibility=hidden -fPIE -Wcast-align -Wmissing-field-initializers -Wshadow -Wswitch-enum LDFLAGS +=-Wl,-z,relro,-z,now +# Enable internal timer support +CFLAGS += -DJENT_CONF_ENABLE_INTERNAL_TIMER + GCCVERSIONFORMAT := $(shell echo `$(CC) -dumpversion | sed 's/\./\n/g' | wc -l`) ifeq "$(GCCVERSIONFORMAT)" "3" GCC_GTEQ_490 := $(shell expr `$(CC) -dumpversion | sed -e 's/\.\([0-9][0-9]\)/\1/g' -e 's/\.\([0-9]\)/0\1/g' -e 's/^[0-9]\{3,4\}$$/&00/'` \>= 40900)