From 5c2b5fcf2f9c9259938fd03cfa3ea06b36a007f0 Mon Sep 17 00:00:00 2001 From: Tim Crawford Date: Mon, 3 Jan 2022 10:12:38 -0700 Subject: util: Allow installing to a build root Modify util Makefiles to allow installing to a build root specified by DESTDIR. Allows using the `install` target for packaging. Change-Id: I3a31ea0fde9922731e1621dcc8f94b2c1326c93c Signed-off-by: Tim Crawford Reviewed-on: https://review.coreboot.org/c/coreboot/+/60540 Reviewed-by: Paul Menzel Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi Reviewed-by: Felix Singer --- util/ectool/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'util/ectool') diff --git a/util/ectool/Makefile b/util/ectool/Makefile index 1ef74d25f2..8670def922 100644 --- a/util/ectool/Makefile +++ b/util/ectool/Makefile @@ -22,7 +22,8 @@ $(PROGRAM): ec.o ectool.o $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) install: $(PROGRAM) - $(INSTALL) $(PROGRAM) $(PREFIX)/sbin + $(INSTALL) -d $(DESTDIR)$(PREFIX)/sbin + $(INSTALL) $(PROGRAM) $(DESTDIR)$(PREFIX)/sbin clean: rm -f *.o $(PROGRAM) junit.xml -- cgit v1.2.3