summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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"
7 7
8inherit terminal 8inherit terminal
9 9
10def src_patches(d): 10def src_patches(d, all = False ):
11 workdir = d.getVar('WORKDIR', True) 11 workdir = d.getVar('WORKDIR', True)
12 fetch = bb.fetch2.Fetch([], d) 12 fetch = bb.fetch2.Fetch([], d)
13 patches = [] 13 patches = []
14 sources = []
14 for url in fetch.urls: 15 for url in fetch.urls:
15 local = patch_path(url, fetch, workdir) 16 local = patch_path(url, fetch, workdir)
16 if not local: 17 if not local:
18 if all:
19 local = fetch.localpath(url)
20 sources.append(local)
17 continue 21 continue
18 22
19 urldata = fetch.ud[url] 23 urldata = fetch.ud[url]
@@ -43,6 +47,9 @@ def src_patches(d):
43 localurl = bb.encodeurl(('file', '', local, '', '', patchparm)) 47 localurl = bb.encodeurl(('file', '', local, '', '', patchparm))
44 patches.append(localurl) 48 patches.append(localurl)
45 49
50 if all:
51 return sources
52
46 return patches 53 return patches
47 54
48def patch_path(url, fetch, workdir): 55def patch_path(url, fetch, workdir):