From 4e798cbbec08b31362afa3eab8fc103f9d26b970 Mon Sep 17 00:00:00 2001 From: Nicolas Dechesne Date: Sun, 2 Oct 2016 22:11:34 +0100 Subject: [PATCH] linux-qcom-bootimg: set LD_LIBRARY_PATH as required by dtbtool Since the last upgrade of skales recipes, it now loads libfdt.so directly (from python using ctypes), so we need to set LD_LIBRARY_PATH so that it will find the library in the relevant sysroot. Signed-off-by: Nicolas Dechesne --- recipes-kernel/linux/linux-qcom-bootimg.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes-kernel/linux/linux-qcom-bootimg.inc b/recipes-kernel/linux/linux-qcom-bootimg.inc index c3b7692..6c9b41f 100644 --- a/recipes-kernel/linux/linux-qcom-bootimg.inc +++ b/recipes-kernel/linux/linux-qcom-bootimg.inc @@ -12,6 +12,7 @@ do_deploy_append() { mkbootimg_dtarg="" if [ "${QCOM_BOOTIMG_BUNDLE_DT}" = "1" ]; then + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${STAGING_LIBDIR_NATIVE}" dtbTool -o ${DEPLOYDIR}/${DT_IMAGE_BASE_NAME}.img -s ${QCOM_BOOTIMG_PAGE_SIZE} ${B}/arch/${ARCH}/boot/dts/qcom/ mkbootimg_dtarg="--dt ${DEPLOYDIR}/${DT_IMAGE_BASE_NAME}.img" ln -sf ${DT_IMAGE_BASE_NAME}.img ${DEPLOYDIR}/${DT_IMAGE_SYMLINK_NAME}.img