-
Notifications
You must be signed in to change notification settings - Fork 206
/
clang-cross-canadian_git.bb
30 lines (23 loc) · 1.13 KB
/
clang-cross-canadian_git.bb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Copyright (C) 2014 Khem Raj <raj.khem@gmail.com>
# Released under the MIT license (see COPYING.MIT for the terms)
DESCRIPTION = "Clang/LLVM based C/C++ compiler (cross-canadian for ${TARGET_ARCH} target)"
HOMEPAGE = "http://clang.llvm.org/"
LICENSE = "NCSA"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/NCSA;md5=1b5fdec70ee13ad8a91667f16c1959d7"
SECTION = "devel"
PN = "clang-cross-canadian-${TRANSLATED_TARGET_ARCH}"
require clang.inc
inherit cross-canadian
DEPENDS += "nativesdk-clang binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} virtual/${HOST_PREFIX}binutils-crosssdk virtual/nativesdk-${HOST_PREFIX}libc-for-gcc"
# We have to point gcc at a sysroot but we don't need to rebuild if this changes
# e.g. we switch between different machines with different tunes.
EXTRA_OECONF_PATHS[vardepsexclude] = "TUNE_PKGARCH"
TARGET_ARCH[vardepsexclude] = "TUNE_ARCH"
S = "${WORKDIR}"
do_install() {
install -d ${D}${bindir}
ln -sf ../clang ${D}${bindir}/${TARGET_PREFIX}clang
ln -sf ../clang++ ${D}${bindir}/${TARGET_PREFIX}clang++
cross_canadian_bindirlinks
}
SSTATE_SCAN_FILES += "*-clang *-clang++"