diff options
Diffstat (limited to 'meta-oe/classes')
-rw-r--r-- | meta-oe/classes/breakpad.bbclass | 6 | ||||
-rw-r--r-- | meta-oe/classes/gitpkgv.bbclass | 4 | ||||
-rw-r--r-- | meta-oe/classes/gitver.bbclass | 4 | ||||
-rw-r--r-- | meta-oe/classes/machine_kernel_pr.bbclass | 2 | ||||
-rw-r--r-- | meta-oe/classes/socorro-syms.bbclass | 8 |
5 files changed, 12 insertions, 12 deletions
diff --git a/meta-oe/classes/breakpad.bbclass b/meta-oe/classes/breakpad.bbclass index b3abf278d6..36f11ff480 100644 --- a/meta-oe/classes/breakpad.bbclass +++ b/meta-oe/classes/breakpad.bbclass | |||
@@ -10,11 +10,11 @@ CXXFLAGS += "-I${STAGING_DIR_TARGET}${includedir}/breakpad " | |||
10 | BREAKPAD_BIN ?= "" | 10 | BREAKPAD_BIN ?= "" |
11 | 11 | ||
12 | python () { | 12 | python () { |
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 8cd4bfd1ed..3949b43c24 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 e7b5155ee0..71bf42fbcd 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 | ||
73 | python () { | 73 | python () { |
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 463b64d8e2..e48bd017f9 100644 --- a/meta-oe/classes/machine_kernel_pr.bbclass +++ b/meta-oe/classes/machine_kernel_pr.bbclass | |||
@@ -1,6 +1,6 @@ | |||
1 | python __anonymous () { | 1 | python __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 3f6ae6319b..cc435aba1e 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 | ||
22 | python symbol_file_preprocess() { | 22 | python 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) |