diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2014-03-24 13:39:27 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-24 10:18:25 +0000 |
commit | 053631bc3cf7c7c2d090decaa3b5e5690963e64a (patch) | |
tree | 90f0e48de13a9b357137c2bf10ed58f66a848c85 /meta | |
parent | 0e798d5cbcf585535e19633828dc540a282261fc (diff) | |
download | openembedded-core-053631bc3cf7c7c2d090decaa3b5e5690963e64a.tar.gz openembedded-core-053631bc3cf7c7c2d090decaa3b5e5690963e64a.tar.bz2 openembedded-core-053631bc3cf7c7c2d090decaa3b5e5690963e64a.zip |
archiver.bbclass: emit patch series files for original src
Emit patch series files for original src so that the user knows how to
apply the patch orderly.
[YOCTO #5113]
Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/archiver.bbclass | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass index 9aa9335b94..8d8e7c42a8 100644 --- a/meta/classes/archiver.bbclass +++ b/meta/classes/archiver.bbclass @@ -150,6 +150,19 @@ python do_ar_original() { tar = tarfile.open(tarname, 'w:gz') tar.add('.') tar.close() + + # Emit patch series files for 'original' + bb.note('Writing patch series files...') + for patch in src_patches(d): + _, _, local, _, _, parm = bb.fetch.decodeurl(patch) + patchdir = parm.get('patchdir') + if patchdir: + series = os.path.join(ar_outdir, 'series.subdir.%s' % patchdir.replace('/', '_')) + else: + series = os.path.join(ar_outdir, 'series') + + with open(series, 'a') as s: + s.write('%s -p%s\n' % (os.path.basename(local), parm['striplevel'])) } python do_ar_patched() { |