build system: add Chrome OS futility to tools

Change-Id: I08925d110c6faa9e37107d63bfa75d0ab677d379
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-on: https://review.coreboot.org/13545
Tested-by: build bot (Jenkins)
Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
Patrick Georgi
2016-02-01 12:03:04 +01:00
committed by Martin Roth
parent f92068d9c2
commit bda8a04b01
3 changed files with 39 additions and 1 deletions

21
util/futility/Makefile Normal file
View File

@@ -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

View File

@@ -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 $@