From 2dae0b764f23fa3359f39b88d889205940d3c60f Mon Sep 17 00:00:00 2001 From: Thomas Heijligen Date: Tue, 26 Oct 2021 12:44:36 +0200 Subject: Makefile: Revise utsname and clock_gettime test Clean up the feature target by outsourcing the test to an own variable. Change the print output and don't write to the build-details file. HAS_CLOCK_GETTIME=no replaces DISABLE_CLOCK_GETTIME=yes This is in preparation for further changes. Change-Id: Ie1f43b3d5a8ad79bff3f9bbc21f359ec35abc42a Signed-off-by: Thomas Heijligen Reviewed-on: https://review.coreboot.org/c/flashrom/+/58618 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber --- Makefile.d/clock_gettime_test.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Makefile.d/clock_gettime_test.c (limited to 'Makefile.d/clock_gettime_test.c') diff --git a/Makefile.d/clock_gettime_test.c b/Makefile.d/clock_gettime_test.c new file mode 100644 index 000000000..000aa425f --- /dev/null +++ b/Makefile.d/clock_gettime_test.c @@ -0,0 +1,9 @@ +#include +int main(int argc, char **argv) +{ + (void)argc; + (void)argv; + struct timespec res; + clock_gettime(CLOCK_REALTIME, &res); + return 0; +} -- cgit v1.2.3