On Wed, Sep 14, 2022 at 8:16 AM Mahendra Sondagar
<[email protected]> 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} /
I don't think you intended to have this space here            ^

That's why it is attempting to install test.sh to /

Steve

> }
>
> FILES_${PN} += "${bindir}/test.sh"
>
> --------------------------------------------------------------------------------------
>
> During the baking the image, i got the error like | install: cannot create 
> regular file '/test.sh': Permission denied
>
> I have attached the full error logs here
>
> Can any one help me here to figure out the issue ?
>
> Thanks
> Mahendra
>
>
> 
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#58045): https://lists.yoctoproject.org/g/yocto/message/58045
Mute This Topic: https://lists.yoctoproject.org/mt/93683834/21656
Mute #dunfell:https://lists.yoctoproject.org/g/yocto/mutehashtag/dunfell
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to