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:
parent
f92068d9c2
commit
bda8a04b01
|
@ -60,6 +60,7 @@ subdirs-y += src/ec/acpi $(wildcard src/ec/*/*) $(wildcard src/southbridge/*/*)
|
||||||
subdirs-y += $(wildcard src/soc/*/*) $(wildcard src/northbridge/*/*)
|
subdirs-y += $(wildcard src/soc/*/*) $(wildcard src/northbridge/*/*)
|
||||||
subdirs-y += src/superio $(wildcard src/drivers/*) src/cpu src/vendorcode
|
subdirs-y += src/superio $(wildcard src/drivers/*) src/cpu src/vendorcode
|
||||||
subdirs-y += util/cbfstool util/sconfig util/nvramtool util/broadcom
|
subdirs-y += util/cbfstool util/sconfig util/nvramtool util/broadcom
|
||||||
|
subdirs-y += util/futility
|
||||||
subdirs-y += $(wildcard src/arch/*)
|
subdirs-y += $(wildcard src/arch/*)
|
||||||
subdirs-y += src/mainboard/$(MAINBOARDDIR)
|
subdirs-y += src/mainboard/$(MAINBOARDDIR)
|
||||||
subdirs-y += payloads/external
|
subdirs-y += payloads/external
|
||||||
|
@ -396,6 +397,8 @@ $(AMDFWTOOL): $(top)/util/amdfwtool/amdfwtool.c
|
||||||
|
|
||||||
CBOOTIMAGE:=$(objutil)/cbootimage/cbootimage
|
CBOOTIMAGE:=$(objutil)/cbootimage/cbootimage
|
||||||
|
|
||||||
|
FUTILITY:=$(objutil)/futility/futility
|
||||||
|
|
||||||
subdirs-y += util/nvidia
|
subdirs-y += util/nvidia
|
||||||
|
|
||||||
BIMGTOOL:=$(objutil)/bimgtool/bimgtool
|
BIMGTOOL:=$(objutil)/bimgtool/bimgtool
|
||||||
|
@ -550,7 +553,7 @@ crosstools-power8: clean-for-update
|
||||||
crossgcc-clean: clean-for-update
|
crossgcc-clean: clean-for-update
|
||||||
$(MAKE) -C util/crossgcc clean
|
$(MAKE) -C util/crossgcc clean
|
||||||
|
|
||||||
tools: $(objutil)/kconfig/conf $(CBFSTOOL) $(FMAPTOOL) $(RMODTOOL) $(objutil)/nvramtool/nvramtool $(ROMCC_BIN) $(objutil)/sconfig/sconfig $(IFDTOOL) $(IFDFAKE) $(CBOOTIMAGE) $(AMDFWTOOL)
|
tools: $(objutil)/kconfig/conf $(CBFSTOOL) $(FMAPTOOL) $(RMODTOOL) $(objutil)/nvramtool/nvramtool $(ROMCC_BIN) $(objutil)/sconfig/sconfig $(IFDTOOL) $(IFDFAKE) $(CBOOTIMAGE) $(AMDFWTOOL) $(FUTILITY)
|
||||||
|
|
||||||
test-toolchain:
|
test-toolchain:
|
||||||
ifeq ($(COMPILER_OUT_OF_DATE),1)
|
ifeq ($(COMPILER_OUT_OF_DATE),1)
|
||||||
|
@ -922,6 +925,7 @@ junit.xml:
|
||||||
TOOLLIST= \
|
TOOLLIST= \
|
||||||
cbmem \
|
cbmem \
|
||||||
ectool \
|
ectool \
|
||||||
|
futility \
|
||||||
inteltool \
|
inteltool \
|
||||||
intelvbttool \
|
intelvbttool \
|
||||||
nvramtool \
|
nvramtool \
|
||||||
|
|
|
@ -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
|
|
@ -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 $@
|
Loading…
Reference in New Issue