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 <mail@qtux.eu> Reviewed-on: https://review.coreboot.org/26450 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
parent
e2c2a4c42b
commit
d88cd70877
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue