summaryrefslogtreecommitdiffstats
path: root/meta/classes/archiver.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/archiver.bbclass')
-rw-r--r--meta/classes/archiver.bbclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass
index 1d8e863bdc..9239983e8f 100644
--- a/meta/classes/archiver.bbclass
+++ b/meta/classes/archiver.bbclass
@@ -303,9 +303,10 @@ python do_unpack_and_patch() {
303 return 303 return
304 ar_outdir = d.getVar('ARCHIVER_OUTDIR', True) 304 ar_outdir = d.getVar('ARCHIVER_OUTDIR', True)
305 ar_workdir = d.getVar('ARCHIVER_WORKDIR', True) 305 ar_workdir = d.getVar('ARCHIVER_WORKDIR', True)
306 pn = d.getVar('PN', True)
306 307
307 # The kernel class functions require it to be on work-shared, so we dont change WORKDIR 308 # The kernel class functions require it to be on work-shared, so we dont change WORKDIR
308 if not bb.data.inherits_class('kernel-yocto', d): 309 if not (bb.data.inherits_class('kernel-yocto', d) or pn.startswith('gcc-source')):
309 # Change the WORKDIR to make do_unpack do_patch run in another dir. 310 # Change the WORKDIR to make do_unpack do_patch run in another dir.
310 d.setVar('WORKDIR', ar_workdir) 311 d.setVar('WORKDIR', ar_workdir)
311 312
@@ -323,7 +324,7 @@ python do_unpack_and_patch() {
323 oe.path.copytree(src, src_orig) 324 oe.path.copytree(src, src_orig)
324 325
325 # Make sure gcc and kernel sources are patched only once 326 # Make sure gcc and kernel sources are patched only once
326 if not ((d.getVar('SRC_URI', True) == "" or bb.data.inherits_class('kernel-yocto', d))): 327 if not (d.getVar('SRC_URI', True) == "" or (bb.data.inherits_class('kernel-yocto', d) or pn.startswith('gcc-source'))):
327 bb.build.exec_func('do_patch', d) 328 bb.build.exec_func('do_patch', d)
328 329
329 # Create the patches 330 # Create the patches