meta-digi-arm: update/refresh fsl-eula classes from meta-imx

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2022-07-12 18:03:43 +02:00
parent 83e845c10f
commit 5c0a8c0040
1 changed files with 7 additions and 1 deletions

View File

@ -23,9 +23,15 @@ SCR = "SCR.txt"
do_install () {
install -d ${D}${D_SUBDIR}
cp -r ${S}/* ${D}${D_SUBDIR}
if [ -d "${D}/usr/lib" ] && [ "${D}/usr/lib" != "${D}${libdir}" ]; then
# Adjust for multilib
if [ "${base_libdir}" != "/lib" ] && [ -d "${D}/lib" ]; then
mv ${D}/lib ${D}${base_libdir}
fi
if [ "${libdir}" != "/usr/lib" ] && [ -d "${D}/usr/lib" ]; then
mv ${D}/usr/lib ${D}${libdir}
fi
rm ${D}${D_SUBDIR}/COPYING
if [ ! -f ${D}${D_SUBDIR}/${SCR} ]; then
bbfatal "Missing Software Content Register \"${D}${D_SUBDIR}/${SCR}\""