[bitbake-devel] Pre-installation of software in tar.gz form with Yocto/BitBake
Thibault FARGES
farges.thibault at gmail.com
Wed Oct 31 15:37:09 UTC 2018
Good evening,
I contact you because for several weeks I haven't been able to pre-install
a software in my rootfs with Yocto.
This software is provided to me by the manufacturer of a camera as a
tarball. In this tarball there are other tarballs.
In each of these subtarballs there is a tree of files to copy to the rootfs.
For example we can find in one tarball this type of tree structure:
.
+-- etc
¦ +-- init.d
¦ ¦ +-- cvmgmtd
¦ ¦ +-- siGevSvc
¦ ¦ +-- siLogSvc
¦ +-- ld.so.conf.d
¦ ¦ +-- libcvb.conf
¦ +-- profile.d
¦ ¦ +-- cvb_environment.sh
¦ +-- sudoers.d
¦ ¦ +-- keep_cvb_vars
¦ +-- sysctl.d
¦ ¦ +-- 10-cvb.conf
¦ +-- udev
¦ +-- rules.d
¦ +-- 59-cvb_u3v.rules
+-- lib
¦ +-- systemd
¦ +-- system
¦ +-- cvmgmtd.service
¦ +-- siGevSvc.service
¦ +-- siLogSvc.service
+-- opt
¦ +-- cvb -> cvb-13.01.003
¦ +-- cvb-13.01.003
¦ +-- lib
¦ +-- libCVBase.so -> libCVBase.so.1
¦ +-- libCVBase.so.1 -> libCVBase.so.1.214
¦ +-- libCVBase.so.1.214 -> libCVBase.so.1.214.306
¦
+-- usr
¦ +-- bin
¦ +-- collect-camsuite -> /opt/cvb-13.01.003/bin/collect-camsuite
In order to preinstall this software, I created a Yocto recipe:
.
+-- cvb-software
¦ +-- cvb-software.bb
¦ +-- files
¦ ¦ +-- cvb-software.tar.gz
¦ +-- README
Inspired by the DynamicDevices meta-example :
https://github.com/DynamicDevices/meta-example/blob/master/recipes-example/bbexample/bbexample-lt_1.0.bb
;
I modified the BitBake file so that it will copy all the files from the
tarball into my rootfs:
#----------------------------------------
# This file aims to preinstall the cvb software into the root file system
SUMMARY = "Simple cvb-software application"
SECTION = "PETALINUX/apps"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "
file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
FILESEXTRAPATHS_prepend := “${THISDIR}/${PN}-${PV}:”
SRC_URI = "file://cvb-software.tar.gz "
S = "${WORKDIR}"
inherit autotools
#----------------------------------------
When I build my image/kernel I got the error:
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: cvb-software-1.0-r0 do_compile: oe_runmake failed
ERROR: cvb-software-1.0-r0 do_compile: Function failed: do_compile (log
file is located at
/home/tf/PetalinuxProjects/PLNX/build/tmp/work/aarch64-xilinx-linux/cvb-software/1.0-r0/temp/log.do_compile.23431)
ERROR: Logfile of failure stored in:
/home/tf/PetalinuxProjects/PLNX/build/tmp/work/aarch64-xilinx-linux/cvb-software/1.0-r0/temp/log.do_compile.23431
Log data follows:
| DEBUG: SITE files ['endian-little', 'bit-64', 'arm-common', 'arm-64',
'common-linux', 'common-glibc', 'aarch64-linux', 'common']
| DEBUG: Executing shell function do_compile
| NOTE: make
| ERROR: oe_runmake failed
| make: *** No targets specified and no makefile found. Stop.
| WARNING:
/home/tf/PetalinuxProjects/PLNX/build/tmp/work/aarch64-xilinx-linux/cvb-software/1.0-r0/temp/run.do_compile.23431:1
exit 1 from 'exit 1'
| ERROR: Function failed: do_compile (log file is located at
/home/tf/PetalinuxProjects/PLNX/build/tmp/work/aarch64-xilinx-linux/cvb-software/1.0-r0/temp/log.do_compile.23431)
ERROR: Task
(/home/tf/PetalinuxProjects/PLNX/project-spec/meta-user/recipes-apps/cvb-software/cvb-software.bb:do_compile)
failed with exit code '1'
NOTE: Tasks Summary: Attempted 551 tasks of which 545 didn't need to be
rerun and 1 failed.
Summary: 1 task failed:
/home/tf/PetalinuxProjects/PLNX/project-spec/meta-user/recipes-apps/cvb-software/cvb-software.bb:
do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build cvb-software
Can you help me by telling me what the problem is or what is the best
procedure to follow to pre-install this tarball in my rootfs please?
Have a nice day,
King regards,
Thibault FARGES.
PS: In fact I use Xilinx's Petalinux tool, based on Yocto Project. But
Xilinx support redirected me to you because they can't help me on this
subject.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20181031/6c1b8150/attachment-0002.html>
More information about the bitbake-devel
mailing list