lkml.org 
[lkml]   [2020]   [Mar]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] tools/bootconfig: Makefile: Create destination directory
Date
From: Adriana Kobylak <anoo@us.ibm.com>

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.

Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
---
tools/bootconfig/Makefile | 1 +
1 file changed, 1 insertion(+)

diff --git a/tools/bootconfig/Makefile b/tools/bootconfig/Makefile
index a6146ac..470b6f0 100644
--- a/tools/bootconfig/Makefile
+++ b/tools/bootconfig/Makefile
@@ -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
--
1.8.3.1
\
 
 \ /
  Last update: 2020-03-16 16:50    [W:0.030 / U:6.608 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site