Skip to contentSkip to conversation

libtracefs: Force creation of lib/tracefs directory

PATCH New Steven Rostedt 1 participant 1 message Dec 9, 2020 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libtracefs: Force creation of lib/tracefs directory

From: "Steven Rostedt (VMware)" <[email protected]>

If the $(obj)/lib/tracefs directory does not exist, create it before building the libraries. Otherwise the build will fail due to the directory not existing.

---
 Makefile | 2 ++
 1 file changed, 2 insertions(+)
Makefile +2 -0
index 5d11abc..02b3d25 100644
@@ -277,9 +277,11 @@ $(bdir):
 LIBS = -L$(obj)/lib/traceevent -ltraceevent
 
 $(LIBTRACEFS_STATIC): force
+	$(Q)mkdir -p $(bdir)
 	$(Q)$(MAKE) -C $(src)/src $@
 
 $(bdir)/libtracefs.so.$(TRACEFS_VERSION): force
+	$(Q)mkdir -p $(bdir)
 	$(Q)$(MAKE) -C $(src)/src $@
 
 clean:
Signature · 1 line
2.25.4