From d6b4db159b60089c3d6e9aad993804ea319047e2 Mon Sep 17 00:00:00 2001 From: Konrad Adamczyk Date: Tue, 11 Apr 2023 10:26:12 +0000 Subject: util: Use common ARRAY_SIZE define Remove duplicated definitions of ARRAY_SIZE macro across util/ dir. Instead of duplicates, use the one from commonlib/bsd/helpers.h file. BUG=b:231765496 TEST=make -C util/cbfstool; make -C util/cbmem; make -C util/intelmetool; make -C util/superiotool Change-Id: I29b776586b4f0548d4026b2ac77095791fc9f3a3 Signed-off-by: Konrad Adamczyk Reviewed-on: https://review.coreboot.org/c/coreboot/+/74474 Reviewed-by: Jakub Czapiga Reviewed-by: Grzegorz Bernacki Reviewed-by: Robert Zieba Reviewed-by: Elyes Haouas Tested-by: build bot (Jenkins) --- util/intelmetool/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'util/intelmetool/Makefile') 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 -- cgit v1.2.3