cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
3,763 Views
Registered: ‎05-09-2016

Petalinux 2016.4 Can't create folders through install -d

Jump to solution

I am trying to append a few recipes in the meta-user layer. 

In do_install_append() for these recipes I call for example 

install -d ${D}${localstatedir}/temp

When I run 

bitbake -e myrecipe

, I can see that the do_install() function is expanded correctly, and the folder is created in 

build/tmp/work/cortexa9hf-neon-xilinx-linux-gnueabi/myrecipe/1.0-r0/image/var/temp

I do not see this directory in final image, i.e. 

/build/tmp/work/plnx_arm-xilinx.... /petalinux-user-image/1.0-r0/rootfs

or in the directory structure when I am running the application on hardware.

 

Any ideas or things I can try will be helpful, feels like I am missing something simple.

 

 

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Observer
Observer
6,810 Views
Registered: ‎01-17-2017

I think what is happening is are you installing files into those directories? if not it might not be included in the package:

See this thread:

https://lists.yoctoproject.org/pipermail/yocto/2015-February/023529.html

 

From the thread. try adding:

FILES_${PN} += ${localstatedir}/temp

 

View solution in original post

3 Replies
Highlighted
Adventurer
Adventurer
3,738 Views
Registered: ‎06-08-2015

I don't know why your technique isn't working, and I will be interested to read an explanation. In case you're interested in a simple technique that works for me, I created a custom application and followed the procedure described in the "Application Auto Run at Startup" section of UG1144, PetaLinux Tools Documentation Reference Guide. Then my startup script would have a line like:

mkdir /var/temp
0 Kudos
Highlighted
Observer
Observer
6,811 Views
Registered: ‎01-17-2017

I think what is happening is are you installing files into those directories? if not it might not be included in the package:

See this thread:

https://lists.yoctoproject.org/pipermail/yocto/2015-February/023529.html

 

From the thread. try adding:

FILES_${PN} += ${localstatedir}/temp

 

View solution in original post

Highlighted
Adventurer
Adventurer
3,704 Views
Registered: ‎05-09-2016

Yes was exactly that. Thanks.

0 Kudos