This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
工具/软件:Linux
您好!
我需要使用 Yocto 修改 rootfs 上的/etc/network/interfaces。 我一直在使用"git diff "为内核源代码生成补丁文件、并使用.bbappend 文件执行该补丁。 但是,当我对 rootfs 应用相同的命令(在本例中为/etc/network/interfaces)时,bitbake 命令会显示错误:
Build/tmp/Work/armv7ahf-neon poky-linux-gnueabi/init-ifupdown/1.0-r7/pege-sysroot-native/etc/quiltrc 推送退出为0 输出:
正在应用修补程序 mypath.diff
在输入行5中找不到要修补的文件
也许您使用了错误的-p 或--strip 选项?
由此产生的文本为:
----------------
|diff--git a/etc/network/interfaces b/etc/network/interface.
|索引0acf4cf..307fc6a 100644
|-- a/etc/network/interfaces/interface.
|++ b/etc/network/interfaces/interface.
----------------
没有要修补的文件。 跳过修补程序。
在 Web 上进行一些搜索后、我看到人们只是使用.bbappend 文件来覆盖"接口"文件。 因此、问题是:
使用 Yocto 构建系统执行此操作的正确方法是什么? 修补还是覆盖? 如果首选修补程序,应用修补程序的正确方法是什么?
请提前提供帮助和感谢!
Matt、您好!
接口文件直接从复制 /sources/meta-processor-sdk/recipes-core/init-ifupdown/init-ifupdown/ti33x/interfaces 至 rootfs。 您只需修改该文件即可在 rootfs 上进行更改。
此致、
Kemal
您好、Kemal、
谢谢你。 这对我很有用。