Add sourcepkg.bbclass, a crude way to tar up the patched sources into DL_DIR/sourcepk...
authorKoen Kooi <koen@openembedded.org>
Wed, 3 Aug 2005 09:47:13 +0000 (09:47 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Wed, 3 Aug 2005 09:47:13 +0000 (09:47 +0000)
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

classes/sourcepkg.bbclass [new file with mode: 0644]

diff --git a/classes/sourcepkg.bbclass b/classes/sourcepkg.bbclass
new file mode 100644 (file)
index 0000000..52cf264
--- /dev/null
@@ -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
+
+