summaryrefslogtreecommitdiffstats
path: root/Makefile.d/utsname_test.c
diff options
context:
space:
mode:
authorThomas Heijligen <thomas.heijligen@secunet.com>2021-10-26 12:44:36 +0200
committerNico Huber <nico.h@gmx.de>2021-11-07 16:59:32 +0000
commit2dae0b764f23fa3359f39b88d889205940d3c60f (patch)
tree2a0a0fa17ec76e26960853b63802f9467f5c244c /Makefile.d/utsname_test.c
parent47caa9ceb1437ccd4de4e0da6b2fb307bc68d6e3 (diff)
downloadflashrom-2dae0b764f23fa3359f39b88d889205940d3c60f.tar.gz
flashrom-2dae0b764f23fa3359f39b88d889205940d3c60f.tar.bz2
flashrom-2dae0b764f23fa3359f39b88d889205940d3c60f.zip
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 <thomas.heijligen@secunet.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/58618 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'Makefile.d/utsname_test.c')
-rw-r--r--Makefile.d/utsname_test.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile.d/utsname_test.c b/Makefile.d/utsname_test.c
new file mode 100644
index 000000000..7bc666527
--- /dev/null
+++ b/Makefile.d/utsname_test.c
@@ -0,0 +1,9 @@
+#include <sys/utsname.h>
+struct utsname osinfo;
+int main(int argc, char **argv)
+{
+ (void)argc;
+ (void)argv;
+ uname(&osinfo);
+ return 0;
+}