1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-01 14:11:15 +02:00

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>
This commit is contained in:
Thomas Heijligen
2021-10-26 12:44:36 +02:00
committed by Nico Huber
parent 47caa9ceb1
commit 2dae0b764f
4 changed files with 31 additions and 47 deletions

View File

@ -130,19 +130,6 @@ enum ftdi_chip_type type = TYPE_232H;
endef
export FTDI_232H_TEST
define UTSNAME_TEST
#include <sys/utsname.h>
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 <mtd/mtd-user.h>
@ -181,18 +168,6 @@ int main(int argc, char **argv)
endef
export LINUX_I2C_TEST
define CLOCK_GETTIME_TEST
#include <time.h>
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 <ni845x.h>