summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/bootchart2/bootchart2_0.14.8.bb
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2019-09-06 11:37:26 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-09-07 07:47:24 +0100
commit4157600d31225c5ae53ba54318af30d3f7c3ccae (patch)
tree7f377dfe99050899afcb60b78e8d865162abc396 /meta/recipes-devtools/bootchart2/bootchart2_0.14.8.bb
parentc143a3c4eaa901481e9e8bf0a48f32bbb8c100bb (diff)
downloadpoky-4157600d31225c5ae53ba54318af30d3f7c3ccae.tar.gz
bootchart2: switch to add patch from change source in do_install
it is not proper change source in do_install, it will make source not updated even local.conf have change the DISTRO_FEATURES [YOCTO #13493] (From OE-Core rev: c8b049f43931ac7581b6f57d03e4d1838d394e1f) Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/bootchart2/bootchart2_0.14.8.bb')
-rw-r--r--meta/recipes-devtools/bootchart2/bootchart2_0.14.8.bb7
1 files changed, 3 insertions, 4 deletions
diff --git a/meta/recipes-devtools/bootchart2/bootchart2_0.14.8.bb b/meta/recipes-devtools/bootchart2/bootchart2_0.14.8.bb
index 465cdd9605..a938b2da49 100644
--- a/meta/recipes-devtools/bootchart2/bootchart2_0.14.8.bb
+++ b/meta/recipes-devtools/bootchart2/bootchart2_0.14.8.bb
@@ -93,6 +93,7 @@ UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+\.\d+(\.\d+)*)"
93SRC_URI = "git://github.com/xrmx/bootchart.git \ 93SRC_URI = "git://github.com/xrmx/bootchart.git \
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 \
96 " 97 "
97 98
98S = "${WORKDIR}/git" 99S = "${WORKDIR}/git"
@@ -114,6 +115,8 @@ UPDATERCPN = "bootchartd-stop-initscript"
114INITSCRIPT_NAME = "bootchartd_stop.sh" 115INITSCRIPT_NAME = "bootchartd_stop.sh"
115INITSCRIPT_PARAMS = "start 99 2 3 4 5 ." 116INITSCRIPT_PARAMS = "start 99 2 3 4 5 ."
116 117
118EXTRA_OEMAKE = 'BASE_SBINDIR="${base_sbindir}"'
119
117do_compile_prepend () { 120do_compile_prepend () {
118 export PY_LIBDIR="${libdir}/${PYTHON_DIR}" 121 export PY_LIBDIR="${libdir}/${PYTHON_DIR}"
119 export BINDIR="${bindir}" 122 export BINDIR="${bindir}"
@@ -121,10 +124,6 @@ do_compile_prepend () {
121} 124}
122 125
123do_install () { 126do_install () {
124 if ${@bb.utils.contains('DISTRO_FEATURES','usrmerge','true','false',d)}; then
125 sed -i -e "s;install -m 755 -D bootchartd \$(DESTDIR)\$(EARLY_PREFIX)/sbin/;install -m 755 -D bootchartd \$(DESTDIR)/usr/sbin/;g" ${B}/Makefile
126 fi
127 sed -i -e "s;SYSTEMD_UNIT_DIR =; SYSTEMD_UNIT_DIR ?=;g" ${B}/Makefile
128 install -d ${D}${sysconfdir} # needed for -native 127 install -d ${D}${sysconfdir} # needed for -native
129 export PY_LIBDIR="${libdir}/${PYTHON_DIR}" 128 export PY_LIBDIR="${libdir}/${PYTHON_DIR}"
130 export BINDIR="${bindir}" 129 export BINDIR="${bindir}"