diff options
author | Joshua Lock <joshua.g.lock@intel.com> | 2016-12-14 21:13:05 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-12-16 10:23:23 +0000 |
commit | c0f2890c01882e9ea14e781c044f3a84f75bd0fc (patch) | |
tree | 0962d17b0bf752ba4c009fb624f044b89fd6fd87 /scripts/lib/recipetool/create_kernel.py | |
parent | c4e2c59088765d1f1de7ec57cde91980f887c2ff (diff) | |
download | poky-c0f2890c01882e9ea14e781c044f3a84f75bd0fc.tar.gz |
scripts: remove True option to getVar calls
getVar() now defaults to expanding by default, thus remove the True
option from getVar() calls with a regex search and replace.
Search made with the following regex: getVar ?\(( ?[^,()]*), True\)
(From OE-Core rev: 0a36bd96e6b29fd99a296efc358ca3e9fb5af735)
Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/recipetool/create_kernel.py')
-rw-r--r-- | scripts/lib/recipetool/create_kernel.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/recipetool/create_kernel.py b/scripts/lib/recipetool/create_kernel.py index 7dac59fd03..ca4996c7ac 100644 --- a/scripts/lib/recipetool/create_kernel.py +++ b/scripts/lib/recipetool/create_kernel.py | |||
@@ -41,7 +41,7 @@ class KernelRecipeHandler(RecipeHandler): | |||
41 | handled.append('buildsystem') | 41 | handled.append('buildsystem') |
42 | del lines_after[:] | 42 | del lines_after[:] |
43 | del classes[:] | 43 | del classes[:] |
44 | template = os.path.join(tinfoil.config_data.getVar('COREBASE', True), 'meta-skeleton', 'recipes-kernel', 'linux', 'linux-yocto-custom.bb') | 44 | template = os.path.join(tinfoil.config_data.getVar('COREBASE'), 'meta-skeleton', 'recipes-kernel', 'linux', 'linux-yocto-custom.bb') |
45 | def handle_var(varname, origvalue, op, newlines): | 45 | def handle_var(varname, origvalue, op, newlines): |
46 | if varname in ['SRCREV', 'SRCREV_machine']: | 46 | if varname in ['SRCREV', 'SRCREV_machine']: |
47 | while newlines[-1].startswith('#'): | 47 | while newlines[-1].startswith('#'): |
@@ -85,7 +85,7 @@ class KernelRecipeHandler(RecipeHandler): | |||
85 | elif varname == 'COMPATIBLE_MACHINE': | 85 | elif varname == 'COMPATIBLE_MACHINE': |
86 | while newlines[-1].startswith('#'): | 86 | while newlines[-1].startswith('#'): |
87 | del newlines[-1] | 87 | del newlines[-1] |
88 | machine = tinfoil.config_data.getVar('MACHINE', True) | 88 | machine = tinfoil.config_data.getVar('MACHINE') |
89 | return machine, op, 0, True | 89 | return machine, op, 0, True |
90 | return origvalue, op, 0, True | 90 | return origvalue, op, 0, True |
91 | with open(template, 'r') as f: | 91 | with open(template, 'r') as f: |