Re: [yocto] Best practices for changing a conf file

2014-10-27 Thread Mario Domenech Goulart
Hi Nick,

On Mon, 27 Oct 2014 17:25:41 + "Crast, Nicholas" 
 wrote:

> I’m just looking for some advice on best practices. I want to change
> the configuration file for rsyslog called rsyslog.conf
> (poky/meta/recipes-extended/rsyslog), but there is a certain appeal to
> me of not changing the files in the meta directory. I like to keep
> those pristine and accomplish everything I need with recipes in a
> different layer. Is the best way to change this file to just go in and
> change that .conf file, or is there an easy way to use a .bbappend
> file to substitute my own configuration file?

I think the best approach is to add a bbappend file to your layer, which
installs your own config file.

If the config file is already in SRC_URI (like rsyslog's), it's just a
matter of creating a .bbappend like this:

  $ cat rsyslog_%.bbappend
  FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

, and adding your custom config file to the ${PN} directory (i.e.,
rsyslog/rsyslog.conf).  So, you'll have something like that in your
layer:

  recipes-extended/
  recipes-extended/rsyslog/
  recipes-extended/rsyslog/rsyslog/
  recipes-extended/rsyslog/rsyslog_%.bbappend
  recipes-extended/rsyslog/rsyslog/rsyslog.conf


Best wishes.
Mario
-- 
http://www.ossystems.com.br
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Best practices for changing a conf file

2014-10-27 Thread Crast, Nicholas
Hi all,

I'm just looking for some advice on best practices. I want to change the 
configuration file for rsyslog called rsyslog.conf 
(poky/meta/recipes-extended/rsyslog), but there is a certain appeal to me of 
not changing the files in the meta directory. I like to keep those pristine and 
accomplish everything I need with recipes in a different layer. Is the best way 
to change this file to just go in and change that .conf file, or is there an 
easy way to use a .bbappend file to substitute my own configuration file?

Thanks,
-Nick


Nick Crast
Associate Software Engineer
Saab Sensis Corporation
Phone: 315-445-5703
Email: nicholas.cr...@saabsensis.com


This message is intended only for the addressee and may contain information 
that is company confidential or privileged. Any technical data in this message 
may be exported only in accordance with the U.S. International Traffic in Arms 
Regulations (22 CFR Parts 120-130) or the Export Administration Regulations (15 
CFR Parts 730-774). Unauthorized use is strictly prohibited and may be 
unlawful. If you are not the intended recipient, or the person responsible for 
delivering to the intended recipient, you should not read, copy, disclose or 
otherwise use this message. If you have received this email in error, please 
delete it, and advise the sender immediately.
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto