summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
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