diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/archiver.bbclass | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass index 2f3b278fb3..7b90025fb5 100644 --- a/meta/classes/archiver.bbclass +++ b/meta/classes/archiver.bbclass | |||
@@ -270,9 +270,10 @@ python do_unpack_and_patch() { | |||
270 | return | 270 | return |
271 | ar_outdir = d.getVar('ARCHIVER_OUTDIR', True) | 271 | ar_outdir = d.getVar('ARCHIVER_OUTDIR', True) |
272 | ar_workdir = d.getVar('ARCHIVER_WORKDIR', True) | 272 | ar_workdir = d.getVar('ARCHIVER_WORKDIR', True) |
273 | pn = d.getVar('PN', True) | ||
273 | 274 | ||
274 | # The kernel class functions require it to be on work-shared, so we dont change WORKDIR | 275 | # The kernel class functions require it to be on work-shared, so we dont change WORKDIR |
275 | if not bb.data.inherits_class('kernel-yocto', d): | 276 | if not (bb.data.inherits_class('kernel-yocto', d) or pn.startswith('gcc-source')): |
276 | # Change the WORKDIR to make do_unpack do_patch run in another dir. | 277 | # Change the WORKDIR to make do_unpack do_patch run in another dir. |
277 | d.setVar('WORKDIR', ar_workdir) | 278 | d.setVar('WORKDIR', ar_workdir) |
278 | 279 | ||
@@ -290,7 +291,7 @@ python do_unpack_and_patch() { | |||
290 | oe.path.copytree(src, src_orig) | 291 | oe.path.copytree(src, src_orig) |
291 | 292 | ||
292 | # Make sure gcc and kernel sources are patched only once | 293 | # Make sure gcc and kernel sources are patched only once |
293 | if not ((d.getVar('SRC_URI', True) == "" or bb.data.inherits_class('kernel-yocto', d))): | 294 | if not (d.getVar('SRC_URI', True) == "" or (bb.data.inherits_class('kernel-yocto', d) or pn.startswith('gcc-source'))): |
294 | bb.build.exec_func('do_patch', d) | 295 | bb.build.exec_func('do_patch', d) |
295 | 296 | ||
296 | # Create the patches | 297 | # Create the patches |