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

Stefan Reinauer (stefan.reinauer@coreboot.org) gerrit at coreboot.org
Thu Nov 12 01:04:49 CET 2015


Stefan Reinauer (stefan.reinauer at coreboot.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/12404

-gerrit

commit 1224cef5de1d49564fa646792ac36aed04a0fb61
Author: Denis 'GNUtoo' Carikli <GNUtoo at no-log.org>
Date:   Wed Nov 11 05:40:11 2015 +0100

    cbmem: Makefile: Add install target
    
    Change-Id: Ib20481e43e6ca5b56c630cdc0eb7b1b01311cbb6
    Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo at no-log.org>
---
 util/cbmem/Makefile | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/util/cbmem/Makefile b/util/cbmem/Makefile
index 113c690..ef45bed 100644
--- a/util/cbmem/Makefile
+++ b/util/cbmem/Makefile
@@ -13,11 +13,13 @@
 ## GNU General Public License for more details.
 ##
 
-PROGRAM = cbmem
-ROOT = ../../src
-CC     ?= $(CROSS_COMPILE)gcc
-CFLAGS ?= -O2
-CFLAGS += -Wall -Werror
+PROGRAM   = cbmem
+ROOT      = ../../src
+CC       ?= $(CROSS_COMPILE)gcc
+INSTALL  ?= /usr/bin/install
+PREFIX   ?= /usr/local
+CFLAGS   ?= -O2
+CFLAGS   += -Wall -Werror
 CPPFLAGS += -I $(ROOT)/commonlib/include
 
 OBJS = $(PROGRAM).o
@@ -29,6 +31,10 @@ $(PROGRAM): $(OBJS)
 clean:
 	rm -f $(PROGRAM) *.o *~ junit.xml
 
+install: $(PROGRAM)
+	$(INSTALL) -d $(DESTDIR)$(PREFIX)/sbin/
+	$(INSTALL) cbmem $(DESTDIR)$(PREFIX)/sbin/
+
 distclean: clean
 	rm -f .dependencies
 



More information about the coreboot-gerrit mailing list