summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-devtools/bootchart2/bootchart2/0001-Makefile-Let-bootchartd.conf-use-EARLY_.patch30
-rw-r--r--meta/recipes-devtools/bootchart2/bootchart2/0002-Makefile-Add-n-to-gzip.patch37
-rw-r--r--meta/recipes-devtools/bootchart2/bootchart2_0.14.9.bb12
3 files changed, 76 insertions, 3 deletions
diff --git a/meta/recipes-devtools/bootchart2/bootchart2/0001-Makefile-Let-bootchartd.conf-use-EARLY_.patch b/meta/recipes-devtools/bootchart2/bootchart2/0001-Makefile-Let-bootchartd.conf-use-EARLY_.patch
new file mode 100644
index 0000000000..8209a776ba
--- /dev/null
+++ b/meta/recipes-devtools/bootchart2/bootchart2/0001-Makefile-Let-bootchartd.conf-use-EARLY_.patch
@@ -0,0 +1,30 @@
1From 0ba0986f1ebc5ac1ad0a3d51e8039dbdccb31c25 Mon Sep 17 00:00:00 2001
2From: Robert Yang <liezhi.yang@windriver.com>
3Date: Thu, 14 Nov 2024 07:33:56 +0000
4Subject: [PATCH 1/2] Makefile: Let bootchartd.conf use EARLY_PREFIX
5
6So that bootchartd.conf can install to correct location when cross build.
7
8Upstream-Status: Submitted [https://github.com/xrmx/bootchart/pull/105]
9
10Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11---
12 Makefile | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/Makefile b/Makefile
16index b99b141..99a3ec7 100644
17--- a/Makefile
18+++ b/Makefile
19@@ -100,7 +100,7 @@ install-chroot:
20
21 install-collector: all install-chroot
22 install -m 755 -D bootchartd $(DESTDIR)$(EARLY_PREFIX)/sbin/$(PROGRAM_PREFIX)bootchartd$(PROGRAM_SUFFIX)
23- install -m 644 -D bootchartd.conf $(DESTDIR)/etc/$(PROGRAM_PREFIX)bootchartd$(PROGRAM_SUFFIX).conf
24+ install -m 644 -D bootchartd.conf $(DESTDIR)$(EARLY_PREFIX)/etc/$(PROGRAM_PREFIX)bootchartd$(PROGRAM_SUFFIX).conf
25 install -m 755 -D bootchart-collector $(DESTDIR)$(PKGLIBDIR)/$(PROGRAM_PREFIX)bootchart$(PROGRAM_SUFFIX)-collector
26
27 install-docs:
28--
292.44.1
30
diff --git a/meta/recipes-devtools/bootchart2/bootchart2/0002-Makefile-Add-n-to-gzip.patch b/meta/recipes-devtools/bootchart2/bootchart2/0002-Makefile-Add-n-to-gzip.patch
new file mode 100644
index 0000000000..baa338759b
--- /dev/null
+++ b/meta/recipes-devtools/bootchart2/bootchart2/0002-Makefile-Add-n-to-gzip.patch
@@ -0,0 +1,37 @@
1From aec8c971e09a28a5f8cd655ccd2f0cf1b057d756 Mon Sep 17 00:00:00 2001
2From: Robert Yang <liezhi.yang@windriver.com>
3Date: Thu, 14 Nov 2024 07:35:11 +0000
4Subject: [PATCH 2/2] Makefile: Add -n to gzip
5
6To make the resulting files reproducible.
7
8-n --no-name
9 When compressing, do not save the original file name and timestamp by default.
10
11Upstream-Status: Submitted [https://github.com/xrmx/bootchart/pull/106]
12
13Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
14---
15 Makefile | 6 +++---
16 1 file changed, 3 insertions(+), 3 deletions(-)
17
18diff --git a/Makefile b/Makefile
19index 99a3ec7..87de486 100644
20--- a/Makefile
21+++ b/Makefile
22@@ -107,9 +107,9 @@ install-docs:
23 install -m 644 -D README $(DESTDIR)$(DOCDIR)/README
24 install -m 644 -D README.pybootchart $(DESTDIR)$(DOCDIR)/README.pybootchart
25 mkdir -p $(DESTDIR)$(MANDIR)
26- gzip -c bootchart2.1 > $(DESTDIR)$(MANDIR)/bootchart2.1.gz
27- gzip -c bootchartd.1 > $(DESTDIR)$(MANDIR)/$(PROGRAM_PREFIX)bootchartd$(PROGRAM_SUFFIX).1.gz
28- gzip -c pybootchartgui.1 > $(DESTDIR)$(MANDIR)/pybootchartgui.1.gz
29+ gzip -n -c bootchart2.1 > $(DESTDIR)$(MANDIR)/bootchart2.1.gz
30+ gzip -n -c bootchartd.1 > $(DESTDIR)$(MANDIR)/$(PROGRAM_PREFIX)bootchartd$(PROGRAM_SUFFIX).1.gz
31+ gzip -n -c pybootchartgui.1 > $(DESTDIR)$(MANDIR)/pybootchartgui.1.gz
32
33 install-service:
34 mkdir -p $(DESTDIR)$(SYSTEMD_UNIT_DIR)
35--
362.44.1
37
diff --git a/meta/recipes-devtools/bootchart2/bootchart2_0.14.9.bb b/meta/recipes-devtools/bootchart2/bootchart2_0.14.9.bb
index 8a211366bf..06625d099e 100644
--- a/meta/recipes-devtools/bootchart2/bootchart2_0.14.9.bb
+++ b/meta/recipes-devtools/bootchart2/bootchart2_0.14.9.bb
@@ -94,6 +94,8 @@ SRC_URI = "git://github.com/xrmx/bootchart.git;branch=master;protocol=https \
94 file://0001-collector-Allocate-space-on-heap-for-chunks.patch \ 94 file://0001-collector-Allocate-space-on-heap-for-chunks.patch \
95 file://0001-bootchartd.in-make-sure-only-one-bootchartd-process.patch \ 95 file://0001-bootchartd.in-make-sure-only-one-bootchartd-process.patch \
96 file://0001-Do-not-include-linux-fs.h.patch \ 96 file://0001-Do-not-include-linux-fs.h.patch \
97 file://0001-Makefile-Let-bootchartd.conf-use-EARLY_.patch \
98 file://0002-Makefile-Add-n-to-gzip.patch \
97 " 99 "
98 100
99S = "${WORKDIR}/git" 101S = "${WORKDIR}/git"
@@ -129,18 +131,22 @@ do_install () {
129 export DESTDIR="${D}" 131 export DESTDIR="${D}"
130 export LIBDIR="/${baselib}" 132 export LIBDIR="/${baselib}"
131 export EARLY_PREFIX="${root_prefix}" 133 export EARLY_PREFIX="${root_prefix}"
134 export MANDIR="${mandir}/man1"
135 export DOCDIR="${docdir}"
132 136
133 oe_runmake install NO_PYTHON_COMPILE=1 137 oe_runmake install NO_PYTHON_COMPILE=1
134 install -d ${D}${sysconfdir}/init.d 138 install -d ${D}${sysconfdir}/init.d
135 install -m 0755 ${UNPACKDIR}/bootchartd_stop.sh ${D}${sysconfdir}/init.d 139 install -m 0755 ${UNPACKDIR}/bootchartd_stop.sh ${D}${sysconfdir}/init.d
136 140
141 if ${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', 'true', 'false', d)}; then
142 mv ${D}${EARLY_PREFIX}${sysconfdir}/bootchartd.conf ${D}${sysconfdir}/bootchartd.conf
143 rmdir ${D}${EARLY_PREFIX}${sysconfdir}
144 fi
145
137 echo 'EXIT_PROC="$EXIT_PROC matchbox-window-manager"' >> ${D}${sysconfdir}/bootchartd.conf 146 echo 'EXIT_PROC="$EXIT_PROC matchbox-window-manager"' >> ${D}${sysconfdir}/bootchartd.conf
138 147
139 # Use python 3 instead of python 2 148 # Use python 3 instead of python 2
140 sed -i -e '1s,#!.*python.*,#!${USRBINPATH}/env python3,' ${D}${bindir}/pybootchartgui 149 sed -i -e '1s,#!.*python.*,#!${USRBINPATH}/env python3,' ${D}${bindir}/pybootchartgui
141
142 # The timestamps embedded in compressed man pages is not reproducible
143 gzip -d ${D}${mandir}/man1/*.gz
144} 150}
145 151
146PACKAGES =+ "pybootchartgui" 152PACKAGES =+ "pybootchartgui"