Skip to content

Commit

Permalink
tests: add -DJENT_CONF_ENABLE_INTERNAL_TIMER
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
smuellerDD committed Oct 12, 2024
1 parent 2790b23 commit 1182938
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/raw-entropy/recording_userspace/Makefile.hashtime
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1182938

Please sign in to comment.