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: Beaglebone black customizing rootfs /etc/network/interfaces using Yocto



Tool/software: Linux

Hi,

I need to modify the the /etc/network/interfaces on rootfs using Yocto. I have been using "git diff" to generate the patch files for kernel source code and do that patch using .bbappend file. However, when I apply the same to the rootfs (in my case, the /etc/network/interfaces), the bitbake command gives errors:

build/tmp/work/armv7ahf-neon-poky-linux-gnueabi/init-ifupdown/1.0-r7/recipe-sysroot-native/etc/quiltrc push' exited with 0  Output:

Applying patch mypath.diff
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/etc/network/interfaces b/etc/network/interfaces
|index 0acf4cf..307fc6a 100644
|--- a/etc/network/interfaces
|+++ b/etc/network/interfaces
--------------------------
No file to patch.  Skipping patch.

After some searches on the web, I have seen people just use the .bbappend file to overwrite the "interfaces" file. So it comes to the question:

What is the proper way of doing this using Yocto build system? Patching or overriding? If patching is preferred, what is the correct way to apply the patch?

Please help and thanks in advance!