From 3ef241f0c8d8a9b112394989ea632fbe84e856ff Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Wed, 11 Nov 2015 05:27:25 +0100 Subject: cbfstool: Add install target to Makefile Change-Id: I5df7033e1e52c78e97cdbd26aef2d7824ea67f8b Signed-off-by: Denis 'GNUtoo' Carikli Signed-off-by: Paul Menzel Reviewed-on: https://review.coreboot.org/12403 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- util/cbfstool/Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/util/cbfstool/Makefile b/util/cbfstool/Makefile index caa8c7daa4..ba8fdffb89 100644 --- a/util/cbfstool/Makefile +++ b/util/cbfstool/Makefile @@ -4,6 +4,9 @@ objutil ?= $(top)/util CONFIG_FMD_GENPARSER ?= n HOSTCC ?= $(CC) +PREFIX ?= /usr/local +BINDIR ?= $(PREFIX)/bin +INSTALL ?= /usr/bin/install OBJCOPY ?= objcopy VBOOT_SOURCE ?= $(top)/3rdparty/vboot @@ -39,6 +42,15 @@ linux_trampoline.c: linux_trampoline.S mv trampoline.c linux_trampoline.c rm linux_trampoline trampoline +.PHONY: install +install: all + mkdir -p $(DESTDIR)$(BINDIR) + $(INSTALL) cbfstool $(DESTDIR)$(BINDIR) + $(INSTALL) fmaptool $(DESTDIR)$(BINDIR) + $(INSTALL) rmodtool $(DESTDIR)$(BINDIR) + $(INSTALL) ifwitool $(DESTDIR)$(BINDIR) + $(INSTALL) cbfs-compression-tool $(DESTDIR)$(BINDIR) + .SILENT: include Makefile.inc -- cgit v1.2.3