blob: 9828d533704d8e3618a4e005880c3765d1421dde (
plain)
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 = "Cross compiler wrappers for LLVM based C/C++ compiler"
HOMEPAGE = "http://clang.llvm.org/"
LICENSE = "NCSA"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/NCSA;md5=1b5fdec70ee13ad8a91667f16c1959d7"
SECTION = "devel"
PN = "clang-cross-${TARGET_ARCH}"
require clang.inc
inherit cross
DEPENDS += "clang-native binutils-cross-${TARGET_ARCH} virtual/${TARGET_PREFIX}libc-for-gcc"
S = "${WORKDIR}"
do_install() {
install -d ${D}${bindir}
ln -sf ../clang ${D}${bindir}/${TARGET_PREFIX}clang
ln -sf ../clang++ ${D}${bindir}/${TARGET_PREFIX}clang++
}
SYSROOT_PREPROCESS_FUNCS += "clangcross_sysroot_preprocess"
clangcross_sysroot_preprocess () {
sysroot_stage_dir ${D}${bindir} ${SYSROOT_DESTDIR}${bindir}
}
SSTATE_SCAN_FILES += "*-clang *-clang++"
PACKAGES = ""
|