首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何解决Yocto文件/目录已安装但没有在任何软件包问题

如何解决Yocto文件/目录已安装但没有在任何软件包问题
EN

Stack Overflow用户
提问于 2022-05-17 17:45:07
回答 2查看 824关注 0票数 1

我正在使用自定义配方在我的rootfs中安装软件包。我的食谱如下:

代码语言:javascript
运行
复制
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"

DESCRIPTION = "VPU libraries provided by fsl"
SUMMARY = "Copy mksd.sh script to image deployment area"
LICENSE = "CLOSED"

SRC_URI = " \
         file://smf_vpn_config.ovpn \
         file://ifplugd.action \
         file://get_mac.sh \
         file://gen_mac.sh \
         file://IP_SETTINGS.sh \
         file://network_config.sh \
         file://update_network.sh \
         file://check_lte_connection.sh \
         file://check_vpn_connection.sh \
         file://get_ip_address_of_interface.sh \
          "

do_install() {
install -d ${D}/etc/openvpn_config/
install -m 755 ${WORKDIR}/smf_vpn_config.ovpn ${D}/etc/openvpn_config/

install -d ${D}/etc/ifplugd/
install -m 755 ${WORKDIR}/ifplugd.action ${D}/etc/ifplugd/

install -d ${D}/usr/bin/
install -m 755 ${WORKDIR}/get_mac.sh ${D}/usr/bin/

install -d ${D}/usr/bin/
install -m 755 ${WORKDIR}/gen_mac.sh ${D}/usr/bin/

# Install network configuration files
install -d ${D}$/opt/smf/config/net/
install -m 666 ${WORKDIR}/IP_SETTINGS.sh ${D}//opt/smf/config/net/

install -d ${D}/usr/bin/
install -m 755 ${WORKDIR}/network_config.sh ${D}/usr/bin/

install -d ${D}/usr/bin/
install -m 755 ${WORKDIR}/update_network.sh ${D}/usr/bin/

install -d ${D}/usr/bin/
install -m 755 ${WORKDIR}/check_lte_connection.sh ${D}/usr/bin/

install -d ${D}/usr/bin/
install -m 755 ${WORKDIR}/check_vpn_connection.sh ${D}/usr/bin/

install -d ${D}/usr/bin/
install -m 755 ${WORKDIR}/get_ip_address_of_interface.sh ${D}/usr/bin/
}

FILES_${PN} += " \
/etc/openvpn_config/smf_vpn_config.ovpn \
/etc/ifplugd/ifplugd.action \
/usr/bin/get_mac.sh \
/usr/bin/gen_mac.sh \
/opt/* \
"

当我尝试构建这个菜谱时,我会得到以下错误

代码语言:javascript
运行
复制
ERROR: extra-files-1.0-r0 do_package: QA Issue: extra-files: Files/directories were 
installed but not shipped in any package:
/opt
/opt/smf
/opt/smf/config
/opt/smf/config/net
/opt/smf/config/net/IP_SETTINGS.sh
Please set FILES such that these items are packaged. Alternatively if they are unneeded, 
avoid installing them or delete them within do_install.
extra-files: 5 installed and not shipped files. [installed-vs-shipped]
ERROR: extra-files-1.0-r0 do_package: Fatal QA errors were found, failing task.

查看其他论坛帖子,我确实注意到,要指向当前目录,应该使用meta/conf/bitbake.conf中给出的变量。但是,对于/opt目录,没有提到任何内容。

另外,我现在在柯克斯通分店,谢谢。

EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72278513

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档