All of lore.kernel.org
 help / color / mirror / Atom feed
* Edit project specific config files of other recipe like /etc/ssh/ssh_config from openssh
@ 2015-02-20 12:18 Kai Ulrich
  2015-02-20 14:31 ` Chris Hallinan
  0 siblings, 1 reply; 2+ messages in thread
From: Kai Ulrich @ 2015-02-20 12:18 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 292 bytes --]

Hi,

I create a layer for my project.
How can I edit (patch?)  project specific config files of other recipe for
the rootfs without touching the original recipe.
Project specific config files could by /etc/ssh/ssh_config (do not touch
recipe openssh )

Friendly regrades
Kai Ulrich

[-- Attachment #2: Type: text/html, Size: 346 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Edit project specific config files of other recipe like /etc/ssh/ssh_config from openssh
  2015-02-20 12:18 Edit project specific config files of other recipe like /etc/ssh/ssh_config from openssh Kai Ulrich
@ 2015-02-20 14:31 ` Chris Hallinan
  0 siblings, 0 replies; 2+ messages in thread
From: Chris Hallinan @ 2015-02-20 14:31 UTC (permalink / raw)
  To: kaiu; +Cc: yocto

Hi Kai,

In your layer, create a .bbappend matching the basename of the package
you want to change. Using your example, create
recipes-connectivity/openssh/openssh_6.6p1.bbappend (make sure
versions match).

Then you can either replace or patch ssh_config. I would patch it.
Create your patch, put it in recipes-connectivity/openssh/files, and
name your patch file, ending in .patch in SRC_URI in your .bbappend
file.

Your .bbappend file might look something like this:

FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI += "file://myssh_config.patch"

The first line instructs bitbake where to search for your patch file.
The second line will cause the file to be fetched into your ${WORKDIR}
for openssh, and because it has a .patch extension, it will
automatically be applied.

The excellent Yocto Project Developer Manual has an example of a
.bbappend file, although its slightly outdated.  You no longer need PR
field, and SRC_URI should be += instead of "=".

http://www.yoctoproject.org/docs/1.7.1/dev-manual/dev-manual.html#using-bbappend-files

Yocto Project is gifted with some of the best documentation in the
open source world.

Good luck!

On Fri, Feb 20, 2015 at 7:18 AM, Kai Ulrich <kaiu@gmx.de> wrote:
> Hi,
>
> I create a layer for my project.
> How can I edit (patch?)  project specific config files of other recipe for
> the rootfs without touching the original recipe.
> Project specific config files could by /etc/ssh/ssh_config (do not touch
> recipe openssh )
>
> Friendly regrades
> Kai Ulrich
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>



-- 
Life is like Linux - it never stands still.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-02-20 14:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-20 12:18 Edit project specific config files of other recipe like /etc/ssh/ssh_config from openssh Kai Ulrich
2015-02-20 14:31 ` Chris Hallinan

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.