From: Phil Blundell <philb@gnu.org>
To: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: Configurable host name
Date: Wed, 08 Aug 2012 10:30:35 +0100 [thread overview]
Message-ID: <1344418236.23275.219.camel@phil-desktop> (raw)
In-Reply-To: <CAJTo0Lb2jyRgUxqKE_ggZDwGr9FQuHig8rnQsYZTghdMXUpKhw@mail.gmail.com>
On Wed, 2012-08-08 at 09:13 +0100, Burton, Ross wrote:
> My proposal would be to add something like HOSTNAME ?= "$MACHINE" to
> default-distrovars.inc, and changing base-files to write the hostname
> file in a new task using something like addtask hostname after
> do_rootfs.
Adding a new global variable does have a certain cost associated with
it, since this ends up in the metadata for every single recipe. Ideally
we want to try to avoid doing that for things that are only really used
in one place.
I suspect that most distros are probably going to want to do at least
some customisation of base-files anyway (if they use the recipe from
oe-core at all) so this doesn't seem like it ought to be a big deal for
them.
And, any distros that do use base-files from oe-core and don't (want to)
have a .bbappend for it can already override the hostname fairly
trivially by putting:
hostname_pn-base-files = "my-distro-rocks"
in their config files. So it doesn't seem to me that there is any real
problem to be solved here.
p.
next prev parent reply other threads:[~2012-08-08 9:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-08 8:13 Configurable host name Burton, Ross
2012-08-08 9:30 ` Phil Blundell [this message]
2012-08-08 12:09 ` Burton, Ross
2012-08-08 13:36 ` Chris Larson
2012-08-08 13:50 ` Burton, Ross
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=1344418236.23275.219.camel@phil-desktop \
--to=philb@gnu.org \
--cc=openembedded-core@lists.openembedded.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox