summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorHarald Seiler <hws@denx.de>2023-02-03 10:59:51 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-02-15 21:46:56 +0000
commite08d3a4ff98291b00ac9a7cd2795cf2aa7ce9a61 (patch)
treec2c6689527886c8fa14084cbc041b9ad2fc3cb10 /meta
parentb06c7eac7addc4211844f53b40b81f729c2941fa (diff)
downloadpoky-e08d3a4ff98291b00ac9a7cd2795cf2aa7ce9a61.tar.gz
bootchart2: Fix usrmerge support
bootchart2 introduced a variable EARLY_PREFIX for supporting systems with usrmerge [1]. Right now, the recipe here is sidestepping this feature and trying to replicate it by overwriting other variables and even patching the sources. This wasn't enough, however, as there are still problems: For example, some setup code in the bootchart-collector fails because it expects EARLY_PREFIX to be used [2]. Cleanup the recipe to set EARLY_PREFIX and remove the other workarounds. [1]: https://github.com/xrmx/bootchart/commit/56a638ace1d172163b6d636c89892446b8add4b6 [2]: https://github.com/xrmx/bootchart/blob/3d2136d0335718fbe1a8e2370ccbc30123a6e593/collector/collector.c#L670-L672 Fixes: 4157600d3122 ("bootchart2: switch to add patch from change source in do_install") (From OE-Core rev: 5d2e5abd098ae0b4f904cd7270daa1eb61708fa6) Signed-off-by: Harald Seiler <hws@denx.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 7031bc65b10040877392ed774a0cdddef85c12e0) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/bootchart2/bootchart2/0001-bootchart2-support-usrmerge.patch37
-rw-r--r--meta/recipes-devtools/bootchart2/bootchart2_0.14.9.bb11
2 files changed, 4 insertions, 44 deletions
diff --git a/meta/recipes-devtools/bootchart2/bootchart2/0001-bootchart2-support-usrmerge.patch b/meta/recipes-devtools/bootchart2/bootchart2/0001-bootchart2-support-usrmerge.patch
deleted file mode 100644
index 88597cf3a9..0000000000
--- a/meta/recipes-devtools/bootchart2/bootchart2/0001-bootchart2-support-usrmerge.patch
+++ /dev/null
@@ -1,37 +0,0 @@
1From b6d1a1ff2de363b1b76c8c70f77ae56a4e4d4b56 Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com>
3Date: Thu, 5 Sep 2019 18:37:31 +0800
4Subject: [PATCH] bootchart2: support usrmerge
5
6Upstream-Status: Inappropriate [oe-specific]
7
8Signed-off-by: Changqing Li <changqing.li@windriver.com>
9---
10 Makefile | 4 ++--
11 1 file changed, 2 insertions(+), 2 deletions(-)
12
13diff --git a/Makefile b/Makefile
14index 1cc2974..f988904 100644
15--- a/Makefile
16+++ b/Makefile
17@@ -36,7 +36,7 @@ endif
18 PY_SITEDIR ?= $(PY_LIBDIR)/site-packages
19 LIBC_A_PATH = /usr$(LIBDIR)
20 # Always lib, even on systems that otherwise use lib64
21-SYSTEMD_UNIT_DIR = $(EARLY_PREFIX)/lib/systemd/system
22+SYSTEMD_UNIT_DIR ?= $(EARLY_PREFIX)/lib/systemd/system
23 COLLECTOR = \
24 collector/collector.o \
25 collector/output.o \
26@@ -99,7 +99,7 @@ install-chroot:
27 install -d $(DESTDIR)$(PKGLIBDIR)/tmpfs
28
29 install-collector: all install-chroot
30- install -m 755 -D bootchartd $(DESTDIR)$(EARLY_PREFIX)/sbin/$(PROGRAM_PREFIX)bootchartd$(PROGRAM_SUFFIX)
31+ install -m 755 -D bootchartd $(DESTDIR)${BASE_SBINDIR}/$(PROGRAM_PREFIX)bootchartd$(PROGRAM_SUFFIX)
32 install -m 644 -D bootchartd.conf $(DESTDIR)/etc/$(PROGRAM_PREFIX)bootchartd$(PROGRAM_SUFFIX).conf
33 install -m 755 -D bootchart-collector $(DESTDIR)$(PKGLIBDIR)/$(PROGRAM_PREFIX)bootchart$(PROGRAM_SUFFIX)-collector
34
35--
362.7.4
37
diff --git a/meta/recipes-devtools/bootchart2/bootchart2_0.14.9.bb b/meta/recipes-devtools/bootchart2/bootchart2_0.14.9.bb
index b1628075a7..38a1c9d147 100644
--- a/meta/recipes-devtools/bootchart2/bootchart2_0.14.9.bb
+++ b/meta/recipes-devtools/bootchart2/bootchart2_0.14.9.bb
@@ -93,7 +93,6 @@ UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+\.\d+(\.\d+)*)"
93SRC_URI = "git://github.com/xrmx/bootchart.git;branch=master;protocol=https \ 93SRC_URI = "git://github.com/xrmx/bootchart.git;branch=master;protocol=https \
94 file://bootchartd_stop.sh \ 94 file://bootchartd_stop.sh \
95 file://0001-collector-Allocate-space-on-heap-for-chunks.patch \ 95 file://0001-collector-Allocate-space-on-heap-for-chunks.patch \
96 file://0001-bootchart2-support-usrmerge.patch \
97 file://0001-bootchartd.in-make-sure-only-one-bootchartd-process.patch \ 96 file://0001-bootchartd.in-make-sure-only-one-bootchartd-process.patch \
98 " 97 "
99 98
@@ -119,12 +118,11 @@ UPDATERCPN = "bootchartd-stop-initscript"
119INITSCRIPT_NAME = "bootchartd_stop.sh" 118INITSCRIPT_NAME = "bootchartd_stop.sh"
120INITSCRIPT_PARAMS = "start 99 2 3 4 5 ." 119INITSCRIPT_PARAMS = "start 99 2 3 4 5 ."
121 120
122EXTRA_OEMAKE = 'BASE_SBINDIR="${base_sbindir}"'
123
124do_compile:prepend () { 121do_compile:prepend () {
125 export PY_LIBDIR="${libdir}/${PYTHON_DIR}" 122 export PY_LIBDIR="${libdir}/${PYTHON_DIR}"
126 export BINDIR="${bindir}" 123 export BINDIR="${bindir}"
127 export LIBDIR="${base_libdir}" 124 export LIBDIR="/${baselib}"
125 export EARLY_PREFIX="${root_prefix}"
128} 126}
129 127
130do_install () { 128do_install () {
@@ -132,9 +130,8 @@ do_install () {
132 export PY_LIBDIR="${libdir}/${PYTHON_DIR}" 130 export PY_LIBDIR="${libdir}/${PYTHON_DIR}"
133 export BINDIR="${bindir}" 131 export BINDIR="${bindir}"
134 export DESTDIR="${D}" 132 export DESTDIR="${D}"
135 export LIBDIR="${base_libdir}" 133 export LIBDIR="/${baselib}"
136 export PKGLIBDIR="${base_libdir}/bootchart" 134 export EARLY_PREFIX="${root_prefix}"
137 export SYSTEMD_UNIT_DIR="${systemd_system_unitdir}"
138 135
139 oe_runmake install NO_PYTHON_COMPILE=1 136 oe_runmake install NO_PYTHON_COMPILE=1
140 install -d ${D}${sysconfdir}/init.d 137 install -d ${D}${sysconfdir}/init.d