diff options
author | Khem Raj <raj.khem@gmail.com> | 2016-02-15 22:46:02 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2016-02-15 22:46:02 -0800 |
commit | c32bf4510f65049a2a76060a8fb013cbd4432a3d (patch) | |
tree | d0aea152e6604d545b02cc41f6017c06b063abce | |
parent | 82794e84c89ffbaa65fe8e938e15f2088573706f (diff) | |
parent | 78791d688d1f0c833815e48af4333d975a610e63 (diff) | |
download | meta-clang-c32bf4510f65049a2a76060a8fb013cbd4432a3d.tar.gz |
Merge pull request #3 from kergoth/drop-gcc-deps
clang.bbclass: remove gcc from deps when appropriate
-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} " | ||