From: Koen Kooi Date: Wed, 3 Aug 2005 09:47:13 +0000 (+0000) Subject: Add sourcepkg.bbclass, a crude way to tar up the patched sources into DL_DIR/sourcepk... X-Git-Tag: Release-2010-05/1~9453^2~3994^2~26 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7003ba6961f404aa5ffa35231650b3ee83b78d7;p=openembedded.git Add sourcepkg.bbclass, a crude way to tar up the patched sources into DL_DIR/sourcepkg and md5sums the result. do INHERIT += "sourcepkg" to get all of this goodness. Now I need to find out how to override the Source: field to make it point to said tarballs on your distro's source mirror --- diff --git a/classes/sourcepkg.bbclass b/classes/sourcepkg.bbclass new file mode 100644 index 0000000000..52cf2647b6 --- /dev/null +++ b/classes/sourcepkg.bbclass @@ -0,0 +1,13 @@ + +do_tarballing(){ + + mkdir -p ${DL_DIR}/sourcepkg/ + cd ${WORKDIR} + echo '.pc' > tar-exclude + tar cjvf ${DL_DIR}/sourcepkg/${P}.tar.bz2 `basename ${S}` -X tar-exclude + md5sum ${DL_DIR}/sourcepkg/${P}.tar.bz2 > ${DL_DIR}/sourcepkg/${P}.tar.bz2.md5 +} + +addtask tarballing after do_patch before do_configure + +