rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | # Copyright (C) 2014 Khem Raj <raj.khem@gmail.com> |
| 2 | # Released under the MIT license (see COPYING.MIT for the terms) |
| 3 | |
| 4 | DESCRIPTION = "SDK Cross compiler wrappers for LLVM based C/C++ compiler" |
| 5 | HOMEPAGE = "http://clang.llvm.org/" |
| 6 | LICENSE = "NCSA" |
| 7 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/NCSA;md5=1b5fdec70ee13ad8a91667f16c1959d7" |
| 8 | SECTION = "devel" |
| 9 | |
| 10 | inherit nativesdk |
| 11 | DEPENDS += "nativesdk-clang" |
| 12 | |
| 13 | do_install() { |
| 14 | install -d ${D}${prefix_nativesdk} |
| 15 | cd ${D}${prefix_nativesdk} |
| 16 | ln -s ..${libdir} . |
| 17 | ln -s ..${includedir} . |
| 18 | cd .. |
| 19 | ln -s .${base_libdir} . |
| 20 | } |
| 21 | |
| 22 | sysroot_stage_all () { |
| 23 | sysroot_stage_dir ${D} ${SYSROOT_DESTDIR} |
| 24 | } |
| 25 | |
| 26 | FILES_${PN} += "${prefix_nativesdk} ${base_libdir_nativesdk}" |
| 27 | FILES_${PN}-dbg = "" |
| 28 | |
| 29 | deltask do_configure |
| 30 | deltask do_compile |
| 31 | deltask do_patch |
| 32 | deltask do_fetch |
| 33 | deltask do_unpack |