create symbolic link in bitbake recipe

前端 未结 6 1691
挽巷
挽巷 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:37

    You can do:

    ln -s ../lib/ld-2.26.so ${D}/lib64/ld-linux-x86-64.so.2
    

    or if you don't require the symbolic-link until after your target system has booted up (i.e. it's not a dependency of other packages you are building) you can also do:

    ln -s /lib/ld-2.26.so ${D}/lib64/ld-linux-x86-64.so.2
    

    ln doesn't care if your target is valid or exists when a symbolic-link is created. It will become valid after you boot your target-system (or somehow mount this filesystem to /). But indeed, relative links are recommended.

提交回复
热议问题