create symbolic link in bitbake recipe

前端 未结 6 1719
挽巷
挽巷 2021-01-14 02:03

I have a .bbappend recipe that I need to create a symbolic link in my system.

This is how it looks like now:

bernardo@bernardo-ThinkCentre-Edge72:~/y         


        
6条回答
  •  温柔的废话
    2021-01-14 02:42

    The cleanest solution is to use the "-r" flag:

    do_install_append() {
        install -d ${D}/lib64
        ln -s -r ${D}/lib/ld-2.26.so ${D}/lib64/ld-linux-x86-64.so.2 
    }
    

    From the gnu ln man page:

           -r, --relative            create symbolic links relative to link location
    

提交回复
热议问题