summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 b4d5b7cd9b..297dbfb578 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 file://0001-Do-not-include-linux-fs.h.patch \ 97 file://0001-Do-not-include-linux-fs.h.patch \
99 " 98 "
@@ -120,12 +119,11 @@ UPDATERCPN = "bootchartd-stop-initscript"
120INITSCRIPT_NAME = "bootchartd_stop.sh" 119INITSCRIPT_NAME = "bootchartd_stop.sh"
121INITSCRIPT_PARAMS = "start 99 2 3 4 5 ." 120INITSCRIPT_PARAMS = "start 99 2 3 4 5 ."
122 121
123EXTRA_OEMAKE = 'BASE_SBINDIR="${base_sbindir}"'
124
125do_compile:prepend () { 122do_compile:prepend () {
126 export PY_LIBDIR="${libdir}/${PYTHON_DIR}" 123 export PY_LIBDIR="${libdir}/${PYTHON_DIR}"
127 export BINDIR="${bindir}" 124 export BINDIR="${bindir}"
128 export LIBDIR="${base_libdir}" 125 export LIBDIR="/${baselib}"
126 export EARLY_PREFIX="${root_prefix}"
129} 127}
130 128
131do_install () { 129do_install () {
@@ -133,9 +131,8 @@ do_install () {
133 export PY_LIBDIR="${libdir}/${PYTHON_DIR}" 131 export PY_LIBDIR="${libdir}/${PYTHON_DIR}"
134 export BINDIR="${bindir}" 132 export BINDIR="${bindir}"
135 export DESTDIR="${D}" 133 export DESTDIR="${D}"
136 export LIBDIR="${base_libdir}" 134 export LIBDIR="/${baselib}"
137 export PKGLIBDIR="${base_libdir}/bootchart" 135 export EARLY_PREFIX="${root_prefix}"
138 export SYSTEMD_UNIT_DIR="${systemd_system_unitdir}"
139 136
140 oe_runmake install NO_PYTHON_COMPILE=1 137 oe_runmake install NO_PYTHON_COMPILE=1
141 install -d ${D}${sysconfdir}/init.d 138 install -d ${D}${sysconfdir}/init.d