diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@no-log.org> | 2015-11-11 05:27:25 +0100 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2018-03-06 22:19:47 +0000 |
commit | 3ef241f0c8d8a9b112394989ea632fbe84e856ff (patch) | |
tree | af1972c43aebc4db0e05d786d8bee3b9ea8b9889 | |
parent | 2be3bdd748e886c1b566d4fd6f4e6ef4e49596ec (diff) |
cbfstool: Add install target to Makefile
Change-Id: I5df7033e1e52c78e97cdbd26aef2d7824ea67f8b
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
Reviewed-on: https://review.coreboot.org/12403
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
-rw-r--r-- | util/cbfstool/Makefile | 12 |
1 files changed, 12 insertions, 0 deletions
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 |