From 91a5b96208f739ab8448081f2c895f80a92412b1 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 22 Mar 2006 15:07:03 +0000 Subject: Add LTTng packages git-svn-id: https://svn.o-hand.com/repos/poky/trunk@323 311d38ba-8fff-0310-9ca6-ca027cbcb966 --- openembedded/packages/lttng/lttng-control_0.1.bb | 14 +++++ .../lttng-modules-0.12/ltt-modules-fixes.patch | 59 ++++++++++++++++++++++ openembedded/packages/lttng/lttng-modules_0.12.bb | 22 ++++++++ .../packages/lttng/lttng-viewer_0.8.34-20060317.bb | 20 ++++++++ 4 files changed, 115 insertions(+) create mode 100644 openembedded/packages/lttng/lttng-control_0.1.bb create mode 100644 openembedded/packages/lttng/lttng-modules-0.12/ltt-modules-fixes.patch create mode 100644 openembedded/packages/lttng/lttng-modules_0.12.bb create mode 100644 openembedded/packages/lttng/lttng-viewer_0.8.34-20060317.bb (limited to 'openembedded/packages/lttng') diff --git a/openembedded/packages/lttng/lttng-control_0.1.bb b/openembedded/packages/lttng/lttng-control_0.1.bb new file mode 100644 index 000000000..018187741 --- /dev/null +++ b/openembedded/packages/lttng/lttng-control_0.1.bb @@ -0,0 +1,14 @@ +SECTION = "devel" +DESCRIPTION = "The Linux trace toolkit is a suite of tools designed to \ +extract program execution details from the Linux operating system and \ +interpret them." +LICENSE = "GPL" +MAINTAINER = "Richard Purdie " + +SRC_URI = "http://ltt.polymtl.ca/lttng/ltt-control-${PV}-11032006.tar.gz" + +S = "${WORKDIR}/ltt-control-${PV}-11032006" + +inherit autotools + +FILES_${PN} += "${datadir}/ltt-control/facilities/*" \ No newline at end of file diff --git a/openembedded/packages/lttng/lttng-modules-0.12/ltt-modules-fixes.patch b/openembedded/packages/lttng/lttng-modules-0.12/ltt-modules-fixes.patch new file mode 100644 index 000000000..68abc7dda --- /dev/null +++ b/openembedded/packages/lttng/lttng-modules-0.12/ltt-modules-fixes.patch @@ -0,0 +1,59 @@ +Index: ltt-modules-0.12/ltt-statedump.c +=================================================================== +--- ltt-modules-0.12.orig/ltt-statedump.c 2006-03-09 19:33:38.000000000 +0000 ++++ ltt-modules-0.12/ltt-statedump.c 2006-03-22 12:43:30.000000000 +0000 +@@ -19,8 +19,14 @@ + #include + #include + #include +-#include + #include ++#ifndef CONFIG_ARM ++#include ++#else ++#include ++#endif ++ ++ + + #define NB_PROC_CHUNK 20 + +@@ -160,6 +166,7 @@ + return 0; + } + ++#ifndef CONFIG_ARM + static inline int ltt_enumerate_interrupts(void) + { + unsigned int i; +@@ -182,7 +189,9 @@ + + return 0; + } +- ++#else ++#define ltt_enumerate_interrupts(x) ++#endif + + static inline int ltt_enumerate_process_states(void) + { +Index: ltt-modules-0.12/Makefile +=================================================================== +--- ltt-modules-0.12.orig/Makefile 2006-03-11 18:16:17.000000000 +0000 ++++ ltt-modules-0.12/Makefile 2006-03-22 12:39:44.000000000 +0000 +@@ -1,9 +1,7 @@ +-ifneq ($(KERNELRELEASE),) + ifneq ($(CONFIG_LTT),) + obj-m := ltt-control.o ltt-statedump.o + endif + +-else + KERNELDIR ?= /lib/modules/$(shell uname -r)/build + PWD := $(shell pwd) + KERNELRELEASE = $(shell cat $(KERNELDIR)/$(KBUILD_OUTPUT)/include/linux/version.h | sed -n 's/.*UTS_RELEASE.*\"\(.*\)\".*/\1/p') +@@ -21,4 +19,4 @@ + + clean: + $(MAKE) -C $(KERNELDIR) M=$(PWD) clean +-endif ++ diff --git a/openembedded/packages/lttng/lttng-modules_0.12.bb b/openembedded/packages/lttng/lttng-modules_0.12.bb new file mode 100644 index 000000000..51f6a05ec --- /dev/null +++ b/openembedded/packages/lttng/lttng-modules_0.12.bb @@ -0,0 +1,22 @@ +SECTION = "devel" +DESCRIPTION = "The Linux trace toolkit is a suite of tools designed to \ +extract program execution details from the Linux operating system and \ +interpret them." +LICENSE = "GPL" +MAINTAINER = "Richard Purdie " + +SRC_URI = "http://ltt.polymtl.ca/lttng/${PN}-${PV}.tar.gz \ + file://ltt-modules-fixes.patch;patch=1" + +S = "${WORKDIR}/ltt-modules-${PV}" + +inherit module + +export KERNELDIR="${STAGING_KERNEL_DIR}" + +do_install() { + install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/net/ + install -m 0644 *${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/net/ +} + +FILES = "/lib/modules/${KERNEL_VERSION}/net/*_cs${KERNEL_OBJECT_SUFFIX}" diff --git a/openembedded/packages/lttng/lttng-viewer_0.8.34-20060317.bb b/openembedded/packages/lttng/lttng-viewer_0.8.34-20060317.bb new file mode 100644 index 000000000..b76f8b811 --- /dev/null +++ b/openembedded/packages/lttng/lttng-viewer_0.8.34-20060317.bb @@ -0,0 +1,20 @@ +SECTION = "devel" +DESCRIPTION = "The Linux trace toolkit is a suite of tools designed to \ +extract program execution details from the Linux operating system and \ +interpret them." +LICENSE = "GPL" +MAINTAINER = "Richrd Purdie " +PR = "r1" +DEPENDS = "gtk+ pango popt" + +ALTNAME = "LinuxTraceToolkitViewer-0.8.34-17032006" + +SRC_URI = "http://ltt.polymtl.ca/packages/${ALTNAME}.tar.gz " +S = "${WORKDIR}/${ALTNAME}" + +inherit autotools + +FILES_${PN} += "\ + ${libdir}/lttv/plugins/* \ + ${datadir}/LinuxTraceToolkitViewer/facilities/* \ + ${datadir}/LinuxTraceToolkitViewer/pixmaps/* " -- cgit v1.2.3