All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] ser2net: add default init script
Date: Sun, 5 May 2013 22:19:32 +0200	[thread overview]
Message-ID: <20130505201932.GB13672@game.jcrosoft.org> (raw)
In-Reply-To: <20130505145814.GB3246@free.fr>

On 16:58 Sun 05 May     , Yann E. MORIN wrote:
> Jean-Christophe, All,
> 
> On Sun, May 05, 2013 at 04:32:52PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> > On 15:50 Sun 05 May     , Yann E. MORIN wrote:
> > > Jean-Christophe, All,
> > > 
> > > See my comments inlined below.
> > > 
> > > On Sun, May 05, 2013 at 02:43:05PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> > > > add option to specify the configuration file
> > > > 
> > > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> > > > ---
> > > >  package/ser2net/Config.in  |    9 +++++++++
> > > >  package/ser2net/S50ser2net |   48 ++++++++++++++++++++++++++++++++++++++++++++
> > > >  package/ser2net/ser2net.mk |   27 +++++++++++++++++++++++++
> > > >  3 files changed, 84 insertions(+)
> > > >  create mode 100644 package/ser2net/S50ser2net
> > > > 
> > > > diff --git a/package/ser2net/Config.in b/package/ser2net/Config.in
> > > > index e3b8870..3480d85 100644
> > > > --- a/package/ser2net/Config.in
> > > > +++ b/package/ser2net/Config.in
> > > > @@ -8,5 +8,14 @@ config BR2_PACKAGE_SER2NET
> > > >  
> > > >  	  http://ser2net.sourceforge.net
> > > >  
> > > > +if BR2_PACKAGE_SER2NET
> > > > +
> > > > +config BR2_PACKAGE_SER2NET_CONF
> > > > +	string "Configuration file"
> > > > +	help
> > > > +	  Configuration file.
> > > 
> > > I think we should provide a default, basic configuration file that we
> > > install unconditionnally to the rootfs. The user will then be free to
> > > provide a post-build script to tweak that file.
> > 
> > I hate post-build it's not trackable and as it's completly board specific with
> > x serial to export I do not want a generic file
> 
> It's not about what *you* want, it's about what is *best* for Buildroot
> and *all* its users, *and* is maintenable and easily reproduced (which
> pointing to a config file outside of the buildroot tree is definitely
> not) *and* can fit your use case (which what I suggest should).

I want to put the ser2net.conf in the tree not our of tree
> 
> We're speaking about a _default_ and _simple_ configuration file. Of
> course it can not cover all use cases, but just exporting a single
> serial port would be enough. Customisation beyond that is really part of
> the post-build scripts.
the problem here which port you export?

the ttyS0? no it's mostly the default console

how could you even think of any generic file as the name of the port(s) and
configuration is board specific

This will be completly board specific

Best Regards,
J.

  reply	other threads:[~2013-05-05 20:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-05 12:43 [Buildroot] [PATCH 1/1] ser2net: add default init script Jean-Christophe PLAGNIOL-VILLARD
2013-05-05 13:50 ` Yann E. MORIN
2013-05-05 14:32   ` Jean-Christophe PLAGNIOL-VILLARD
2013-05-05 14:58     ` Yann E. MORIN
2013-05-05 20:19       ` Jean-Christophe PLAGNIOL-VILLARD [this message]
2013-05-05 21:23         ` Yann E. MORIN

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130505201932.GB13672@game.jcrosoft.org \
    --to=plagnioj@jcrosoft.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.