summaryrefslogtreecommitdiff
path: root/meta/classes/patch.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/patch.bbclass')
-rw-r--r--meta/classes/patch.bbclass9
1 files changed, 8 insertions, 1 deletions
diff --git a/meta/classes/patch.bbclass b/meta/classes/patch.bbclass
index 1ea4bc5e02..31db9e372a 100644
--- a/meta/classes/patch.bbclass
+++ b/meta/classes/patch.bbclass
@@ -7,13 +7,17 @@ PATCHDEPENDENCY = "${PATCHTOOL}-native:do_populate_sysroot"
inherit terminal
-def src_patches(d):
+def src_patches(d, all = False ):
workdir = d.getVar('WORKDIR', True)
fetch = bb.fetch2.Fetch([], d)
patches = []
+ sources = []
for url in fetch.urls:
local = patch_path(url, fetch, workdir)
if not local:
+ if all:
+ local = fetch.localpath(url)
+ sources.append(local)
continue
urldata = fetch.ud[url]
@@ -43,6 +47,9 @@ def src_patches(d):
localurl = bb.encodeurl(('file', '', local, '', '', patchparm))
patches.append(localurl)
+ if all:
+ return sources
+
return patches
def patch_path(url, fetch, workdir):