* Adding Custom Files to Build
@ 2013-10-31 20:28 Leo Schwab
2013-10-31 20:32 ` Martin Jansa
0 siblings, 1 reply; 4+ messages in thread
From: Leo Schwab @ 2013-10-31 20:28 UTC (permalink / raw)
To: yocto
This may seem rather basic, but something that I haven't been able to
find any clear discussion on is how to add or modify files in the
final rootfs image.
We have customized versions of /etc/network/interfaces and
/etc/wpa_supplicant.conf, with more to come. Right now I've been
adding them by hand to the SD cards, but I would prefer they were
added to the rootfs and the .sdcard images as part of the build.
I briefly considered creating a .bbappend file to modify the build for
the wpa_supplicant.bb recipe, but it turns out that
/etc/wpa_supplicant.conf itself comes from a custom file inside the
recipe, and it wasn't at all clear how to hook in or override that.
I also get the impression that writing a recipe that simply copies
stuff to final image will get me yelled at by the build system, since
I'm overwriting files already provided by another recipe.
Can anyone point me in the right direction?
Schwab
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Adding Custom Files to Build
2013-10-31 20:28 Adding Custom Files to Build Leo Schwab
@ 2013-10-31 20:32 ` Martin Jansa
2013-10-31 23:16 ` Gary Thomas
2013-11-01 0:54 ` Leo Schwab
0 siblings, 2 replies; 4+ messages in thread
From: Martin Jansa @ 2013-10-31 20:32 UTC (permalink / raw)
To: Leo Schwab; +Cc: yocto
[-- Attachment #1: Type: text/plain, Size: 1236 bytes --]
On Thu, Oct 31, 2013 at 01:28:27PM -0700, Leo Schwab wrote:
> This may seem rather basic, but something that I haven't been able to
> find any clear discussion on is how to add or modify files in the
> final rootfs image.
>
> We have customized versions of /etc/network/interfaces and
> /etc/wpa_supplicant.conf, with more to come. Right now I've been
> adding them by hand to the SD cards, but I would prefer they were
> added to the rootfs and the .sdcard images as part of the build.
>
> I briefly considered creating a .bbappend file to modify the build for
> the wpa_supplicant.bb recipe, but it turns out that
> /etc/wpa_supplicant.conf itself comes from a custom file inside the
> recipe, and it wasn't at all clear how to hook in or override that.
>
> I also get the impression that writing a recipe that simply copies
> stuff to final image will get me yelled at by the build system, since
> I'm overwriting files already provided by another recipe.
>
> Can anyone point me in the right direction?
Creating .bbappends is the right direction, you just need to read a bit
more docs (hint: FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:")
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Adding Custom Files to Build
2013-10-31 20:32 ` Martin Jansa
@ 2013-10-31 23:16 ` Gary Thomas
2013-11-01 0:54 ` Leo Schwab
1 sibling, 0 replies; 4+ messages in thread
From: Gary Thomas @ 2013-10-31 23:16 UTC (permalink / raw)
To: yocto
On 2013-10-31 14:32, Martin Jansa wrote:
> On Thu, Oct 31, 2013 at 01:28:27PM -0700, Leo Schwab wrote:
>> This may seem rather basic, but something that I haven't been able to
>> find any clear discussion on is how to add or modify files in the
>> final rootfs image.
>>
>> We have customized versions of /etc/network/interfaces and
>> /etc/wpa_supplicant.conf, with more to come. Right now I've been
>> adding them by hand to the SD cards, but I would prefer they were
>> added to the rootfs and the .sdcard images as part of the build.
>>
>> I briefly considered creating a .bbappend file to modify the build for
>> the wpa_supplicant.bb recipe, but it turns out that
>> /etc/wpa_supplicant.conf itself comes from a custom file inside the
>> recipe, and it wasn't at all clear how to hook in or override that.
>>
>> I also get the impression that writing a recipe that simply copies
>> stuff to final image will get me yelled at by the build system, since
>> I'm overwriting files already provided by another recipe.
>>
>> Can anyone point me in the right direction?
>
> Creating .bbappends is the right direction, you just need to read a bit
> more docs (hint: FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:")
Look at how it's done elsewhere, e.g. meta-raspberrypi or meta-yocto-bsp
for examples of how to provide overrides for your own platform/target/whim.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Adding Custom Files to Build
2013-10-31 20:32 ` Martin Jansa
2013-10-31 23:16 ` Gary Thomas
@ 2013-11-01 0:54 ` Leo Schwab
1 sibling, 0 replies; 4+ messages in thread
From: Leo Schwab @ 2013-11-01 0:54 UTC (permalink / raw)
To: Martin Jansa; +Cc: yocto
On Thu, Oct 31, 2013 at 1:32 PM, Martin Jansa <martin.jansa@gmail.com> wrote:
> Creating .bbappends is the right direction, you just need to read a bit
> more docs (hint: FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:")
>
That helped! I've got my customized files injected into the build now.
Thank you very kindly.
Schwab
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-11-01 0:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-31 20:28 Adding Custom Files to Build Leo Schwab
2013-10-31 20:32 ` Martin Jansa
2013-10-31 23:16 ` Gary Thomas
2013-11-01 0:54 ` Leo Schwab
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.