summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2016-02-15 22:46:02 -0800
committerKhem Raj <raj.khem@gmail.com>2016-02-15 22:46:02 -0800
commitc32bf4510f65049a2a76060a8fb013cbd4432a3d (patch)
treed0aea152e6604d545b02cc41f6017c06b063abce
parent82794e84c89ffbaa65fe8e938e15f2088573706f (diff)
parent78791d688d1f0c833815e48af4333d975a610e63 (diff)
downloadmeta-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.bbclass19
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
35def clang_dep_prepend(d): 35def 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
51CLANGDEPENDS = "${@clang_dep_prepend(d)}" 41BASEDEPENDS_remove_toolchain-clang_class-target = "virtual/${TARGET_PREFIX}gcc"
52 42BASEDEPENDS_append_toolchain-clang_class-target = "${@clang_dep_prepend(d)}"
53DEPENDS_prepend_toolchain-clang_class-target = "${CLANGDEPENDS} "