0

I have the following dir structure:

.
├── files
│   ├── file1.so
│   ├── file2.so
│   └── fileN.so
└── my-libs.bb

I wish to be able to copy these into the rootfs.

First I made this bitbake, based off of this answer: https://stackoverflow.com/a/40768781/5907840

SUMMARY = "The shared libraries"
SECTION = "PETALINUX/apps"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

SRC_URI = "file://*"

do_install() {
         install -d ${WORKDIR}/my_libs
         install -m 0755 ${S}/* ${WORKDIR}/my_libs/*
}

FILES_${PN} = "/my_libs/*"

However, if I build this, I get cannot stat <petalinux_dir_to_module>/my-libs/1.0-rc0/my-libs-1.0/*: no such file or directory

When I ls that dir, it is empty, isn't it meant to be the source directory?

What am I missing in this recipe?

uhsl_m
  • 322
  • 3
  • 11
  • The error indicates that bitbake couldn't find `my-libs-1.0` in the target. Also the `install -m` command doesn't have the proper destination. The answer you are referring is not correct, try the other answer from the same link. – rakib_ Mar 08 '23 at 17:54

0 Answers0