summaryrefslogtreecommitdiff
path: root/util/marvell/doimage_mv/Makefile.inc
diff options
context:
space:
mode:
authorKonrad Adamczyk <konrada@google.com>2023-04-11 10:26:12 +0000
committerFelix Held <felix-coreboot@felixheld.de>2023-05-22 19:24:27 +0000
commitd6b4db159b60089c3d6e9aad993804ea319047e2 (patch)
treef3cf05652b9757bf2d72af2ea628a6e804b4fdaa /util/marvell/doimage_mv/Makefile.inc
parent9203f5ee8543ab5984b70a7464213cdbda08004d (diff)
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 <konrada@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/74474 Reviewed-by: Jakub Czapiga <jacz@semihalf.com> Reviewed-by: Grzegorz Bernacki Reviewed-by: Robert Zieba <robertzieba@google.com> Reviewed-by: Elyes Haouas <ehaouas@noos.fr> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util/marvell/doimage_mv/Makefile.inc')
-rw-r--r--util/marvell/doimage_mv/Makefile.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/marvell/doimage_mv/Makefile.inc b/util/marvell/doimage_mv/Makefile.inc
index 4020166261..3f4f528abd 100644
--- a/util/marvell/doimage_mv/Makefile.inc
+++ b/util/marvell/doimage_mv/Makefile.inc
@@ -1,8 +1,9 @@
## SPDX-License-Identifier: GPL-2.0-only
+TOP = $(abspath ../../..)
DOIMAGE_FOLDER = marvell/doimage_mv
DOIMAGE_BINARY = doimage
-CFLAGS = -g -O1 -I./../inc -DMV_CPU_LE
+CFLAGS = -g -O1 -I./../inc -DMV_CPU_LE -I $(TOP)/src/commonlib/bsd/include
$(objutil)/$(DOIMAGE_FOLDER):
mkdir -p $@