[yocto] how to copy a tar file to Root file system

Swapna.Gurumani at microchip.com Swapna.Gurumani at microchip.com
Tue Nov 1 11:45:02 PDT 2016


Hello,
Every step I take close, I take 2 back :(
My bb now looks like the one attached. I had to add each folder for FILES_${PN} contrary to your advice otherwise I got the following error:
ERROR: crank-1.0-r2 do_package: QA Issue: crank: Files/directories were installed but not shipped in any package:
  /opt
  /opt/crank
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
crank: 2 installed and not shipped files. [installed-vs-shipped]



I am now getting the following error:
ERROR: crank-1.0-r2 do_install: Function failed: do_install (log file is located at /home/swapna/workspace/work/yocto/poky/build-atmel/tmp/work/cortexa5hf-neon-poky-linux-gnueabi/crank/1.0-r2/temp/log.do_install.26457)
ERROR: Logfile of failure stored in: /home/swapna/workspace/work/yocto/poky/build-atmel/tmp/work/cortexa5hf-neon-poky-linux-gnueabi/crank/1.0-r2/temp/log.do_install.26457
Log data follows:
| DEBUG: Executing shell function do_install
| cp: cannot stat '/home/swapna/workspace/work/yocto/poky/build-atmel/tmp/work/cortexa5hf-neon-poky-linux-gnueabi/crank/1.0-r2/crank': No such file or directory
| WARNING: /home/swapna/workspace/work/yocto/poky/build-atmel/tmp/work/cortexa5hf-neon-poky-linux-gnueabi/crank/1.0-r2/temp/run.do_install.26457:1 exit 1 from 'cp -a --no-preserve=ownership /home/swapna/workspace/work/yocto/poky/build-atmel/tmp/work/cortexa5hf-neon-poky-linux-gnueabi/crank/1.0-r2/crank /home/swapna/workspace/work/yocto/poky/build-atmel/tmp/work/cortexa5hf-neon-poky-linux-gnueabi/crank/1.0-r2/image/opt/'
| ERROR: Function failed: do_install (log file is located at /home/swapna/workspace/work/yocto/poky/build-atmel/tmp/work/cortexa5hf-neon-poky-linux-gnueabi/crank/1.0-r2/temp/log.do_install.26457)
ERROR: Task 1082 (/home/swapna/workspace/work/yocto/meta-atmel/qt5-layer/recipes-qt/apps/crank_1.0.bb, do_install) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3806 tasks of which 3805 didn't need to be rerun and 1 failed.
No currently running tasks (3034 of 4662)

Summary: 1 task failed:
  /home/swapna/workspace/work/yocto/meta-atmel/qt5-layer/recipes-qt/apps/crank_1.0.bb, do_install
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.



Also if I look into the 
/home/swapna/workspace/work/yocto/poky/build-atmel/tmp/work/cortexa5hf-neon-poky-linux-gnueabi/crank/1.0-r2
It is empty.
Could you please help me with this?
Regards
Swapna



-----Original Message-----
From: Paul Eggleton [mailto:paul.eggleton at linux.intel.com] 
Sent: Monday, October 31, 2016 11:59 PM
To: Swapna Gurumani - C40450 <Swapna.Gurumani at microchip.com>
Cc: yocto at yoctoproject.org
Subject: Re: [yocto] how to copy a tar file to Root file system

On Tue, 01 Nov 2016 04:03:58 Swapna.Gurumani at microchip.com wrote:
> With the attached recipe I get the following error:
> ERROR: crank-1.0-r0 do_package: QA Issue: crank: Files/directories 
> were installed but not shipped in any package: /opt
>   /opt/sb_launch.sh
>   /opt/clear_buffers
>   /opt/runsb.sh
>   /opt/README.txt

Ah, I think you need this line first in do_install:

    install -d ${D}/opt/crank

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crank_1.0.bb
Type: application/octet-stream
Size: 935 bytes
Desc: crank_1.0.bb
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20161101/00e45013/attachment.obj>


More information about the yocto mailing list