summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
diff options
context:
space:
mode:
authorOoi Cinly <cinly.ooi@intel.com>2017-09-14 17:35:48 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-09-21 09:24:24 +0100
commitab1caf80b2746909c2fc4f7f581fcad86bc170b6 (patch)
tree97f623ffa08026126ab7549022746fd129ef31a1 /meta/recipes-extended
parent6fa8db23740914a7918ac2760d239fcc00ae71b0 (diff)
downloadpoky-ab1caf80b2746909c2fc4f7f581fcad86bc170b6.tar.gz
bzip2: Create Makefile for run-ptest
To improve binary reproducibility, only the relevent part of the Makefile in bzip2-ptest package that run-ptest needs are copied to the destination directory. bzip2-ptest requires Makefile. The original Makefile contains references to build host. By copying only the relevent part, we avoid those references making their way into the target system Used Makefile.am as the source to extract the revelent part instead of Makefile as it is easier to parse than Makefile. A redundant command in do_install_ptest() that repeat the copying of Makefile that was already copied by Makefile's install-ptest step is removed because it now interfers with the creation of the new Makefile by make's install-ptest. [YOCTO #11596] (From OE-Core rev: 752a8a02d52cf868d1c182672d6ceb3d455dfa1e) Signed-off-by: Ooi Cinly <cinly.ooi@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r--meta/recipes-extended/bzip2/bzip2-1.0.6/Makefile.am3
-rw-r--r--meta/recipes-extended/bzip2/bzip2_1.0.6.bb1
2 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-extended/bzip2/bzip2-1.0.6/Makefile.am b/meta/recipes-extended/bzip2/bzip2-1.0.6/Makefile.am
index 05d389fc7d..dcf64584d9 100644
--- a/meta/recipes-extended/bzip2/bzip2-1.0.6/Makefile.am
+++ b/meta/recipes-extended/bzip2/bzip2-1.0.6/Makefile.am
@@ -48,7 +48,8 @@ runtest:
48 else echo "FAIL: sample3 decompress"; fi 48 else echo "FAIL: sample3 decompress"; fi
49 49
50install-ptest: 50install-ptest:
51 cp $(srcdir)/Makefile $(DESTDIR)/ 51 sed -n '/^runtest:/,/^install-ptest:/{/^install-ptest:/!p}' \
52 $(srcdir)/Makefile.am > $(DESTDIR)/Makefile
52 cp $(srcdir)/sample1.ref $(DESTDIR)/ 53 cp $(srcdir)/sample1.ref $(DESTDIR)/
53 cp $(srcdir)/sample2.ref $(DESTDIR)/ 54 cp $(srcdir)/sample2.ref $(DESTDIR)/
54 cp $(srcdir)/sample3.ref $(DESTDIR)/ 55 cp $(srcdir)/sample3.ref $(DESTDIR)/
diff --git a/meta/recipes-extended/bzip2/bzip2_1.0.6.bb b/meta/recipes-extended/bzip2/bzip2_1.0.6.bb
index 0512a75990..de668d6d2b 100644
--- a/meta/recipes-extended/bzip2/bzip2_1.0.6.bb
+++ b/meta/recipes-extended/bzip2/bzip2_1.0.6.bb
@@ -34,7 +34,6 @@ ALTERNATIVE_${PN} = "bunzip2 bzcat"
34EXTRA_OECONF_append_class-native = " --bindir=${STAGING_BINDIR_NATIVE}/${PN}" 34EXTRA_OECONF_append_class-native = " --bindir=${STAGING_BINDIR_NATIVE}/${PN}"
35 35
36do_install_ptest () { 36do_install_ptest () {
37 cp -f ${B}/Makefile ${D}${PTEST_PATH}/Makefile
38 sed -i -e "s|^Makefile:|_Makefile:|" ${D}${PTEST_PATH}/Makefile 37 sed -i -e "s|^Makefile:|_Makefile:|" ${D}${PTEST_PATH}/Makefile
39} 38}
40 39