Patchwork bzip: Add extra files as a specific task

login
register
mail settings
Submitter Richard Purdie
Date March 3, 2014, 3:50 p.m.
Message ID <1393861845.31845.18.camel@ted>
Download mbox | patch
Permalink /patch/67877/
State Accepted
Commit f03d46f02f1235732a58a674be37ae44f91e79f7
Headers show

Comments

Richard Purdie - March 3, 2014, 3:50 p.m.
This means that do_configure prefunc code can see the files in question
and ensures aclocal files get copied in.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---

Patch

diff --git a/meta/recipes-extended/bzip2/bzip2_1.0.6.bb b/meta/recipes-extended/bzip2/bzip2_1.0.6.bb
index 176421d..e9d745d 100644
--- a/meta/recipes-extended/bzip2/bzip2_1.0.6.bb
+++ b/meta/recipes-extended/bzip2/bzip2_1.0.6.bb
@@ -27,11 +27,13 @@  ALTERNATIVE_${PN} = "bunzip2 bzcat"
 
 #install binaries to bzip2-native under sysroot for replacement-native
 EXTRA_OECONF_append_class-native = " --bindir=${STAGING_BINDIR_NATIVE}/${PN}"
-do_configure_prepend () {
+do_extraunpack () {
 	cp ${WORKDIR}/configure.ac ${S}/
 	cp ${WORKDIR}/Makefile.am ${S}/
 }
 
+addtask extraunpack after do_unpack before do_patch
+
 do_install_ptest () {
 	sed -i -e "s|^Makefile:|_Makefile:|" ${D}${PTEST_PATH}/Makefile
 }