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>
This commit is contained in:
parent
2be3bdd748
commit
3ef241f0c8
|
@ -4,6 +4,9 @@ objutil ?= $(top)/util
|
||||||
CONFIG_FMD_GENPARSER ?= n
|
CONFIG_FMD_GENPARSER ?= n
|
||||||
|
|
||||||
HOSTCC ?= $(CC)
|
HOSTCC ?= $(CC)
|
||||||
|
PREFIX ?= /usr/local
|
||||||
|
BINDIR ?= $(PREFIX)/bin
|
||||||
|
INSTALL ?= /usr/bin/install
|
||||||
OBJCOPY ?= objcopy
|
OBJCOPY ?= objcopy
|
||||||
|
|
||||||
VBOOT_SOURCE ?= $(top)/3rdparty/vboot
|
VBOOT_SOURCE ?= $(top)/3rdparty/vboot
|
||||||
|
@ -39,6 +42,15 @@ linux_trampoline.c: linux_trampoline.S
|
||||||
mv trampoline.c linux_trampoline.c
|
mv trampoline.c linux_trampoline.c
|
||||||
rm linux_trampoline trampoline
|
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:
|
.SILENT:
|
||||||
|
|
||||||
include Makefile.inc
|
include Makefile.inc
|
||||||
|
|
Loading…
Reference in New Issue