From: pierre <p.floury@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] pacakge : add trace-cmd package
Date: Tue, 30 Jul 2013 16:01:42 +0200 [thread overview]
Message-ID: <1375192902-29236-1-git-send-email-pierre.floury@gmail.com> (raw)
---
package/Config.in | 1 +
package/tracecmd/Config.in | 9 +++++++++
package/tracecmd/tracecmd.mk | 24 ++++++++++++++++++++++++
3 files changed, 34 insertions(+)
create mode 100644 package/tracecmd/Config.in
create mode 100644 package/tracecmd/tracecmd.mk
diff --git a/package/Config.in b/package/Config.in
index d980871..4a7bc5d 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -39,6 +39,7 @@ source "package/memstat/Config.in"
source "package/netperf/Config.in"
source "package/oprofile/Config.in"
source "package/perf/Config.in"
+source "package/tracecmd/Config.in"
source "package/ramspeed/Config.in"
source "package/rt-tests/Config.in"
source "package/strace/Config.in"
diff --git a/package/tracecmd/Config.in b/package/tracecmd/Config.in
new file mode 100644
index 0000000..cb24816
--- /dev/null
+++ b/package/tracecmd/Config.in
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_TRACECMD
+ bool "trace-cmd"
+ help
+ trace-cmd - command line reader for ftrace
+ need to have ftrace enable into your kernel:
+
+ http://git.kernel.org/cgit/linux/kernel/git/rostedt/trace-cmd.git
+
+comment "trace-cmd - command line reader for ftrace"
diff --git a/package/tracecmd/tracecmd.mk b/package/tracecmd/tracecmd.mk
new file mode 100644
index 0000000..3ddff28
--- /dev/null
+++ b/package/tracecmd/tracecmd.mk
@@ -0,0 +1,24 @@
+#############################################################
+#
+# tracecmd
+#
+#############################################################
+
+TRACECMD_VERSION = 8c10a774f1f8586cd8b0e
+TRACECMD_SITE = http://git.kernel.org/cgit/linux/kernel/git/rostedt/trace-cmd.git
+TRACECMD_SITE_METHOD = git
+TRACECMD_INSTALL_STAGING = YES
+TRACECMD_LICENSE = GPL
+# No license file, the license is in the installed header
+TRACECMD_LICENSE_FILES = COPYING
+define TRACECMD_BUILD_CMDS
+ $(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" -C $(@D) all
+endef
+
+define TRACECMD_INSTALL_TARGET_CMDS
+ $(INSTALL) -D -m 0755 $(@D)/trace-cmd $(TARGET_DIR)/usr/bin
+ $(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/lib/trace-cmd/plugins
+ $(INSTALL) -D -m 0755 $(@D)/plugin_*.so $(TARGET_DIR)/usr/lib/trace-cmd/plugins
+endef
+
+$(eval $(generic-package))
--
1.7.10.4
next reply other threads:[~2013-07-30 14:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-30 14:01 pierre [this message]
[not found] <p.floury@gmail.com>
2013-07-30 14:03 ` [Buildroot] [PATCH] pacakge : add trace-cmd package p.floury at gmail.com
2013-07-30 16:59 ` Thomas De Schampheleire
2013-07-31 8:56 ` pierre
2013-07-31 9:10 ` Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1375192902-29236-1-git-send-email-pierre.floury@gmail.com \
--to=p.floury@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox