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 <nicolas.dechesne@linaro.org>
This commit is contained in:
Nicolas Dechesne
2016-10-02 22:11:34 +01:00
parent a8a3371aad
commit 4e798cbbec

View File

@@ -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