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: 
Visitor dikon
Visitor
4,350 Views
Registered: ‎02-23-2015

Petalinux 2014.4: Symlinks not preserved in targetroot

Hello,

I'm trying to include some cross-compiled apps to my petalinux project, one of that being ncurses-5.9. The files are being included into the rootfs.cpio file, but all the symbolic links from my apps are de-referenced, leading to an unnecessarily large u-boot image. On the contrary, symbolic links from the linux kernel itself are preserved, e.g. /lib/ld-linux.so.3, which is a link to ld-2.18.so.

For example, <pl_proj_dir>/components/apps/ncurses/data/usr/bin/captoinfo is a symbolic link to the tic program in the same directory. In the build subdirectory, under <pl_proj_dir>/build/linux/rootfs/apps/ncurses/data/usr/bin, captoinfo is still a symbolic link to tic in that same directory. But now, under <pl_proj_dir>/build/linux/rootfs/targetroot/usr/bin, captoinfo suddenly is a real file identical to tic, i.e. a copy. Correspondingly, in the cpio init file <pl_proj_dir>/build/linux/rootfs_init_cpio_file, the entry for capstoinfo starts with

file /usr/bin/capstoinfo ...

instead of

symlink /usr/bin/capstoinfo ...

 

How can this be fixed such that the symlinks in the final rootfs.cpio file are being preserved? The behaviour described above is very bad as it leads to an unnecessarily large image (there are many more symlinks in my apps).

 

Best regards,

dikon

 

0 Kudos
1 Reply
Visitor dikon
Visitor
4,249 Views
Registered: ‎02-23-2015

Re: Petalinux 2014.4: Symlinks not preserved in targetroot

0 Kudos