summaryrefslogtreecommitdiff
path: root/classes/sourcepkg.bbclass
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2010-03-15 16:07:07 +0100
committerKoen Kooi <koen@openembedded.org>2010-03-15 16:11:12 +0100
commit9b67465cea384186375d9a31ad498176f7d59de6 (patch)
treefddb3294bff6946a2fffb5bd84b4c383ff0181e4 /classes/sourcepkg.bbclass
parent0241dbf4bfa5c5e762feafa8e6ca580083f01c31 (diff)
sourcepkg.bbclass: put files in ${PN} subdir to avoid cluttering up the dir and generate diff *after* configure to pick up e.g. sed magic as well
Diffstat (limited to 'classes/sourcepkg.bbclass')
-rw-r--r--classes/sourcepkg.bbclass14
1 files changed, 7 insertions, 7 deletions
diff --git a/classes/sourcepkg.bbclass b/classes/sourcepkg.bbclass
index 5aacf92d10..e11f72b6dd 100644
--- a/classes/sourcepkg.bbclass
+++ b/classes/sourcepkg.bbclass
@@ -30,7 +30,7 @@ def get_src_tree(d):
sourcepkg_do_create_orig_tgz(){
- mkdir -p ${DEPLOY_DIR_SRC}
+ mkdir -p ${DEPLOY_DIR_SRC}/${PN}
cd ${WORKDIR}
for i in ${EXCLUDE_FROM}; do
echo $i >> temp/exclude-from-file
@@ -39,8 +39,8 @@ sourcepkg_do_create_orig_tgz(){
src_tree=${@get_src_tree(d)}
echo $src_tree
- oenote "Creating .orig.tar.gz in ${DEPLOY_DIR_SRC}/${P}.orig.tar.gz"
- tar cvzf ${DEPLOY_DIR_SRC}/${P}.orig.tar.gz --exclude-from temp/exclude-from-file $src_tree
+ oenote "Creating .orig.tar.gz in ${DEPLOY_DIR_SRC}/${PN}/${P}.orig.tar.gz"
+ tar cvzf ${DEPLOY_DIR_SRC}/${PN}/${P}.orig.tar.gz --exclude-from temp/exclude-from-file $src_tree
cp -pPR $src_tree $src_tree.orig
}
@@ -93,20 +93,20 @@ sourcepkg_do_create_diff_gz(){
cp $i $src_tree/${DISTRO}/files
done
- oenote "Creating .diff.gz in ${DEPLOY_DIR_SRC}/${P}-${PR}.diff.gz"
- LC_ALL=C TZ=UTC0 diff --exclude-from=temp/exclude-from-file -Naur $src_tree.orig $src_tree | gzip -c > ${DEPLOY_DIR_SRC}/${P}-${PR}.diff.gz
+ oenote "Creating .diff.gz in ${DEPLOY_DIR_SRC}/${PN}/${P}-${PR}.diff.gz"
+ LC_ALL=C TZ=UTC0 diff --exclude-from=temp/exclude-from-file -Naur $src_tree.orig $src_tree | gzip -c > ${DEPLOY_DIR_SRC}/${PN}/${P}-${PR}.diff.gz
rm -rf $src_tree.orig
}
EXPORT_FUNCTIONS do_create_orig_tgz do_archive_bb do_dumpdata do_create_diff_gz
do_create_orig_tgz[deptask] = "do_unpack"
-do_create_diff_gz[deptask] = "do_patch"
+do_create_diff_gz[deptask] = "do_configure"
do_archive_bb[deptask] = "do_patch"
do_dumpdata[deptask] = "do_unpack"
addtask create_orig_tgz after do_unpack before do_patch
addtask archive_bb after do_patch before do_dumpdata
addtask dumpdata after do_archive_bb before do_create_diff_gz
-addtask create_diff_gz after do_dumpdata before do_configure
+addtask create_diff_gz after do_configure before do_compile