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.include | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'Makefile.include') diff --git a/Makefile.include b/Makefile.include index 2b5a3447d..0ea1234e9 100644 --- a/Makefile.include +++ b/Makefile.include @@ -130,19 +130,6 @@ enum ftdi_chip_type type = TYPE_232H; endef export FTDI_232H_TEST -define UTSNAME_TEST -#include -struct utsname osinfo; -int main(int argc, char **argv) -{ - (void) argc; - (void) argv; - uname (&osinfo); - return 0; -} -endef -export UTSNAME_TEST - define LINUX_MTD_TEST #include @@ -181,18 +168,6 @@ int main(int argc, char **argv) endef export LINUX_I2C_TEST -define CLOCK_GETTIME_TEST -#include - -int main(int argc, char **argv) -{ - struct timespec res; - clock_gettime(CLOCK_REALTIME, &res); - return 0; -} -endef -export CLOCK_GETTIME_TEST - define NI845X_TEST #include -- cgit v1.2.3