imx8mp: multilib: sdma-imx7d.bin in linux-firmware conflicts with firmware-imx-sdma-imx7d

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

imx8mp: multilib: sdma-imx7d.bin in linux-firmware conflicts with firmware-imx-sdma-imx7d

1,243 次查看
KenKurematsu
Contributor I

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.

https://source.codeaurora.org/external/imx/meta-imx/tree/meta-bsp/recipes-kernel/linux-firmware/linu...

    # 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...

https://source.codeaurora.org/external/imx/meta-imx/tree/meta-bsp/recipes-kernel/linux-firmware/linu...

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
}

 

0 项奖励
回复
0 回复数