diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-11 17:33:43 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-19 10:24:50 +0100 |
commit | bfd279de3275abbfaf3e630383ec244131e0375f (patch) | |
tree | 0d1c90461a890d21444f5d2afb13c52b302427f1 /meta/classes/kernel-yocto.bbclass | |
parent | 99203edda6f0b09d817454d656c100b7a8806b18 (diff) | |
download | poky-bfd279de3275abbfaf3e630383ec244131e0375f.tar.gz |
Convert tab indentation in python functions into four-space
(From OE-Core rev: 604d46c686d06d62d5a07b9c7f4fa170f99307d8)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel-yocto.bbclass')
-rw-r--r-- | meta/classes/kernel-yocto.bbclass | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass index 48c8974257..ab59fc8f13 100644 --- a/meta/classes/kernel-yocto.bbclass +++ b/meta/classes/kernel-yocto.bbclass | |||
@@ -6,41 +6,41 @@ SRCTREECOVEREDTASKS += "do_kernel_link_vmlinux do_kernel_configme do_validate_br | |||
6 | # returns local (absolute) path names for all valid patches in the | 6 | # returns local (absolute) path names for all valid patches in the |
7 | # src_uri | 7 | # src_uri |
8 | def find_patches(d): | 8 | def find_patches(d): |
9 | patches=src_patches(d) | 9 | patches = src_patches(d) |
10 | patch_list=[] | 10 | patch_list=[] |
11 | for p in patches: | 11 | for p in patches: |
12 | _, _, local, _, _, _ = bb.decodeurl(p) | 12 | _, _, local, _, _, _ = bb.decodeurl(p) |
13 | patch_list.append(local) | 13 | patch_list.append(local) |
14 | 14 | ||
15 | return patch_list | 15 | return patch_list |
16 | 16 | ||
17 | # returns all the elements from the src uri that are .scc files | 17 | # returns all the elements from the src uri that are .scc files |
18 | def find_sccs(d): | 18 | def find_sccs(d): |
19 | sources=src_patches(d, True) | 19 | sources=src_patches(d, True) |
20 | sources_list=[] | 20 | sources_list=[] |
21 | for s in sources: | 21 | for s in sources: |
22 | base, ext = os.path.splitext(os.path.basename(s)) | 22 | base, ext = os.path.splitext(os.path.basename(s)) |
23 | if ext and ext in ('.scc' '.cfg'): | 23 | if ext and ext in ('.scc' '.cfg'): |
24 | sources_list.append(s) | 24 | sources_list.append(s) |
25 | elif base and base in 'defconfig': | 25 | elif base and base in 'defconfig': |
26 | sources_list.append(s) | 26 | sources_list.append(s) |
27 | 27 | ||
28 | return sources_list | 28 | return sources_list |
29 | 29 | ||
30 | # this is different from find_patches, in that it returns a colon separated | 30 | # this is different from find_patches, in that it returns a colon separated |
31 | # list of <patches>:<subdir> instead of just a list of patches | 31 | # list of <patches>:<subdir> instead of just a list of patches |
32 | def find_urls(d): | 32 | def find_urls(d): |
33 | patches=src_patches(d) | 33 | patches=src_patches(d) |
34 | fetch = bb.fetch2.Fetch([], d) | 34 | fetch = bb.fetch2.Fetch([], d) |
35 | patch_list=[] | 35 | patch_list=[] |
36 | for p in patches: | 36 | for p in patches: |
37 | _, _, local, _, _, _ = bb.decodeurl(p) | 37 | _, _, local, _, _, _ = bb.decodeurl(p) |
38 | for url in fetch.urls: | 38 | for url in fetch.urls: |
39 | urldata = fetch.ud[url] | 39 | urldata = fetch.ud[url] |
40 | if urldata.localpath == local: | 40 | if urldata.localpath == local: |
41 | patch_list.append(local+':'+urldata.path) | 41 | patch_list.append(local+':'+urldata.path) |
42 | 42 | ||
43 | return patch_list | 43 | return patch_list |
44 | 44 | ||
45 | 45 | ||
46 | do_patch() { | 46 | do_patch() { |