diff options
| -rw-r--r-- | meta/classes/base.bbclass | 19 | ||||
| -rw-r--r-- | meta/classes/utils.bbclass | 3 |
2 files changed, 2 insertions, 20 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 2c71571b3f..4cb5732c79 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
| @@ -103,18 +103,6 @@ DEPENDS_prepend="${@base_dep_prepend(d)} " | |||
| 103 | DEPENDS_virtclass-native_prepend="${@base_dep_prepend(d)} " | 103 | DEPENDS_virtclass-native_prepend="${@base_dep_prepend(d)} " |
| 104 | DEPENDS_virtclass-nativesdk_prepend="${@base_dep_prepend(d)} " | 104 | DEPENDS_virtclass-nativesdk_prepend="${@base_dep_prepend(d)} " |
| 105 | 105 | ||
| 106 | |||
| 107 | def base_set_filespath(path, d): | ||
| 108 | filespath = [] | ||
| 109 | extrapaths = (bb.data.getVar("FILESEXTRAPATHS", d, True) or "").split() | ||
| 110 | path = extrapaths + path | ||
| 111 | # The ":" ensures we have an 'empty' override | ||
| 112 | overrides = (bb.data.getVar("OVERRIDES", d, 1) or "") + ":" | ||
| 113 | for p in path: | ||
| 114 | for o in overrides.split(":"): | ||
| 115 | filespath.append(os.path.join(p, o)) | ||
| 116 | return ":".join(filespath) | ||
| 117 | |||
| 118 | FILESPATH = "${@base_set_filespath([ "${FILE_DIRNAME}/${PF}", "${FILE_DIRNAME}/${P}", "${FILE_DIRNAME}/${PN}", "${FILE_DIRNAME}/${BP}", "${FILE_DIRNAME}/${BPN}", "${FILE_DIRNAME}/files", "${FILE_DIRNAME}" ], d)}" | 106 | FILESPATH = "${@base_set_filespath([ "${FILE_DIRNAME}/${PF}", "${FILE_DIRNAME}/${P}", "${FILE_DIRNAME}/${PN}", "${FILE_DIRNAME}/${BP}", "${FILE_DIRNAME}/${BPN}", "${FILE_DIRNAME}/files", "${FILE_DIRNAME}" ], d)}" |
| 119 | # THISDIR only works properly with imediate expansion as it has to run | 107 | # THISDIR only works properly with imediate expansion as it has to run |
| 120 | # in the context of the location its used (:=) | 108 | # in the context of the location its used (:=) |
| @@ -607,13 +595,6 @@ python () { | |||
| 607 | bb.data.setVar('MULTIMACH_ARCH', multiarch, d) | 595 | bb.data.setVar('MULTIMACH_ARCH', multiarch, d) |
| 608 | } | 596 | } |
| 609 | 597 | ||
| 610 | def check_app_exists(app, d): | ||
| 611 | from bb import which, data | ||
| 612 | |||
| 613 | app = data.expand(app, d) | ||
| 614 | path = data.getVar('PATH', d, 1) | ||
| 615 | return len(which(path, app)) != 0 | ||
| 616 | |||
| 617 | def check_gcc3(data): | 598 | def check_gcc3(data): |
| 618 | 599 | ||
| 619 | gcc3_versions = 'gcc-3.4.6 gcc-3.4.7 gcc-3.4 gcc34 gcc-3.4.4 gcc-3.3 gcc33 gcc-3.3.6 gcc-3.2 gcc32' | 600 | gcc3_versions = 'gcc-3.4.6 gcc-3.4.7 gcc-3.4 gcc34 gcc-3.4.4 gcc-3.3 gcc33 gcc-3.3.6 gcc-3.2 gcc32' |
diff --git a/meta/classes/utils.bbclass b/meta/classes/utils.bbclass index ae6fb0d719..02e803a702 100644 --- a/meta/classes/utils.bbclass +++ b/meta/classes/utils.bbclass | |||
| @@ -386,8 +386,9 @@ def explode_deps(s): | |||
| 386 | return bb.utils.explode_deps(s) | 386 | return bb.utils.explode_deps(s) |
| 387 | 387 | ||
| 388 | def base_set_filespath(path, d): | 388 | def base_set_filespath(path, d): |
| 389 | bb.note("base_set_filespath usage is deprecated, %s should be fixed" % d.getVar("P", 1)) | ||
| 390 | filespath = [] | 389 | filespath = [] |
| 390 | extrapaths = (bb.data.getVar("FILESEXTRAPATHS", d, True) or "").split() | ||
| 391 | path = extrapaths + path | ||
| 391 | # The ":" ensures we have an 'empty' override | 392 | # The ":" ensures we have an 'empty' override |
| 392 | overrides = (bb.data.getVar("OVERRIDES", d, 1) or "") + ":" | 393 | overrides = (bb.data.getVar("OVERRIDES", d, 1) or "") + ":" |
| 393 | for p in path: | 394 | for p in path: |
