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

Denis Carikli (GNUtoo@no-log.org) gerrit at coreboot.org
Tue Feb 23 00:40:40 CET 2016


Denis Carikli (GNUtoo at 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 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 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



More information about the coreboot-gerrit mailing list