llvm-common: move cross script install to sysroot preprocess function
PATCH 1/1 llvm-common: move cross script install to sysroot preprocess function
The llvm-config script doesn't get placed in the target sysroot crossscripts directory otherwise.
Signed-off-by Jonathan Liu <[email protected]>
--- meta-oe/recipes-core/llvm/llvm-common.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
meta-oe/recipes-core/llvm/llvm-common.bb +4 -1
@@ -6,7 +6,10 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3 SRC_URI = "file://llvm-config" -do_install() { +SYSROOT_PREPROCESS_FUNCS += "llvm_common_sysroot_preprocess" +SYSROOT_PREPROCESS_FUNCS_virtclass-native += "" + +llvm_common_sysroot_preprocess() { install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}/ install -m 0755 ${WORKDIR}/llvm-config ${SYSROOT_DESTDIR}${bindir_crossscripts}/ }
Signature · 1 line
1.8.3