![](/img/trans.png)
[英]Yocto/Bitbake recipe for adding empty directory to rootfs Embedded Linux
[英]Yocto image is not adding the files to rootfs
我想在“/etc”中创建一个新文件夹,如下
/etc
----/shared
-----------example.txt
我在自定义 yocto 层中创建了一个新配方。 配方在文件夹meta-own\\recipes-own\\shared
, recipes-own
的结构是:
.
├── files
│ ├── example.txt
└── shared_configuration_1.0.bb
配方是:
DESCRIPTION = "Script for copying example configurations"
SUMMARY = "example configurations"
LICENSE = "CLOSED"
SRC_URI = "file://example.txt"
do_install_append() {
install -dm644 ${D}${sysconfdir}/shared
install -m 0755 ${WORKDIR}/example.txt ${D}${sysconfdir}/example.txt
FILES_${PN} = "\
${sysconfdir} \
"
当我将配方添加到我的recipes-core/images/example-image.bb
:
IMAGE_INSTALL_append = " \
bash \
util-linux \
shared_configuration \
"
它总是输出我:
ERROR: Nothing RPROVIDES
但是如果我不把它放在示例图像中,它会运行但文件不会被复制。
尝试将 shared_configuration 重命名为 shared-configuration 因为下划线后面应该是配方的版本。
[编辑]
.
├── files
│ ├── example.txt
└── shared-configuration_1.0.bb
IMAGE_INSTALL_append = " \
bash \
util-linux \
shared-configuration \
"
和食谱:
DESCRIPTION = "Script for copying example configurations"
SUMMARY = "example configurations"
LICENSE = "CLOSED"
SRC_URI = "file://example.txt"
do_install_append() {
install -d 644 ${D}${sysconfdir}
install -m 0755 ${WORKDIR}/example.txt ${D}${sysconfdir}
FILES_${PN} = "${sysconfdir}"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.