[Skiboot] [PATCH] external/ffspart: define $(sbindir) for Makefile

Dan Horák dan at danny.cz
Mon Aug 10 22:01:55 AEST 2020


Right now the $(sbindir) variable isn't defined, so the binary gets installed
directly into $(DESTDIR).

Signed-off-by: Dan Horák <dan at danny.cz>
---
 external/ffspart/rules.mk | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/external/ffspart/rules.mk b/external/ffspart/rules.mk
index 40972c688..e006dc5b7 100644
--- a/external/ffspart/rules.mk
+++ b/external/ffspart/rules.mk
@@ -10,6 +10,9 @@ LIBFLASH_SRC := $(addprefix libflash/,$(LIBFLASH_FILES))
 OBJS	+= $(LIBFLASH_OBJS)
 OBJS	+= common-arch_flash.o
 
+prefix = /usr/local/
+sbindir = $(prefix)/sbin
+
 CC	= $(CROSS_COMPILE)gcc
 
 FFSPART_VERSION ?= $(shell ./make_version.sh $(EXE))
-- 
2.26.2



More information about the Skiboot mailing list