How do I edit '/etc/ld.so.conf' in a yocto recipe?
0
votes
1
answer
1454
views
As suggested by Zac Anger , i copy this question over here:
I have a yocto recipe in which I copy/install some stuff to an image. After that, I want to add a line to the
/etc/ld.so.conf
file like this, so that the dynamic loader finds my library files:
do_install(){
# install some stuff...
echo /opt/myStuff/lib >> /etc/ld.so.conf
ldconfig
}
During the build process I get the following error which aborts the build process:
...
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_install
| /home/debian/Devel/myYocto/build/tmp/work/myTarget/myRecipe/1.0-r0/temp/run.do_install.3176: 203: cannot create /etc/ld.so.conf: Permission denied
| WARNING: exit code 2 from a shell command.
ERROR: Task (/home/debian/Devel/myYocto/poky/meta-myLayer/myRecipe/myRecipe.bb:do_install) failed with exit code '1'
Now to my question: How do I add a custom path to the dynamic loader by adding a line or editing the /etc/ld.so.conf
file in a yocto recipe?
Asked by schande
(115 rep)
May 24, 2023, 06:15 AM
Last activity: May 24, 2023, 08:18 AM
Last activity: May 24, 2023, 08:18 AM