All of lore.kernel.org
 help / color / mirror / Atom feed
From: Quentin Schulz <quentin.schulz@theobroma-systems.com>
To: Mahendra Sondagar <mahendrasondagar08@gmail.com>,
	yocto@lists.yoctoproject.org
Subject: Re: [yocto] install: cannot create regular file Permission denied #dunfell
Date: Thu, 15 Sep 2022 10:01:31 +0200	[thread overview]
Message-ID: <be99343d-b441-7680-cb83-c22afe57820c@theobroma-systems.com> (raw)
In-Reply-To: <OPcU.1663179386288137669.KD6c@lists.yoctoproject.org>

Hi Mahendra,

On 9/14/22 20:16, Mahendra Sondagar wrote:
> Hi.. there
> 
> Hope all are doing well
> 
> I'm working with the Yocto dunfell branch with the STM32MP1
> My goal is to add the test.sh script in to the rootfs of the Yocto custom image (in to the bindir)
> 
> That's how, i have created the recipes file called "recipes-support"
> Inside that, i have created "net-cfg" file
> the files under net-cfg file at where, i have kept test.sh file
> here is the tree structure
> 
> .
> └── net-cfg
> ├── files
> │   └── test.sh
> └── net-cfg_1.0.bb
> 
> I have installed the image with the custom-image.bb file as a
> IMAGE_INSTALL += "net-cfg"
> 
> The content of the net-cfg_1.0.bb are as follows
> --------------------------------------------------------------------------------------
> SUMMARY= "Script files for the testing"
> SRC_URI = " file://test.sh"
> 
> LICENSE = "CLOSED"
> 
> do_install() {
> install -d ${D}${bindir}
> install -m 0755 ${WORKDIR}/test.sh ${D}${bindir} /

Spurious slash at the end of the line, it tries to install 
${WORKDIR}/test.sh and ${D}${bindir} to / (root directory of your build 
machine).

Just remove it.

Cheers,
Quentin


  parent reply	other threads:[~2022-09-15  8:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-14 18:16 install: cannot create regular file Permission denied #dunfell Mahendra Sondagar
2022-09-14 21:57 ` [yocto] " Steve Sakoman
2022-09-15  8:01 ` Quentin Schulz [this message]
2022-09-18 16:39   ` Mahendra Sondagar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=be99343d-b441-7680-cb83-c22afe57820c@theobroma-systems.com \
    --to=quentin.schulz@theobroma-systems.com \
    --cc=mahendrasondagar08@gmail.com \
    --cc=yocto@lists.yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.