From bda8a04b0105f2b097b07fa336891af6981541cb Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Mon, 1 Feb 2016 12:03:04 +0100 Subject: build system: add Chrome OS futility to tools Change-Id: I08925d110c6faa9e37107d63bfa75d0ab677d379 Signed-off-by: Patrick Georgi Reviewed-on: https://review.coreboot.org/13545 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber --- util/futility/Makefile | 21 +++++++++++++++++++++ util/futility/Makefile.inc | 13 +++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 util/futility/Makefile create mode 100644 util/futility/Makefile.inc (limited to 'util/futility') diff --git a/util/futility/Makefile b/util/futility/Makefile new file mode 100644 index 0000000000..3ce45ed1ee --- /dev/null +++ b/util/futility/Makefile @@ -0,0 +1,21 @@ +top ?= $(abspath ../..) +objutil ?= $(top)/util + +HOSTCC ?= $(CC) +VB_SOURCE ?= $(top)/3rdparty/vboot + +.PHONY: all +all: $(objutil)/futility/futility + +.PHONY: clean +clean: + $(RM) $(objutil)/futility/futility + $(RM) -r $(objutil)/futility/build + +ifneq ($(V),1) +ifneq ($(Q),) +.SILENT: +endif +endif + +include Makefile.inc diff --git a/util/futility/Makefile.inc b/util/futility/Makefile.inc new file mode 100644 index 0000000000..26b218d742 --- /dev/null +++ b/util/futility/Makefile.inc @@ -0,0 +1,13 @@ +additional-dirs += $(objutil)/futility + +$(objutil)/futility/build/futility/futility: + @printf " MAKE $(subst $(objutil)/,,$(@))\n" + $(MAKE) -C $(VB_SOURCE) \ + BUILD=$(abspath $@/../..) \ + CC="$(HOSTCC)" \ + V=$(V) \ + $(abspath $@) + +$(objutil)/futility/futility: $(objutil)/futility/build/futility/futility + cp $< $@.tmp + mv $@.tmp $@ -- cgit v1.2.3