linux-trace-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] libtracefs: Cleaning up the build
@ 2020-12-15 16:40 Steven Rostedt
  2020-12-15 16:40 ` [PATCH 1/3] libtracefs: Move do_install_* macros to utils.mk Steven Rostedt
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Steven Rostedt @ 2020-12-15 16:40 UTC (permalink / raw)
  To: linux-trace-devel

There are a few more clean ups for the libtracefs build system.


Steven Rostedt (VMware) (3):
      libtracefs: Move do_install_* macros to utils.mk
      libtracefs: Print installing messages
      libtracefs: Remove KernelShark relics from build

----
 Makefile         | 19 -------------------
 scripts/utils.mk | 52 ++++++++++++++++++++++++----------------------------
 2 files changed, 24 insertions(+), 47 deletions(-)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/3] libtracefs: Move do_install_* macros to utils.mk
  2020-12-15 16:40 [PATCH 0/3] libtracefs: Cleaning up the build Steven Rostedt
@ 2020-12-15 16:40 ` Steven Rostedt
  2020-12-15 16:40 ` [PATCH 2/3] libtracefs: Print installing messages Steven Rostedt
  2020-12-15 16:40 ` [PATCH 3/3] libtracefs: Remove KernelShark relics from build Steven Rostedt
  2 siblings, 0 replies; 4+ messages in thread
From: Steven Rostedt @ 2020-12-15 16:40 UTC (permalink / raw)
  To: linux-trace-devel

From: "Steven Rostedt (VMware)" <rostedt@goodmis.org>

The do_install_* macros are in the main Makefile, and they overwrite some of
the same macros in utils.mk. Move those macros into the utils.mk and delete
the ones that were not used.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
---
 Makefile         | 19 -------------------
 scripts/utils.mk | 25 ++++++++++++++-----------
 2 files changed, 14 insertions(+), 30 deletions(-)

diff --git a/Makefile b/Makefile
index 5e7831407427..5a9d33455143 100644
--- a/Makefile
+++ b/Makefile
@@ -206,25 +206,6 @@ endef
 $(PKG_CONFIG_FILE) : ${PKG_CONFIG_SOURCE_FILE}.template
 	$(Q) $(call do_make_pkgconfig_file,$(prefix))
 
-define do_install_mkdir
-	if [ ! -d '$(DESTDIR_SQ)$1' ]; then		\
-		$(INSTALL) -d -m 755 '$(DESTDIR_SQ)$1';	\
-	fi
-endef
-
-define do_install
-	$(call do_install_mkdir,$2);			\
-	$(INSTALL) $(if $3,-m $3,) $1 '$(DESTDIR_SQ)$2'
-endef
-
-define do_install_pkgconfig_file
-	if [ -n "${pkgconfig_dir}" ]; then 					\
-		$(call do_install,$(PKG_CONFIG_FILE),$(pkgconfig_dir),644); 	\
-	else 									\
-		(echo Failed to locate pkg-config directory) 1>&2;		\
-	fi
-endef
-
 tags:	force
 	$(RM) tags
 	$(call find_tag_files) | xargs ctags --extra=+f --c-kinds=+px
diff --git a/scripts/utils.mk b/scripts/utils.mk
index 7967a4f290d2..71985e6a28b1 100644
--- a/scripts/utils.mk
+++ b/scripts/utils.mk
@@ -119,18 +119,21 @@ define update_dir
 	fi);
 endef
 
+define do_install_mkdir
+	if [ ! -d '$(DESTDIR_SQ)$1' ]; then		\
+		$(INSTALL) -d -m 755 '$(DESTDIR_SQ)$1';	\
+	fi
+endef
+
 define do_install
-	$(print_install)				\
-	if [ ! -d '$(DESTDIR_SQ)$2' ]; then		\
-		$(INSTALL) -d -m 755 '$(DESTDIR_SQ)$2';	\
-	fi;						\
-	$(INSTALL) $1 '$(DESTDIR_SQ)$2'
+	$(call do_install_mkdir,$2);			\
+	$(INSTALL) $(if $3,-m $3,) $1 '$(DESTDIR_SQ)$2'
 endef
 
-define do_install_data
-	$(print_install)				\
-	if [ ! -d '$(DESTDIR_SQ)$2' ]; then		\
-		$(INSTALL) -d -m 755 '$(DESTDIR_SQ)$2';	\
-	fi;						\
-	$(INSTALL) -m 644 $1 '$(DESTDIR_SQ)$2'
+define do_install_pkgconfig_file
+	if [ -n "${pkgconfig_dir}" ]; then 					\
+		$(call do_install,$(PKG_CONFIG_FILE),$(pkgconfig_dir),644); 	\
+	else 									\
+		(echo Failed to locate pkg-config directory) 1>&2;		\
+	fi
 endef
-- 
2.29.2



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/3] libtracefs: Print installing messages
  2020-12-15 16:40 [PATCH 0/3] libtracefs: Cleaning up the build Steven Rostedt
  2020-12-15 16:40 ` [PATCH 1/3] libtracefs: Move do_install_* macros to utils.mk Steven Rostedt
@ 2020-12-15 16:40 ` Steven Rostedt
  2020-12-15 16:40 ` [PATCH 3/3] libtracefs: Remove KernelShark relics from build Steven Rostedt
  2 siblings, 0 replies; 4+ messages in thread
From: Steven Rostedt @ 2020-12-15 16:40 UTC (permalink / raw)
  To: linux-trace-devel

From: "Steven Rostedt (VMware)" <rostedt@goodmis.org>

The make install did not show anything being installed. When files are being
installed, they should be printed that they are being installed.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
---
 scripts/utils.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/utils.mk b/scripts/utils.mk
index 71985e6a28b1..ad73814c5664 100644
--- a/scripts/utils.mk
+++ b/scripts/utils.mk
@@ -126,6 +126,7 @@ define do_install_mkdir
 endef
 
 define do_install
+	$(print_install)				\
 	$(call do_install_mkdir,$2);			\
 	$(INSTALL) $(if $3,-m $3,) $1 '$(DESTDIR_SQ)$2'
 endef
-- 
2.29.2



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 3/3] libtracefs: Remove KernelShark relics from build
  2020-12-15 16:40 [PATCH 0/3] libtracefs: Cleaning up the build Steven Rostedt
  2020-12-15 16:40 ` [PATCH 1/3] libtracefs: Move do_install_* macros to utils.mk Steven Rostedt
  2020-12-15 16:40 ` [PATCH 2/3] libtracefs: Print installing messages Steven Rostedt
@ 2020-12-15 16:40 ` Steven Rostedt
  2 siblings, 0 replies; 4+ messages in thread
From: Steven Rostedt @ 2020-12-15 16:40 UTC (permalink / raw)
  To: linux-trace-devel

From: "Steven Rostedt (VMware)" <rostedt@goodmis.org>

The utils.mk file has variables to deal with building KernelShark as it was
taken from the trace-cmd.git repo. libtracefs dose not build KernelShark and
we can remove the variables that were for that.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
---
 scripts/utils.mk | 28 ++++++++++------------------
 1 file changed, 10 insertions(+), 18 deletions(-)

diff --git a/scripts/utils.mk b/scripts/utils.mk
index ad73814c5664..398b88a75bfb 100644
--- a/scripts/utils.mk
+++ b/scripts/utils.mk
@@ -2,15 +2,7 @@
 
 # Utils
 
-ifeq ($(BUILDGUI), 1)
-  GUI		= 'GUI '
-  GSPACE	=
-else
-  GUI		=
-  GSPACE	= "    "
-endif
-
- GOBJ		= $(GSPACE)$(notdir $(strip $@))
+ GOBJ		= $(notdir $(strip $@))
 
 
 ifeq ($(VERBOSE),1)
@@ -32,15 +24,15 @@ ifeq ($(findstring 1,$(SILENT)$(VERBOSE)),1)
   print_install =
   print_update =
 else
-  print_compile =		echo '  $(GUI)COMPILE            '$(GOBJ);
-  print_app_build =		echo '  $(GUI)BUILD              '$(GOBJ);
-  print_fpic_compile =		echo '  $(GUI)COMPILE FPIC       '$(GOBJ);
-  print_shared_lib_compile =	echo '  $(GUI)COMPILE SHARED LIB '$(GOBJ);
-  print_plugin_obj_compile =	echo '  $(GUI)COMPILE PLUGIN OBJ '$(GOBJ);
-  print_plugin_build =		echo '  $(GUI)BUILD PLUGIN       '$(GOBJ);
-  print_static_lib_build =	echo '  $(GUI)BUILD STATIC LIB   '$(GOBJ);
-  print_install =		echo '  $(GUI)INSTALL     '$(GSPACE)$1'	to	$(DESTDIR_SQ)$2';
-  print_update =		echo '  $(GUI)UPDATE             '$(GOBJ);
+  print_compile =		echo '  COMPILE            '$(GOBJ);
+  print_app_build =		echo '  BUILD              '$(GOBJ);
+  print_fpic_compile =		echo '  COMPILE FPIC       '$(GOBJ);
+  print_shared_lib_compile =	echo '  COMPILE SHARED LIB '$(GOBJ);
+  print_plugin_obj_compile =	echo '  COMPILE PLUGIN OBJ '$(GOBJ);
+  print_plugin_build =		echo '  BUILD PLUGIN       '$(GOBJ);
+  print_static_lib_build =	echo '  BUILD STATIC LIB   '$(GOBJ);
+  print_install =		echo '  INSTALL     '$1'	to	$(DESTDIR_SQ)$2';
+  print_update =		echo '  UPDATE             '$(GOBJ);
 endif
 
 do_fpic_compile =					\
-- 
2.29.2



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-12-15 16:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-15 16:40 [PATCH 0/3] libtracefs: Cleaning up the build Steven Rostedt
2020-12-15 16:40 ` [PATCH 1/3] libtracefs: Move do_install_* macros to utils.mk Steven Rostedt
2020-12-15 16:40 ` [PATCH 2/3] libtracefs: Print installing messages Steven Rostedt
2020-12-15 16:40 ` [PATCH 3/3] libtracefs: Remove KernelShark relics from build Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).