diff options
Diffstat (limited to 'recipes-devtools/clang/llvm-common.bb')
| -rw-r--r-- | recipes-devtools/clang/llvm-common.bb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/recipes-devtools/clang/llvm-common.bb b/recipes-devtools/clang/llvm-common.bb new file mode 100644 index 0000000..618cc1e --- /dev/null +++ b/recipes-devtools/clang/llvm-common.bb | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | SUMMARY = "Helper script for OE's llvm support" | ||
| 2 | LICENSE = "MIT" | ||
| 3 | LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \ | ||
| 4 | file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420 \ | ||
| 5 | " | ||
| 6 | |||
| 7 | SRC_URI = "file://llvm-config" | ||
| 8 | |||
| 9 | ALLOW_EMPTY_${PN} = "1" | ||
| 10 | SYSROOT_PREPROCESS_FUNCS_append_class-target = " llvm_common_sysroot_preprocess" | ||
| 11 | |||
| 12 | llvm_common_sysroot_preprocess() { | ||
| 13 | install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}/ | ||
| 14 | install -m 0755 ${WORKDIR}/llvm-config ${SYSROOT_DESTDIR}${bindir_crossscripts}/ | ||
| 15 | } | ||
| 16 | |||
| 17 | do_install_class-native() { | ||
| 18 | install -d ${D}${bindir} | ||
| 19 | install -m 0755 ${WORKDIR}/llvm-config ${D}${bindir} | ||
| 20 | } | ||
| 21 | |||
| 22 | BBCLASSEXTEND = "native" | ||
