UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Adventurer
Adventurer
3,475 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
Observer tmiddle
Observer
6,522 Views
Registered: ‎01-17-2017

Re: Petalinux 2016.4 Can't create folders through install -d

Jump to solution

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

 

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

Re: Petalinux 2016.4 Can't create folders through install -d

Jump to solution

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
Observer tmiddle
Observer
6,523 Views
Registered: ‎01-17-2017

Re: Petalinux 2016.4 Can't create folders through install -d

Jump to solution

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

 

Adventurer
Adventurer
3,416 Views
Registered: ‎05-09-2016

Re: Petalinux 2016.4 Can't create folders through install -d

Jump to solution

Yes was exactly that. Thanks.

0 Kudos