diff options
Diffstat (limited to 'util/intelmetool')
-rw-r--r-- | util/intelmetool/Makefile | 4 | ||||
-rw-r--r-- | util/intelmetool/me_status.c | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/util/intelmetool/Makefile b/util/intelmetool/Makefile index a97f380d60..375118576a 100644 --- a/util/intelmetool/Makefile +++ b/util/intelmetool/Makefile @@ -2,10 +2,12 @@ PROGRAM = intelmetool +TOP ?= $(abspath ../..) CC ?= gcc INSTALL ?= /usr/bin/env install PREFIX ?= /usr/local -CFLAGS ?= -O0 -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-unused-function +CFLAGS ?= -O0 -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-unused-function \ + -I $(TOP)/src/commonlib/bsd/include LDFLAGS += -lpci -lz OBJS = intelmetool.o me.o me_status.o mmap.o rcba.o msr.o diff --git a/util/intelmetool/me_status.c b/util/intelmetool/me_status.c index d186f96511..a6429d0616 100644 --- a/util/intelmetool/me_status.c +++ b/util/intelmetool/me_status.c @@ -1,10 +1,9 @@ /* SPDX-License-Identifier: GPL-2.0-only */ #include <stdio.h> +#include <commonlib/bsd/helpers.h> #include "me.h" -#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0])) - /* HFS1[3:0] Current Working State Values */ static const char *me_cws_values[] = { [ME_HFS_CWS_RESET] = "Reset", |