Hi

On Wed, Sep 6, 2023 at 11:03 AM Max Krummenacher via
lists.yoctoproject.org <[email protected]>
wrote:
>
> From: Max Krummenacher <[email protected]>
>
> If usrmerge is set the do_rootfs task creates symlinks for the base
> directories to their equivalent /usr/ directories and thus installs
> the files in /usr/{bin|lib|...} by following the symlinks.
> There is no need to do the move already here.
>
> This prevents a build error should a subsequent bitbake execution
> rerun do_install where the sources to 'mv' no longer exist.
> | mv: cannot stat 
> 'ti-img-rogue-umlibs/23.1.6404501/git/targetfs/am62_linux/lws-generic/release/lib/firmware':
>  No such file or directory
>
> Signed-off-by: Max Krummenacher <[email protected]>
> ---
>  .../powervr-umlibs/ti-img-rogue-umlibs_23.1.6404501.bb         | 3 ---
>  1 file changed, 3 deletions(-)
>
> diff --git 
> a/meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-img-rogue-umlibs_23.1.6404501.bb
>  
> b/meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-img-rogue-umlibs_23.1.6404501.bb
> index 9b45a91f..8033322c 100644
> --- 
> a/meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-img-rogue-umlibs_23.1.6404501.bb
> +++ 
> b/meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-img-rogue-umlibs_23.1.6404501.bb
> @@ -67,9 +67,6 @@ do_install:prepend() {
>              rm -rf ${file}
>          done
>      fi
> -    if ${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', 'true', 'false', 
> d)}; then
> -        mv ${S}/lib/firmware ${S}${nonarch_base_libdir}
> -    fi

While the described issue is real, this is not the fix. When building
from scratch I now get a QA error about usrmerge.
Will send a V2 with a better tested solution.
Sorry about the noise.

Max

>
>      # clean up any empty directories
>      find "${S}" -empty -type d -delete
> --
> 2.35.3
>
>
> 
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#16921): 
https://lists.yoctoproject.org/g/meta-ti/message/16921
Mute This Topic: https://lists.yoctoproject.org/mt/101188984/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to