Denis Carikli (GNUtoo@no-log.org) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/12403
-gerrit
commit ae29cb5a057321fcc416a599bef07abdd2a9f559 Author: Denis 'GNUtoo' Carikli GNUtoo@no-log.org Date: Wed Nov 11 05:27:25 2015 +0100
cbfstool: Makefile: Add install target
Change-Id: I5df7033e1e52c78e97cdbd26aef2d7824ea67f8b Signed-off-by: Denis 'GNUtoo' Carikli GNUtoo@no-log.org --- util/cbfstool/Makefile | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-)
diff --git a/util/cbfstool/Makefile b/util/cbfstool/Makefile index 61a1a63..60a8d24 100644 --- a/util/cbfstool/Makefile +++ b/util/cbfstool/Makefile @@ -3,11 +3,15 @@ objutil ?= $(top)/util
CONFIG_FMD_GENPARSER := y
-HOSTCC ?= $(CC) +HOSTCC ?= $(CC) +PREFIX ?= /usr/local +INSTALL ?= /usr/bin/install OBJCOPY ?= objcopy
-.PHONY: all -all: $(objutil)/cbfstool/cbfstool \ +all: cbfstool + +.PHONY: cbfstool +cbfstool: $(objutil)/cbfstool/cbfstool \ $(objutil)/cbfstool/fmaptool \ $(objutil)/cbfstool/rmodtool \
@@ -27,6 +31,13 @@ linux_trampoline.c: linux_trampoline.S mv trampoline.c linux_trampoline.c rm linux_trampoline trampoline
+.PHONY: install +install: cbfstool + mkdir -p $(DESTDIR)$(PREFIX)/bin + $(INSTALL) cbfstool $(DESTDIR)$(PREFIX)/bin + $(INSTALL) fmaptool $(DESTDIR)$(PREFIX)/bin + $(INSTALL) rmodtool $(DESTDIR)$(PREFIX)/bin + .SILENT:
include Makefile.inc