From c5e905fa21a6c729b434ac7f9b5fec45a98c6cec Mon Sep 17 00:00:00 2001 From: Maximilian Brune Date: Thu, 26 Mar 2026 16:18:52 +0100 Subject: [PATCH] util/mec152x/Makefile: Include commonlib/bsd/compiler.h cbfstool/flashmap/kv_pair.h uses the `__printf` macro. So we need to include the header file defining `__printf` in the compilation. The tooling can now be compiled on its own outside the coreboot build system. Change-Id: I5a622b50684c42773e66e6d9145d5de9858c9e9a Signed-off-by: Maximilian Brune Reviewed-on: https://review.coreboot.org/c/coreboot/+/91887 Reviewed-by: Patrick Rudolph Tested-by: build bot (Jenkins) --- util/mec152x/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/util/mec152x/Makefile b/util/mec152x/Makefile index 43b350145c..fea5f364a0 100644 --- a/util/mec152x/Makefile +++ b/util/mec152x/Makefile @@ -13,6 +13,7 @@ HOSTCFLAGS ?= $(CFLAGS) HOSTCFLAGS += -Wall -Wextra -MMD -MP -O3 HOSTCFLAGS += -I $(TOP)/util/cbfstool/flashmap/ HOSTCFLAGS += -I $(ROOT)/commonlib/bsd/include +HOSTCFLAGS += -include $(TOP)/src/commonlib/bsd/include/commonlib/bsd/compiler.h HOSTLDFLAGS ?= $(LDFLAGS)