aboutsummaryrefslogtreecommitdiffstats
path: root/classes/sourcepkg.bbclass
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2005-08-03 09:47:13 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-08-03 09:47:13 +0000
commitd7003ba6961f404aa5ffa35231650b3ee83b78d7 (patch)
tree581bb7dbe447f395e446dfa82bcea28d2ef9d635 /classes/sourcepkg.bbclass
parent11a2c0bf83920ce4c312883ca17ad27ef3705eee (diff)
downloadopenembedded-d7003ba6961f404aa5ffa35231650b3ee83b78d7.tar.gz
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
Diffstat (limited to 'classes/sourcepkg.bbclass')
-rw-r--r--classes/sourcepkg.bbclass13
1 files changed, 13 insertions, 0 deletions
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
+
+