summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/ubootchart
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2014-10-16 03:05:19 +0200
committerTudor Florea <tudor.florea@enea.com>2014-10-16 03:05:19 +0200
commitc527fd1f14c27855a37f2e8ac5346ce8d940ced2 (patch)
treebb002c1fdf011c41dbd2f0927bed23ecb5f83c97 /meta/recipes-devtools/ubootchart
downloadpoky-daisy-140929.tar.gz
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-devtools/ubootchart')
-rw-r--r--meta/recipes-devtools/ubootchart/files/sysvinit.patch14
-rw-r--r--meta/recipes-devtools/ubootchart/files/ubootchart-stop3
-rw-r--r--meta/recipes-devtools/ubootchart/files/ubootchart.desktop6
-rw-r--r--meta/recipes-devtools/ubootchart/ubootchart_svn.bb39
4 files changed, 62 insertions, 0 deletions
diff --git a/meta/recipes-devtools/ubootchart/files/sysvinit.patch b/meta/recipes-devtools/ubootchart/files/sysvinit.patch
new file mode 100644
index 0000000000..fc82ed8e78
--- /dev/null
+++ b/meta/recipes-devtools/ubootchart/files/sysvinit.patch
@@ -0,0 +1,14 @@
1Upstream-Status: Inappropriate [distribution]
2
3Index: ubootchart.conf
4===================================================================
5--- ubootchart.conf (revision 9)
6+++ ubootchart.conf (working copy)
7@@ -1,6 +1,6 @@
8
9 # If you want to chain on and run somthing other than /sbin/init...
10-export init_prog=/sbin/init
11+export init_prog=/sbin/init.sysvinit
12
13 # On startup ubootchart will mount a tmpfs filesystem at this
14 # location and chdir here. This is only used for the logging of
diff --git a/meta/recipes-devtools/ubootchart/files/ubootchart-stop b/meta/recipes-devtools/ubootchart/files/ubootchart-stop
new file mode 100644
index 0000000000..3444069c9a
--- /dev/null
+++ b/meta/recipes-devtools/ubootchart/files/ubootchart-stop
@@ -0,0 +1,3 @@
1#! /bin/sh
2
3kill -USR1 $(pidof ubootchartd_bin)
diff --git a/meta/recipes-devtools/ubootchart/files/ubootchart.desktop b/meta/recipes-devtools/ubootchart/files/ubootchart.desktop
new file mode 100644
index 0000000000..5552b3bc6f
--- /dev/null
+++ b/meta/recipes-devtools/ubootchart/files/ubootchart.desktop
@@ -0,0 +1,6 @@
1[Desktop Entry]
2Encoding=UTF-8
3Exec=/sbin/ubootchart-stop
4Name=Stop Bootchart
5Type=Application
6Categories=Programming;
diff --git a/meta/recipes-devtools/ubootchart/ubootchart_svn.bb b/meta/recipes-devtools/ubootchart/ubootchart_svn.bb
new file mode 100644
index 0000000000..b13755e855
--- /dev/null
+++ b/meta/recipes-devtools/ubootchart/ubootchart_svn.bb
@@ -0,0 +1,39 @@
1SUMMARY = "A boot profiling tool"
2HOMEPAGE = "http://code.google.com/p/ubootchart/"
3LICENSE = "GPLv3"
4LIC_FILES_CHKSUM = "file://COPYING;md5=8f0e2cd40e05189ec81232da84bd6e1a"
5SRCREV = "12"
6PV = "0.0+r${SRCPV}"
7PR = "r6"
8
9#RRECOMMENDS_${PN} = "acct"
10
11SRC_URI = "svn://ubootchart.googlecode.com/svn/;protocol=http;module=trunk \
12 file://sysvinit.patch;striplevel=0 \
13 file://ubootchart-stop \
14 file://ubootchart.desktop"
15
16S = "${WORKDIR}/trunk"
17
18inherit update-alternatives
19
20ALTERNATIVE_${PN} = "init"
21ALTERNATIVE_TARGET[init] = "${base_sbindir}/ubootchartd"
22ALTERNATIVE_LINK_NAME[init] = "${base_sbindir}/init"
23ALTERNATIVE_PRIORITY = "70"
24
25do_compile() {
26 ${CC} ${CFLAGS} ${LDFLAGS} ${LIBS} ${INCLUDES} ${S}/ubootchartd_bin.c -o ubootchartd_bin
27}
28
29do_install() {
30 install -m 0755 -d ${D}${base_sbindir} ${D}${sysconfdir}/ubootchart ${D}${datadir}/applications
31 install -m 0755 ${S}/ubootchartd_bin ${D}${base_sbindir}
32 install -m 0755 ${S}/ubootchartd ${D}${base_sbindir}
33 install -m 0644 ${S}/ubootchart.conf ${D}${sysconfdir}/ubootchart
34 install -m 0755 ${S}/start.sh ${D}${sysconfdir}/ubootchart
35 install -m 0755 ${S}/finish.sh ${D}${sysconfdir}/ubootchart
36
37 install -m 0755 ${WORKDIR}/ubootchart-stop ${D}${base_sbindir}
38 install -m 0644 ${WORKDIR}/ubootchart.desktop ${D}${datadir}/applications
39}