From d88cd708772fcd22ffa12191c85755c28dd47bbd Mon Sep 17 00:00:00 2001 From: Matthias Gazzari Date: Mon, 21 May 2018 20:54:41 +0200 Subject: util/intelmetool: Add Makefile target for OLDARC definition This allows one to compile intelmetool with support for older ME versions by setting the OLDARC preprocessor definition. For example, compiling with OLDARC enabled avoids the "ME: GET FW VERSION message failed:" error on the Lenovo X201i (ME version 6.0). Change-Id: I5eb0da7663e795f790e2723bb334447380724b56 Signed-off-by: Matthias Gazzari Reviewed-on: https://review.coreboot.org/26450 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Martin Roth --- util/intelmetool/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/util/intelmetool/Makefile b/util/intelmetool/Makefile index b455a0ea86..d8c056c3a7 100644 --- a/util/intelmetool/Makefile +++ b/util/intelmetool/Makefile @@ -38,6 +38,9 @@ endif all: pciutils dep $(PROGRAM) +oldarc: CFLAGS += -DOLDARC +oldarc: all + $(PROGRAM): $(OBJS) $(CC) $(CFLAGS) -o $(PROGRAM) $(OBJS) $(LDFLAGS) @@ -83,6 +86,6 @@ install: $(PROGRAM) mkdir -p $(DESTDIR)$(PREFIX)/sbin $(INSTALL) $(PROGRAM) $(DESTDIR)$(PREFIX)/sbin -.PHONY: all clean distclean dep pciutils +.PHONY: all clean distclean dep pciutils oldarc -include .dependencies -- cgit v1.2.3