Skip to contentSkip to conversation

tools/bootconfig: Makefile: Create destination directory

PATCH In review Adriana Kobylak 2 participants 2 messages Mar 16, 2020 – Mar 17, 2020 Extra boot config

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/bootconfig: Makefile: Create destination directory

From: Adriana Kobylak <[email protected]>

The DESTDIR path may not be available to the caller, such as compiling the bootconfig tool from a Yocto native recipe. Have the Makefile create the directory instead.

---
 tools/bootconfig/Makefile | 1 +
 1 file changed, 1 insertion(+)
tools/bootconfig/Makefile +1 -0
index a6146ac..470b6f0 100644
@@ -14,6 +14,7 @@ bootconfig: ../../lib/bootconfig.c main.c $(HEADER)
 	$(CC) $(filter %.c,$^) $(CFLAGS) -o $@
 
 install: $(PROGS)
+	install -d $(DESTDIR)$(bindir)
 	install bootconfig $(DESTDIR)$(bindir)
 
 test: bootconfig
Signature · 1 line
1.8.3.1
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · On Mon, 16 Mar 2020 10:49:26 -0500 Adriana Kobylak <[email protected]> wrote:

From: Adriana Kobylak <[email protected]>

The DESTDIR path may not be available to the caller, such as compiling the bootconfig tool from a Yocto native recipe. Have the Makefile create the directory instead.

OK, this looks good to me.

Thanks!

Quoted 21 lines
---
 tools/bootconfig/Makefile | 1 +
 1 file changed, 1 insertion(+)
tools/bootconfig/Makefile +1 -0
index a6146ac..470b6f0 100644
@@ -14,6 +14,7 @@ bootconfig: ../../lib/bootconfig.c main.c $(HEADER)
 	$(CC) $(filter %.c,$^) $(CFLAGS) -o $@
 
 install: $(PROGS)
+	install -d $(DESTDIR)$(bindir)
 	install bootconfig $(DESTDIR)$(bindir)
 
 test: bootconfig
Signature · 1 line
1.8.3.1
Signature · 1 line
Masami Hiramatsu <[email protected]>