diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/compress_doc.bbclass | 4 | ||||
-rw-r--r-- | meta/classes/devshell.bbclass | 4 | ||||
-rw-r--r-- | meta/classes/externalsrc.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/image-buildinfo.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/image-swab.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/license.bbclass | 12 | ||||
-rw-r--r-- | meta/classes/package.bbclass | 4 | ||||
-rw-r--r-- | meta/classes/package_tar.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/rootfs_ipk.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/rootfs_rpm.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/testimage.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/typecheck.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/utility-tasks.bbclass | 6 |
13 files changed, 23 insertions, 23 deletions
diff --git a/meta/classes/compress_doc.bbclass b/meta/classes/compress_doc.bbclass index 9b58d82ce5..8073c173e5 100644 --- a/meta/classes/compress_doc.bbclass +++ b/meta/classes/compress_doc.bbclass | |||
@@ -40,8 +40,8 @@ python package_do_compress_doc() { | |||
40 | compress_cmds = {} | 40 | compress_cmds = {} |
41 | decompress_cmds = {} | 41 | decompress_cmds = {} |
42 | for mode in compress_list: | 42 | for mode in compress_list: |
43 | compress_cmds[mode] = d.getVarFlag('DOC_COMPRESS_CMD', mode) | 43 | compress_cmds[mode] = d.getVarFlag('DOC_COMPRESS_CMD', mode, True) |
44 | decompress_cmds[mode] = d.getVarFlag('DOC_DECOMPRESS_CMD', mode) | 44 | decompress_cmds[mode] = d.getVarFlag('DOC_DECOMPRESS_CMD', mode, True) |
45 | 45 | ||
46 | mandir = os.path.abspath(dvar + os.sep + d.getVar("mandir", True)) | 46 | mandir = os.path.abspath(dvar + os.sep + d.getVar("mandir", True)) |
47 | if os.path.exists(mandir): | 47 | if os.path.exists(mandir): |
diff --git a/meta/classes/devshell.bbclass b/meta/classes/devshell.bbclass index 4451436473..341d9c0002 100644 --- a/meta/classes/devshell.bbclass +++ b/meta/classes/devshell.bbclass | |||
@@ -3,7 +3,7 @@ inherit terminal | |||
3 | DEVSHELL = "${SHELL}" | 3 | DEVSHELL = "${SHELL}" |
4 | 4 | ||
5 | python do_devshell () { | 5 | python do_devshell () { |
6 | if d.getVarFlag("do_devshell", "manualfakeroot"): | 6 | if d.getVarFlag("do_devshell", "manualfakeroot", True): |
7 | d.prependVar("DEVSHELL", "pseudo ") | 7 | d.prependVar("DEVSHELL", "pseudo ") |
8 | fakeenv = d.getVar("FAKEROOTENV", True).split() | 8 | fakeenv = d.getVar("FAKEROOTENV", True).split() |
9 | for f in fakeenv: | 9 | for f in fakeenv: |
@@ -27,7 +27,7 @@ do_devshell[nostamp] = "1" | |||
27 | # be done as the normal user. We therfore carefully construct the envionment | 27 | # be done as the normal user. We therfore carefully construct the envionment |
28 | # manually | 28 | # manually |
29 | python () { | 29 | python () { |
30 | if d.getVarFlag("do_devshell", "fakeroot"): | 30 | if d.getVarFlag("do_devshell", "fakeroot", True): |
31 | # We need to signal our code that we want fakeroot however we | 31 | # We need to signal our code that we want fakeroot however we |
32 | # can't manipulate the environment and variables here yet (see YOCTO #4795) | 32 | # can't manipulate the environment and variables here yet (see YOCTO #4795) |
33 | d.setVarFlag("do_devshell", "manualfakeroot", "1") | 33 | d.setVarFlag("do_devshell", "manualfakeroot", "1") |
diff --git a/meta/classes/externalsrc.bbclass b/meta/classes/externalsrc.bbclass index be0fe55d5f..607861f023 100644 --- a/meta/classes/externalsrc.bbclass +++ b/meta/classes/externalsrc.bbclass | |||
@@ -51,7 +51,7 @@ python () { | |||
51 | # Dummy value because the default function can't be called with blank SRC_URI | 51 | # Dummy value because the default function can't be called with blank SRC_URI |
52 | d.setVar('SRCPV', '999') | 52 | d.setVar('SRCPV', '999') |
53 | 53 | ||
54 | tasks = filter(lambda k: d.getVarFlag(k, "task"), d.keys()) | 54 | tasks = filter(lambda k: d.getVarFlag(k, "task", True), d.keys()) |
55 | 55 | ||
56 | for task in tasks: | 56 | for task in tasks: |
57 | if task.endswith("_setscene"): | 57 | if task.endswith("_setscene"): |
diff --git a/meta/classes/image-buildinfo.bbclass b/meta/classes/image-buildinfo.bbclass index aa17cc8f9e..5b738ae596 100644 --- a/meta/classes/image-buildinfo.bbclass +++ b/meta/classes/image-buildinfo.bbclass | |||
@@ -19,7 +19,7 @@ def image_buildinfo_outputvars(vars, listvars, d): | |||
19 | ret = "" | 19 | ret = "" |
20 | for var in vars: | 20 | for var in vars: |
21 | value = d.getVar(var, True) or "" | 21 | value = d.getVar(var, True) or "" |
22 | if (d.getVarFlag(var, 'type') == "list"): | 22 | if (d.getVarFlag(var, 'type', True) == "list"): |
23 | value = oe.utils.squashspaces(value) | 23 | value = oe.utils.squashspaces(value) |
24 | ret += "%s = %s\n" % (var, value) | 24 | ret += "%s = %s\n" % (var, value) |
25 | return ret.rstrip('\n') | 25 | return ret.rstrip('\n') |
diff --git a/meta/classes/image-swab.bbclass b/meta/classes/image-swab.bbclass index 89318560db..6b02cadafe 100644 --- a/meta/classes/image-swab.bbclass +++ b/meta/classes/image-swab.bbclass | |||
@@ -47,7 +47,7 @@ python() { | |||
47 | # and cross packages which aren't swabber-native or one of its dependencies | 47 | # and cross packages which aren't swabber-native or one of its dependencies |
48 | # I have ignored them for now... | 48 | # I have ignored them for now... |
49 | if not bb.data.inherits_class('native', d) and not bb.data.inherits_class('nativesdk', d) and not bb.data.inherits_class('cross', d): | 49 | if not bb.data.inherits_class('native', d) and not bb.data.inherits_class('nativesdk', d) and not bb.data.inherits_class('cross', d): |
50 | deps = (d.getVarFlag('do_setscene', 'depends') or "").split() | 50 | deps = (d.getVarFlag('do_setscene', 'depends', True) or "").split() |
51 | deps.append('strace-native:do_populate_sysroot') | 51 | deps.append('strace-native:do_populate_sysroot') |
52 | d.setVarFlag('do_setscene', 'depends', " ".join(deps)) | 52 | d.setVarFlag('do_setscene', 'depends', " ".join(deps)) |
53 | logdir = d.expand("${TRACE_LOGDIR}") | 53 | logdir = d.expand("${TRACE_LOGDIR}") |
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass index 301216d5d6..fe38d2152c 100644 --- a/meta/classes/license.bbclass +++ b/meta/classes/license.bbclass | |||
@@ -416,10 +416,10 @@ def find_license_files(d): | |||
416 | 416 | ||
417 | for lic_dir in license_source_dirs: | 417 | for lic_dir in license_source_dirs: |
418 | if not os.path.isfile(os.path.join(lic_dir, license_type)): | 418 | if not os.path.isfile(os.path.join(lic_dir, license_type)): |
419 | if d.getVarFlag('SPDXLICENSEMAP', license_type) != None: | 419 | if d.getVarFlag('SPDXLICENSEMAP', license_type, True) != None: |
420 | # Great, there is an SPDXLICENSEMAP. We can copy! | 420 | # Great, there is an SPDXLICENSEMAP. We can copy! |
421 | bb.debug(1, "We need to use a SPDXLICENSEMAP for %s" % (license_type)) | 421 | bb.debug(1, "We need to use a SPDXLICENSEMAP for %s" % (license_type)) |
422 | spdx_generic = d.getVarFlag('SPDXLICENSEMAP', license_type) | 422 | spdx_generic = d.getVarFlag('SPDXLICENSEMAP', license_type, True) |
423 | license_source = lic_dir | 423 | license_source = lic_dir |
424 | break | 424 | break |
425 | elif os.path.isfile(os.path.join(lic_dir, license_type)): | 425 | elif os.path.isfile(os.path.join(lic_dir, license_type)): |
@@ -435,14 +435,14 @@ def find_license_files(d): | |||
435 | 435 | ||
436 | # The user may attempt to use NO_GENERIC_LICENSE for a generic license which doesn't make sense | 436 | # The user may attempt to use NO_GENERIC_LICENSE for a generic license which doesn't make sense |
437 | # and should not be allowed, warn the user in this case. | 437 | # and should not be allowed, warn the user in this case. |
438 | if d.getVarFlag('NO_GENERIC_LICENSE', license_type): | 438 | if d.getVarFlag('NO_GENERIC_LICENSE', license_type, True): |
439 | bb.warn("%s: %s is a generic license, please don't use NO_GENERIC_LICENSE for it." % (pn, license_type)) | 439 | bb.warn("%s: %s is a generic license, please don't use NO_GENERIC_LICENSE for it." % (pn, license_type)) |
440 | 440 | ||
441 | elif d.getVarFlag('NO_GENERIC_LICENSE', license_type): | 441 | elif d.getVarFlag('NO_GENERIC_LICENSE', license_type, True): |
442 | # if NO_GENERIC_LICENSE is set, we copy the license files from the fetched source | 442 | # if NO_GENERIC_LICENSE is set, we copy the license files from the fetched source |
443 | # of the package rather than the license_source_dirs. | 443 | # of the package rather than the license_source_dirs. |
444 | for (basename, path) in lic_files_paths: | 444 | for (basename, path) in lic_files_paths: |
445 | if d.getVarFlag('NO_GENERIC_LICENSE', license_type) == basename: | 445 | if d.getVarFlag('NO_GENERIC_LICENSE', license_type, True) == basename: |
446 | lic_files_paths.append(("generic_" + license_type, path)) | 446 | lic_files_paths.append(("generic_" + license_type, path)) |
447 | break | 447 | break |
448 | else: | 448 | else: |
@@ -510,7 +510,7 @@ def expand_wildcard_licenses(d, wildcard_licenses): | |||
510 | spdxmapkeys = d.getVarFlags('SPDXLICENSEMAP').keys() | 510 | spdxmapkeys = d.getVarFlags('SPDXLICENSEMAP').keys() |
511 | for wld_lic in wildcard_licenses: | 511 | for wld_lic in wildcard_licenses: |
512 | spdxflags = fnmatch.filter(spdxmapkeys, wld_lic) | 512 | spdxflags = fnmatch.filter(spdxmapkeys, wld_lic) |
513 | licenses += [d.getVarFlag('SPDXLICENSEMAP', flag) for flag in spdxflags] | 513 | licenses += [d.getVarFlag('SPDXLICENSEMAP', flag, True) for flag in spdxflags] |
514 | 514 | ||
515 | spdx_lics = (d.getVar('SRC_DISTRIBUTE_LICENSES', False) or '').split() | 515 | spdx_lics = (d.getVar('SRC_DISTRIBUTE_LICENSES', False) or '').split() |
516 | for wld_lic in wildcard_licenses: | 516 | for wld_lic in wildcard_licenses: |
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 854591bb7d..93b275c56c 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass | |||
@@ -429,7 +429,7 @@ def get_package_additional_metadata (pkg_type, d): | |||
429 | if d.getVar(key, False) is None: | 429 | if d.getVar(key, False) is None: |
430 | continue | 430 | continue |
431 | d.setVarFlag(key, "type", "list") | 431 | d.setVarFlag(key, "type", "list") |
432 | if d.getVarFlag(key, "separator") is None: | 432 | if d.getVarFlag(key, "separator", True) is None: |
433 | d.setVarFlag(key, "separator", "\\n") | 433 | d.setVarFlag(key, "separator", "\\n") |
434 | metadata_fields = [field.strip() for field in oe.data.typed_value(key, d)] | 434 | metadata_fields = [field.strip() for field in oe.data.typed_value(key, d)] |
435 | return "\n".join(metadata_fields).strip() | 435 | return "\n".join(metadata_fields).strip() |
@@ -1916,7 +1916,7 @@ python package_depchains() { | |||
1916 | 1916 | ||
1917 | for suffix in pkgs: | 1917 | for suffix in pkgs: |
1918 | for pkg in pkgs[suffix]: | 1918 | for pkg in pkgs[suffix]: |
1919 | if d.getVarFlag('RRECOMMENDS_' + pkg, 'nodeprrecs'): | 1919 | if d.getVarFlag('RRECOMMENDS_' + pkg, 'nodeprrecs', True): |
1920 | continue | 1920 | continue |
1921 | (base, func) = pkgs[suffix][pkg] | 1921 | (base, func) = pkgs[suffix][pkg] |
1922 | if suffix == "-dev": | 1922 | if suffix == "-dev": |
diff --git a/meta/classes/package_tar.bbclass b/meta/classes/package_tar.bbclass index f9e2292deb..854e645286 100644 --- a/meta/classes/package_tar.bbclass +++ b/meta/classes/package_tar.bbclass | |||
@@ -53,7 +53,7 @@ python do_package_tar () { | |||
53 | 53 | ||
54 | python () { | 54 | python () { |
55 | if d.getVar('PACKAGES', True) != '': | 55 | if d.getVar('PACKAGES', True) != '': |
56 | deps = (d.getVarFlag('do_package_write_tar', 'depends') or "").split() | 56 | deps = (d.getVarFlag('do_package_write_tar', 'depends', True) or "").split() |
57 | deps.append('tar-native:do_populate_sysroot') | 57 | deps.append('tar-native:do_populate_sysroot') |
58 | deps.append('virtual/fakeroot-native:do_populate_sysroot') | 58 | deps.append('virtual/fakeroot-native:do_populate_sysroot') |
59 | d.setVarFlag('do_package_write_tar', 'depends', " ".join(deps)) | 59 | d.setVarFlag('do_package_write_tar', 'depends', " ".join(deps)) |
diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass index d417800b22..d5c38fef74 100644 --- a/meta/classes/rootfs_ipk.bbclass +++ b/meta/classes/rootfs_ipk.bbclass | |||
@@ -28,7 +28,7 @@ MULTILIBRE_ALLOW_REP = "${OPKGLIBDIR}/opkg|/usr/lib/opkg" | |||
28 | python () { | 28 | python () { |
29 | 29 | ||
30 | if d.getVar('BUILD_IMAGES_FROM_FEEDS', True): | 30 | if d.getVar('BUILD_IMAGES_FROM_FEEDS', True): |
31 | flags = d.getVarFlag('do_rootfs', 'recrdeptask') | 31 | flags = d.getVarFlag('do_rootfs', 'recrdeptask', True) |
32 | flags = flags.replace("do_package_write_ipk", "") | 32 | flags = flags.replace("do_package_write_ipk", "") |
33 | flags = flags.replace("do_deploy", "") | 33 | flags = flags.replace("do_deploy", "") |
34 | flags = flags.replace("do_populate_sysroot", "") | 34 | flags = flags.replace("do_populate_sysroot", "") |
diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass index b4cd55b289..0d2e897c2b 100644 --- a/meta/classes/rootfs_rpm.bbclass +++ b/meta/classes/rootfs_rpm.bbclass | |||
@@ -31,7 +31,7 @@ do_populate_sdk[lockfiles] += "${DEPLOY_DIR_RPM}/rpm.lock" | |||
31 | 31 | ||
32 | python () { | 32 | python () { |
33 | if d.getVar('BUILD_IMAGES_FROM_FEEDS', True): | 33 | if d.getVar('BUILD_IMAGES_FROM_FEEDS', True): |
34 | flags = d.getVarFlag('do_rootfs', 'recrdeptask') | 34 | flags = d.getVarFlag('do_rootfs', 'recrdeptask', True) |
35 | flags = flags.replace("do_package_write_rpm", "") | 35 | flags = flags.replace("do_package_write_rpm", "") |
36 | flags = flags.replace("do_deploy", "") | 36 | flags = flags.replace("do_deploy", "") |
37 | flags = flags.replace("do_populate_sysroot", "") | 37 | flags = flags.replace("do_populate_sysroot", "") |
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass index 37af46f3e8..3986340f46 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass | |||
@@ -194,7 +194,7 @@ def exportTests(d,tc): | |||
194 | savedata["target"]["server_ip"] = tc.target.server_ip or d.getVar("TEST_SERVER_IP", True) | 194 | savedata["target"]["server_ip"] = tc.target.server_ip or d.getVar("TEST_SERVER_IP", True) |
195 | 195 | ||
196 | keys = [ key for key in d.keys() if not key.startswith("_") and not key.startswith("BB") \ | 196 | keys = [ key for key in d.keys() if not key.startswith("_") and not key.startswith("BB") \ |
197 | and not key.startswith("B_pn") and not key.startswith("do_") and not d.getVarFlag(key, "func")] | 197 | and not key.startswith("B_pn") and not key.startswith("do_") and not d.getVarFlag(key, "func", True)] |
198 | for key in keys: | 198 | for key in keys: |
199 | try: | 199 | try: |
200 | savedata["d"][key] = d.getVar(key, True) | 200 | savedata["d"][key] = d.getVar(key, True) |
diff --git a/meta/classes/typecheck.bbclass b/meta/classes/typecheck.bbclass index 72da932232..6bff7c7138 100644 --- a/meta/classes/typecheck.bbclass +++ b/meta/classes/typecheck.bbclass | |||
@@ -5,7 +5,7 @@ | |||
5 | python check_types() { | 5 | python check_types() { |
6 | import oe.types | 6 | import oe.types |
7 | for key in e.data.keys(): | 7 | for key in e.data.keys(): |
8 | if e.data.getVarFlag(key, "type"): | 8 | if e.data.getVarFlag(key, "type", True): |
9 | oe.data.typed_value(key, e.data) | 9 | oe.data.typed_value(key, e.data) |
10 | } | 10 | } |
11 | addhandler check_types | 11 | addhandler check_types |
diff --git a/meta/classes/utility-tasks.bbclass b/meta/classes/utility-tasks.bbclass index f62d523f5a..5bcfd0b72c 100644 --- a/meta/classes/utility-tasks.bbclass +++ b/meta/classes/utility-tasks.bbclass | |||
@@ -4,12 +4,12 @@ python do_listtasks() { | |||
4 | taskdescs = {} | 4 | taskdescs = {} |
5 | maxlen = 0 | 5 | maxlen = 0 |
6 | for e in d.keys(): | 6 | for e in d.keys(): |
7 | if d.getVarFlag(e, 'task'): | 7 | if d.getVarFlag(e, 'task', True): |
8 | maxlen = max(maxlen, len(e)) | 8 | maxlen = max(maxlen, len(e)) |
9 | if e.endswith('_setscene'): | 9 | if e.endswith('_setscene'): |
10 | desc = "%s (setscene version)" % (d.getVarFlag(e[:-9], 'doc') or '') | 10 | desc = "%s (setscene version)" % (d.getVarFlag(e[:-9], 'doc', True) or '') |
11 | else: | 11 | else: |
12 | desc = d.getVarFlag(e, 'doc') or '' | 12 | desc = d.getVarFlag(e, 'doc', True) or '' |
13 | taskdescs[e] = desc | 13 | taskdescs[e] = desc |
14 | 14 | ||
15 | tasks = sorted(taskdescs.keys()) | 15 | tasks = sorted(taskdescs.keys()) |