summaryrefslogtreecommitdiffstats
path: root/meta-oe/classes
diff options
context:
space:
mode:
authorJoshua Lock <joshua.g.lock@intel.com>2016-11-25 15:28:52 +0000
committerMartin Jansa <Martin.Jansa@gmail.com>2016-12-02 09:16:17 +0100
commitefd3696e70a6603f1a45faa4a172433514f0a487 (patch)
treeb72751ba93b050391db05a8e1be7506836b6d515 /meta-oe/classes
parent761639b9d7681c81dd69eaf3a37c32791d6e97fd (diff)
downloadmeta-openembedded-efd3696e70a6603f1a45faa4a172433514f0a487.tar.gz
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\) Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Diffstat (limited to 'meta-oe/classes')
-rw-r--r--meta-oe/classes/breakpad.bbclass6
-rw-r--r--meta-oe/classes/gitpkgv.bbclass4
-rw-r--r--meta-oe/classes/gitver.bbclass4
-rw-r--r--meta-oe/classes/machine_kernel_pr.bbclass2
-rw-r--r--meta-oe/classes/socorro-syms.bbclass8
5 files changed, 12 insertions, 12 deletions
diff --git a/meta-oe/classes/breakpad.bbclass b/meta-oe/classes/breakpad.bbclass
index b3abf278d..36f11ff48 100644
--- a/meta-oe/classes/breakpad.bbclass
+++ b/meta-oe/classes/breakpad.bbclass
@@ -10,11 +10,11 @@ CXXFLAGS += "-I${STAGING_DIR_TARGET}${includedir}/breakpad "
10BREAKPAD_BIN ?= "" 10BREAKPAD_BIN ?= ""
11 11
12python () { 12python () {
13 breakpad_bin = d.getVar("BREAKPAD_BIN", True) 13 breakpad_bin = d.getVar("BREAKPAD_BIN")
14 14
15 if not breakpad_bin: 15 if not breakpad_bin:
16 PN = d.getVar("PN", True) 16 PN = d.getVar("PN")
17 FILE = os.path.basename(d.getVar("FILE", True)) 17 FILE = os.path.basename(d.getVar("FILE"))
18 bb.error("To build %s, see breakpad.bbclass for instructions on \ 18 bb.error("To build %s, see breakpad.bbclass for instructions on \
19 setting up your Breakpad configuration" % PN) 19 setting up your Breakpad configuration" % PN)
20 raise ValueError('BREAKPAD_BIN not defined in %s' % PN) 20 raise ValueError('BREAKPAD_BIN not defined in %s' % PN)
diff --git a/meta-oe/classes/gitpkgv.bbclass b/meta-oe/classes/gitpkgv.bbclass
index 8cd4bfd1e..3949b43c2 100644
--- a/meta-oe/classes/gitpkgv.bbclass
+++ b/meta-oe/classes/gitpkgv.bbclass
@@ -52,14 +52,14 @@ def get_git_pkgv(d, use_tags):
52 import bb 52 import bb
53 from pipes import quote 53 from pipes import quote
54 54
55 src_uri = d.getVar('SRC_URI', 1).split() 55 src_uri = d.getVar('SRC_URI').split()
56 fetcher = bb.fetch2.Fetch(src_uri, d) 56 fetcher = bb.fetch2.Fetch(src_uri, d)
57 ud = fetcher.ud 57 ud = fetcher.ud
58 58
59 # 59 #
60 # If SRCREV_FORMAT is set respect it for tags 60 # If SRCREV_FORMAT is set respect it for tags
61 # 61 #
62 format = d.getVar('SRCREV_FORMAT', True) 62 format = d.getVar('SRCREV_FORMAT')
63 if not format: 63 if not format:
64 names = [] 64 names = []
65 for url in ud.values(): 65 for url in ud.values():
diff --git a/meta-oe/classes/gitver.bbclass b/meta-oe/classes/gitver.bbclass
index e7b5155ee..71bf42fbc 100644
--- a/meta-oe/classes/gitver.bbclass
+++ b/meta-oe/classes/gitver.bbclass
@@ -24,7 +24,7 @@ def get_git_pv(path, d, tagadjust=None):
24 import os 24 import os
25 import bb.process 25 import bb.process
26 26
27 gitdir = os.path.abspath(os.path.join(d.getVar("S", True), ".git")) 27 gitdir = os.path.abspath(os.path.join(d.getVar("S"), ".git"))
28 try: 28 try:
29 ver = gitrev_run("git describe --tags", gitdir) 29 ver = gitrev_run("git describe --tags", gitdir)
30 except Exception, exc: 30 except Exception, exc:
@@ -71,5 +71,5 @@ def mark_recipe_dependencies(path, d):
71 mark_dependency(d, tagdir) 71 mark_dependency(d, tagdir)
72 72
73python () { 73python () {
74 mark_recipe_dependencies(d.getVar("S", True), d) 74 mark_recipe_dependencies(d.getVar("S"), d)
75} 75}
diff --git a/meta-oe/classes/machine_kernel_pr.bbclass b/meta-oe/classes/machine_kernel_pr.bbclass
index 463b64d8e..e48bd017f 100644
--- a/meta-oe/classes/machine_kernel_pr.bbclass
+++ b/meta-oe/classes/machine_kernel_pr.bbclass
@@ -1,6 +1,6 @@
1python __anonymous () { 1python __anonymous () {
2 2
3 machine_kernel_pr = d.getVar('MACHINE_KERNEL_PR', True) 3 machine_kernel_pr = d.getVar('MACHINE_KERNEL_PR')
4 4
5 if machine_kernel_pr: 5 if machine_kernel_pr:
6 d.setVar('PR', machine_kernel_pr) 6 d.setVar('PR', machine_kernel_pr)
diff --git a/meta-oe/classes/socorro-syms.bbclass b/meta-oe/classes/socorro-syms.bbclass
index 3f6ae6319..cc435aba1 100644
--- a/meta-oe/classes/socorro-syms.bbclass
+++ b/meta-oe/classes/socorro-syms.bbclass
@@ -21,10 +21,10 @@ FILES_${PN}-socorro-syms = "/usr/share/socorro-syms"
21 21
22python symbol_file_preprocess() { 22python symbol_file_preprocess() {
23 23
24 package_dir = d.getVar("PKGD", True) 24 package_dir = d.getVar("PKGD")
25 breakpad_bin = d.getVar("BREAKPAD_BIN", True) 25 breakpad_bin = d.getVar("BREAKPAD_BIN")
26 if not breakpad_bin: 26 if not breakpad_bin:
27 package_name = d.getVar("PN", True) 27 package_name = d.getVar("PN")
28 bb.error("Package %s depends on Breakpad via socorro-syms. See " 28 bb.error("Package %s depends on Breakpad via socorro-syms. See "
29 "breakpad.bbclass for instructions on setting up the Breakpad " 29 "breakpad.bbclass for instructions on setting up the Breakpad "
30 "configuration." % package_name) 30 "configuration." % package_name)
@@ -106,7 +106,7 @@ def repository_path(d, source_file_path):
106 # child of the build directory TOPDIR. 106 # child of the build directory TOPDIR.
107 git_root_dir = run_command( 107 git_root_dir = run_command(
108 "git rev-parse --show-toplevel", os.path.dirname(source_file_path)) 108 "git rev-parse --show-toplevel", os.path.dirname(source_file_path))
109 if not git_root_dir.startswith(d.getVar("TOPDIR", True)): 109 if not git_root_dir.startswith(d.getVar("TOPDIR")):
110 return None 110 return None
111 111
112 return git_repository_path(source_file_path) 112 return git_repository_path(source_file_path)