From 61486b506d5f3be1ea02aa82df290bd7c18b1fda Mon Sep 17 00:00:00 2001 From: Paul Kocialkowski Date: Sun, 24 Jul 2016 12:14:38 +0200 Subject: Use VBOOT_SOURCE instead of hardcoding vboot path This replaces all occurrences of a hardcoded vboot path to the VBOOT_SOURCE variable, that may be overridden from the command line, witch fallback to the source from 3rdparty. Change-Id: Ia57d498d38719cc71e17060b76b0162c4ab363ed Signed-off-by: Paul Kocialkowski Reviewed-on: https://review.coreboot.org/15825 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi Reviewed-by: Julius Werner --- util/cbfstool/Makefile | 2 ++ util/cbfstool/Makefile.inc | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'util/cbfstool') diff --git a/util/cbfstool/Makefile b/util/cbfstool/Makefile index 320485749b..d6249bc24e 100644 --- a/util/cbfstool/Makefile +++ b/util/cbfstool/Makefile @@ -6,6 +6,8 @@ CONFIG_FMD_GENPARSER ?= n HOSTCC ?= $(CC) OBJCOPY ?= objcopy +VBOOT_SOURCE ?= $(top)/3rdparty/vboot + .PHONY: all all: cbfstool fmaptool rmodtool ifwitool diff --git a/util/cbfstool/Makefile.inc b/util/cbfstool/Makefile.inc index 8c9a2c01bd..d666f6a06f 100644 --- a/util/cbfstool/Makefile.inc +++ b/util/cbfstool/Makefile.inc @@ -72,8 +72,8 @@ TOOLCPPFLAGS += -I$(top)/util/cbfstool TOOLCPPFLAGS += -I$(objutil)/cbfstool TOOLCPPFLAGS += -I$(top)/src/commonlib/include TOOLCPPFLAGS += -DNEED_VB2_SHA_LIBRARY -TOOLCPPFLAGS += -I$(top)/3rdparty/vboot/firmware/include -TOOLCPPFLAGS += -I$(top)/3rdparty/vboot/firmware/2lib/include +TOOLCPPFLAGS += -I$(VBOOT_SOURCE)/firmware/include +TOOLCPPFLAGS += -I$(VBOOT_SOURCE)/firmware/2lib/include # UEFI header file support. It's not pretty, but that's what we currently # have right now. TOOLCPPFLAGS += -I$(top)/src @@ -112,7 +112,7 @@ $(objutil)/cbfstool/%.o: $(top)/util/cbfstool/lzma/C/%.c printf " HOSTCC $(subst $(objutil)/,,$(@))\n" $(HOSTCC) $(TOOLCPPFLAGS) $(TOOLCFLAGS) $(HOSTCFLAGS) -c -o $@ $< -$(objutil)/cbfstool/%.o: $(top)/3rdparty/vboot/firmware/2lib/%.c +$(objutil)/cbfstool/%.o: $(VBOOT_SOURCE)/firmware/2lib/%.c printf " HOSTCC $(subst $(objutil)/,,$(@))\n" $(HOSTCC) $(TOOLCPPFLAGS) $(TOOLCFLAGS) $(HOSTCFLAGS) -c -o $@ $< -- cgit v1.2.3