aboutsummaryrefslogtreecommitdiff
path: root/util/cbfstool
diff options
context:
space:
mode:
Diffstat (limited to 'util/cbfstool')
-rw-r--r--util/cbfstool/Makefile12
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