* new recipe file to extract the tar.gz in to root directory #hardknott
@ 2023-06-05 17:47 Mahendra Sondagar
2023-06-06 9:34 ` [yocto] " Ross Burton
0 siblings, 1 reply; 2+ messages in thread
From: Mahendra Sondagar @ 2023-06-05 17:47 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 1773 bytes --]
Hello geeks
Hope all are well
I need to create the Yocto recipe to extract the local tra.gz based project files in to root directory
here is my recipe contents
###############################################################
SUMMARY = "Eyesite Application"
LICENSE = "MIT"
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
FILES_${PN} += "/eyesite"
SRC_URI = "file://eyesite.tar.gz"
S = "${WORKDIR}"
do_unpack() {
# Extract the tar.gz file
tar -xf ${WORKDIR}/eyesite.tar.gz -C ${WORKDIR}
}
do_install() {
# Create the eyesite directory in the root
install -d ${D}/eyesite
# Install the extracted application
cp -r ${WORKDIR}/eyesite ${D}/eyesite
}
#################################################################
The file structure is as follows under the *recipe-app* file
├── eyesite
│ ├── eyesite_1.0.bb
│ └── files
│ └── eyesite.tar.gz
I'm getting below Yocto error during the building
########################################################
Log data follows:
| DEBUG: Executing shell function do_unpack
| tar: /home/mahi/Documents/AIO_System/var-fslc-yocto/build_aio/tmp/work/cortexa7t2hf-neon-fslc-linux-gnueabi/eyesite/1.0-r0/eyesite.tar.gz: Cannot open: No such file or directory
| tar: Error is not recoverable: exiting now
| WARNING: exit code 2 from a shell command.
| ERROR: ExecutionError('/home/mahi/Documents/AIO_System/var-fslc-yocto/build_aio/tmp/work/cortexa7t2hf-neon-fslc-linux-gnueabi/eyesite/1.0-r0/temp/run.do_unpack.82783', 2, None, None)
########################################################
Can anyone help me here ?
Thanks
[-- Attachment #2: Type: text/html, Size: 2213 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [yocto] new recipe file to extract the tar.gz in to root directory #hardknott
2023-06-05 17:47 new recipe file to extract the tar.gz in to root directory #hardknott Mahendra Sondagar
@ 2023-06-06 9:34 ` Ross Burton
0 siblings, 0 replies; 2+ messages in thread
From: Ross Burton @ 2023-06-06 9:34 UTC (permalink / raw)
To: mahendrasondagar08; +Cc: Yocto-mailing-list
On 5 Jun 2023, at 18:47, Mahendra Sondagar via lists.yoctoproject.org <mahendrasondagar08=gmail.com@lists.yoctoproject.org> wrote:
> FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
This is only needed in bbappends.
> LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
Ideally this points at a license statement inside your tarballs.
> do_unpack() {
> # Extract the tar.gz file
> tar -xf ${WORKDIR}/eyesite.tar.gz -C ${WORKDIR}
> }
Why are you manually unpacking the tarball? Delete this and let the default unpack handle this, setting S as appropriate depending on the content of the tarball.
Ross
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-06-06 9:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-05 17:47 new recipe file to extract the tar.gz in to root directory #hardknott Mahendra Sondagar
2023-06-06 9:34 ` [yocto] " Ross Burton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).