我有以下目录结构:
.
├── files
│ ├── file1.so
│ ├── file2.so
│ └── fileN.so
└── my-libs.bb
我希望能够将这些复制到 rootfs 中。
首先我做了这个 bitbake,基于这个答案: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/*"
但是,如果我构建这个,如果我将
Files/directories were installed but not shipped with any package
更改为 FILES_${PN} = "/my_libs/*"
,我会得到 FILES_${PN} += "/my_libs"
为了解决这个问题,我调整了食谱:
Could not invoke dnf
构建没问题,但是当我启动 petalinux 映像时,/my_libs 中没有文件。我在这个食谱中缺少什么?