[coreboot-gerrit] Patch set updated for coreboot: cbfstool: Makefile: Add install target

Stefan Reinauer (stefan.reinauer@coreboot.org) gerrit at coreboot.org
Thu Nov 12 01:04:37 CET 2015


Stefan Reinauer (stefan.reinauer at coreboot.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/12403

-gerrit

commit 92413637207a83849bf7fcbf6a0e89af8937ddad
Author: Denis 'GNUtoo' Carikli <GNUtoo at 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 at 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 64db0b3..662a5a4 100644
--- a/util/cbfstool/Makefile
+++ b/util/cbfstool/Makefile
@@ -3,10 +3,14 @@ objutil ?= $(top)/util
 
 CONFIG_FMD_GENPARSER := y
 
-HOSTCC ?= $(CC)
+HOSTCC  ?= $(CC)
+INSTALL ?= /usr/bin/install
+PREFIX  ?= /usr/local
 
-.PHONY: all
-all: $(objutil)/cbfstool/cbfstool \
+all: cbfstool
+
+.PHONY: cbfstool
+cbfstool: $(objutil)/cbfstool/cbfstool \
 	$(objutil)/cbfstool/fmaptool \
 	$(objutil)/cbfstool/rmodtool \
 
@@ -17,4 +21,11 @@ clean:
 	$(RM) $(objutil)/cbfstool/fmaptool $(fmapobj)
 	$(RM) $(objutil)/cbfstool/rmodtool $(rmodobj)
 
+.PHONY: install
+install: cbfstool
+	$(INSTALL) -d $(DESTDIR)$(PREFIX)/bin
+	$(INSTALL) cbfstool $(DESTDIR)$(PREFIX)/bin
+	$(INSTALL) fmaptool $(DESTDIR)$(PREFIX)/bin
+	$(INSTALL) rmodtool $(DESTDIR)$(PREFIX)/bin
+
 include Makefile.inc



More information about the coreboot-gerrit mailing list