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-25 09:55:35 +0000 |
| commit | 21169c30421be24825d96b79692584d252d8eaae (patch) | |
| tree | e79224efcf8c7eafa8f3c4753cc552435b57a41e /meta/classes/archiver.bbclass | |
| parent | 4a91e1449b0c869979231b7f4c98e09c7a5d732a (diff) | |
| download | poky-21169c30421be24825d96b79692584d252d8eaae.tar.gz | |
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]
(From OE-Core rev: 053631bc3cf7c7c2d090decaa3b5e5690963e64a)
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/classes/archiver.bbclass')
| -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() { | |||
| 150 | tar = tarfile.open(tarname, 'w:gz') | 150 | tar = tarfile.open(tarname, 'w:gz') |
| 151 | tar.add('.') | 151 | tar.add('.') |
| 152 | tar.close() | 152 | tar.close() |
| 153 | |||
| 154 | # Emit patch series files for 'original' | ||
| 155 | bb.note('Writing patch series files...') | ||
| 156 | for patch in src_patches(d): | ||
| 157 | _, _, local, _, _, parm = bb.fetch.decodeurl(patch) | ||
| 158 | patchdir = parm.get('patchdir') | ||
| 159 | if patchdir: | ||
| 160 | series = os.path.join(ar_outdir, 'series.subdir.%s' % patchdir.replace('/', '_')) | ||
| 161 | else: | ||
| 162 | series = os.path.join(ar_outdir, 'series') | ||
| 163 | |||
| 164 | with open(series, 'a') as s: | ||
| 165 | s.write('%s -p%s\n' % (os.path.basename(local), parm['striplevel'])) | ||
| 153 | } | 166 | } |
| 154 | 167 | ||
| 155 | python do_ar_patched() { | 168 | python do_ar_patched() { |
