[oe] How to modify /etc/network/interfaces file in a OE recipe

Frans Meulenbroeks fransmeulenbroeks at gmail.com
Fri Oct 8 06:36:22 UTC 2010


2010/10/8 Khem Raj <raj.khem at gmail.com>:
> On Thu, Oct 7, 2010 at 3:54 PM, Gary Thomas <gary at mlbassoc.com> wrote:
>> On 10/07/2010 03:11 PM, Elvis Dowson wrote:
>>>
>>> Hi,
>>>        Would someone be able to help me with modifying an
>>> omap3-console-image recipe, such that in the final image, the
>>> /etc/network/interfaces file gets edited as follows
>>>
>>> #auto eth0                              <- remove # sign ( auto eth0 )
>>> #iface eth0 inet dhcp           <- remove # sign ( iface eth0 inet dhcp )
>>> #iface eth1 inet dhcp
>>>
>>> I am using a Gumstix Overo + Chestnut43 expansion board, which has an
>>> inbuilt wired ethernet interface. I have to make this modification manually,
>>> to enable this interface each time. However, if I can modify the OE recipe
>>> somehow to do this it would be great. I know it can be done, but I don't
>>> know where to start and which file to modify.
>>
>> Add the file the way you like it to
>> .../openembedded/recipes/netbase/netbase/overo
>> and rebuild netbase.  Use the beagleboard as an example.
>
> or use bblayers and bbappend.

Actually if you use an overlay you can just put your patch file in the
files dir of your overlay.
If I recall correctly files will be first fetched in the FILESPATHPKG
in the overlay before looking in the oe dir (assuming your layer
priorities are ok)

Have fun! Frans




More information about the Openembedded-devel mailing list