Hello.
When I tried to build the imx-image-multimedia recipe SDK in a multilib environment (bitbake imx-image-multimedia -c populate_sdk),
I got the following error.
Error: Transaction test error: file /lib/firmware/imx/sdma/sdma-imx7d.bin from install of linux-firmware-1:20210818-r0.cortexa53_crypto conflicts with file from package firmware-imx-sdma-imx7d-1:8.14-r0.cortexa53_crypto
branch :imx-linux-hardknott
manifest:imx-5.10.72-2.2.2.xml
machine :imx8mp-lpddr4-evk
meta-imx seems to try to remove the firmware of sdma in linux-firmware_%.bbappend,
In a multilib environment, the following base_libdir becomes lib64 and it seems that it cannot be deleted.
Looking at the surrounding code, it looks like nonarch_base_libdir is correct, not base_libdir.
# No need to do install for imx sdma binaries
if [ -d ${D}${base_libdir}/firmware/imx/sdma ]; then
rm -rf ${D}${base_libdir}/firmware/imx/sdma
fi
Also, the latest (kirkstone-5.15.32-2.0.0) seemed to be the same...
To NXP:
I avoided it by adding bbappend as below, but is there any problem with this workaround?
do_install_append () {
if [ -d ${D}${nonarch_base_libdir}/firmware/imx/sdma ]; then
rm -rf ${D}${nonarch_base_libdir}/firmware/imx/sdma
fi
}