Yocto 图像没有将文件添加到 rootfs
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
但是如果我不把它放在example-image中,它是运行通过但是文件没有被复制。
尝试将 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}"
我想在“/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
但是如果我不把它放在example-image中,它是运行通过但是文件没有被复制。
尝试将 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}"