diff options
| author | Christopher Larson <chris_larson@mentor.com> | 2016-02-05 10:55:09 -0700 |
|---|---|---|
| committer | Christopher Larson <chris_larson@mentor.com> | 2016-02-15 12:11:52 -0700 |
| commit | 78791d688d1f0c833815e48af4333d975a610e63 (patch) | |
| tree | 97e15aee010abf2a5b04843cbb9817d58ba4a04e /classes | |
| parent | e9def8f1a701e999aace6875195c933545f3c98e (diff) | |
| download | meta-clang-78791d688d1f0c833815e48af4333d975a610e63.tar.gz | |
clang.bbclass: remove gcc from deps when appropriate
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Diffstat (limited to 'classes')
| -rw-r--r-- | classes/clang.bbclass | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/classes/clang.bbclass b/classes/clang.bbclass index b155b15..ed0952b 100644 --- a/classes/clang.bbclass +++ b/classes/clang.bbclass | |||
| @@ -33,21 +33,10 @@ OVERRIDES[vardepsexclude] += "TOOLCHAIN" | |||
| 33 | #DEPENDS_remove_toolchain-clang_allarch = "clang-cross-${TARGET_ARCH}" | 33 | #DEPENDS_remove_toolchain-clang_allarch = "clang-cross-${TARGET_ARCH}" |
| 34 | 34 | ||
| 35 | def clang_dep_prepend(d): | 35 | def clang_dep_prepend(d): |
| 36 | # | ||
| 37 | # Ideally this will check a flag so we will operate properly in | ||
| 38 | # the case where host == build == target, for now we don't work in | ||
| 39 | # that case though. | ||
| 40 | # | ||
| 41 | |||
| 42 | deps = "" | ||
| 43 | # INHIBIT_DEFAULT_DEPS doesn't apply to the patch command. Whether or not | ||
| 44 | # we need that built is the responsibility of the patch function / class, not | ||
| 45 | # the application. | ||
| 46 | if not d.getVar('INHIBIT_DEFAULT_DEPS', False): | 36 | if not d.getVar('INHIBIT_DEFAULT_DEPS', False): |
| 47 | if not oe.utils.inherits(d, 'allarch'): | 37 | if not oe.utils.inherits(d, 'allarch'): |
| 48 | deps += " clang-cross-${TARGET_ARCH} " | 38 | return " clang-cross-${TARGET_ARCH}" |
| 49 | return deps | 39 | return "" |
| 50 | 40 | ||
| 51 | CLANGDEPENDS = "${@clang_dep_prepend(d)}" | 41 | BASEDEPENDS_remove_toolchain-clang_class-target = "virtual/${TARGET_PREFIX}gcc" |
| 52 | 42 | BASEDEPENDS_append_toolchain-clang_class-target = "${@clang_dep_prepend(d)}" | |
| 53 | DEPENDS_prepend_toolchain-clang_class-target = "${CLANGDEPENDS} " | ||
