diff options
author | Khem Raj <raj.khem@gmail.com> | 2015-07-23 22:52:42 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2015-07-23 22:52:42 -0700 |
commit | abd6d72c0ae56ce1879d411f08beab161fae089d (patch) | |
tree | c7dc6c9f7a98332f4d6850c5cd14bad2beeb46ea | |
parent | c5a27009db033296291c94c3ef03559a254a7dce (diff) | |
download | meta-clang-abd6d72c0ae56ce1879d411f08beab161fae089d.tar.gz |
clang--cross-canadian,clang-cross: Fix missing dependencies
These deps makes sure that when the individual target is built then it
bullds a working tool
no need to stage into ${D}${bindir_crossscripts} unnecessarily
when staging code is undoing that
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | recipes-devtools/clang/clang-cross-canadian_git.bb | 2 | ||||
-rw-r--r-- | recipes-devtools/clang/clang-cross_git.bb | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/recipes-devtools/clang/clang-cross-canadian_git.bb b/recipes-devtools/clang/clang-cross-canadian_git.bb index b6e74fd..ab0f2bf 100644 --- a/recipes-devtools/clang/clang-cross-canadian_git.bb +++ b/recipes-devtools/clang/clang-cross-canadian_git.bb | |||
@@ -12,7 +12,7 @@ PN = "clang-cross-canadian-${TRANSLATED_TARGET_ARCH}" | |||
12 | require clang.inc | 12 | require clang.inc |
13 | inherit cross-canadian | 13 | inherit cross-canadian |
14 | 14 | ||
15 | DEPENDS += "nativesdk-clang binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} virtual/${HOST_PREFIX}binutils-crosssdk" | 15 | DEPENDS += "nativesdk-clang binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} virtual/${HOST_PREFIX}binutils-crosssdk virtual/nativesdk-${HOST_PREFIX}libc-for-gcc" |
16 | # We have to point gcc at a sysroot but we don't need to rebuild if this changes | 16 | # We have to point gcc at a sysroot but we don't need to rebuild if this changes |
17 | # e.g. we switch between different machines with different tunes. | 17 | # e.g. we switch between different machines with different tunes. |
18 | EXTRA_OECONF_PATHS[vardepsexclude] = "TUNE_PKGARCH" | 18 | EXTRA_OECONF_PATHS[vardepsexclude] = "TUNE_PKGARCH" |
diff --git a/recipes-devtools/clang/clang-cross_git.bb b/recipes-devtools/clang/clang-cross_git.bb index 15ab38d..9828d53 100644 --- a/recipes-devtools/clang/clang-cross_git.bb +++ b/recipes-devtools/clang/clang-cross_git.bb | |||
@@ -11,20 +11,20 @@ PN = "clang-cross-${TARGET_ARCH}" | |||
11 | 11 | ||
12 | require clang.inc | 12 | require clang.inc |
13 | inherit cross | 13 | inherit cross |
14 | DEPENDS += "clang-native binutils-cross-${TARGET_ARCH}" | 14 | DEPENDS += "clang-native binutils-cross-${TARGET_ARCH} virtual/${TARGET_PREFIX}libc-for-gcc" |
15 | 15 | ||
16 | S = "${WORKDIR}" | 16 | S = "${WORKDIR}" |
17 | 17 | ||
18 | do_install() { | 18 | do_install() { |
19 | install -d ${D}${bindir_crossscripts}/ | 19 | install -d ${D}${bindir} |
20 | ln -sf ../clang ${D}${bindir_crossscripts}/${TARGET_PREFIX}clang | 20 | ln -sf ../clang ${D}${bindir}/${TARGET_PREFIX}clang |
21 | ln -sf ../clang++ ${D}${bindir_crossscripts}/${TARGET_PREFIX}clang++ | 21 | ln -sf ../clang++ ${D}${bindir}/${TARGET_PREFIX}clang++ |
22 | } | 22 | } |
23 | 23 | ||
24 | SYSROOT_PREPROCESS_FUNCS += "clangcross_sysroot_preprocess" | 24 | SYSROOT_PREPROCESS_FUNCS += "clangcross_sysroot_preprocess" |
25 | 25 | ||
26 | clangcross_sysroot_preprocess () { | 26 | clangcross_sysroot_preprocess () { |
27 | sysroot_stage_dir ${D}${bindir_crossscripts} ${SYSROOT_DESTDIR}${bindir} | 27 | sysroot_stage_dir ${D}${bindir} ${SYSROOT_DESTDIR}${bindir} |
28 | } | 28 | } |
29 | SSTATE_SCAN_FILES += "*-clang *-clang++" | 29 | SSTATE_SCAN_FILES += "*-clang *-clang++" |
30 | PACKAGES = "" | 30 | PACKAGES = "" |