From: Joshua Lock <josh@linux.intel.com>
To: yocto@yoctoproject.org
Subject: Re: [pull-sys940x 4/4] netbase: Add interfaces with RANDOM_MAC for sys940x* machines
Date: Wed, 01 Feb 2012 14:52:47 -0800 [thread overview]
Message-ID: <4F29C23F.5070801@linux.intel.com> (raw)
In-Reply-To: <d40c099c9dced8365653e7cef02108e03ab4bfdf.1328135056.git.dvhart@linux.intel.com>
On 01/02/12 14:26, Darren Hart wrote:
> These machines have no MAC in the hardware and require that it
> be set manually. Specify RANDOM_MAC for the eth0 interface which
> the genmac init script will replace with RANDOM_MAC on first boot.
My concern with this patch is that iirc netbase isn't MACHINE specific -
so if I have this layer enabled and build for another core2 machine I'll
get these changes there too.
I don't know what the "right" solution to that is, though I muse some
more below.
> Signed-off-by: Darren Hart<dvhart@linux.intel.com>
> ---
> meta-sys940x/recipes-core/netbase/files/interfaces | 10 ++++++++++
> .../recipes-core/netbase/netbase_4.47.bbappend | 3 +++
> 2 files changed, 13 insertions(+), 0 deletions(-)
> create mode 100644 meta-sys940x/recipes-core/netbase/files/interfaces
> create mode 100644 meta-sys940x/recipes-core/netbase/netbase_4.47.bbappend
>
> diff --git a/meta-sys940x/recipes-core/netbase/files/interfaces b/meta-sys940x/recipes-core/netbase/files/interfaces
> new file mode 100644
> index 0000000..4218f5d
> --- /dev/null
> +++ b/meta-sys940x/recipes-core/netbase/files/interfaces
> @@ -0,0 +1,10 @@
> +# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
> +
> +# The loopback interface
> +auto lo
> +iface lo inet loopback
> +
> +# Wired or wireless interfaces
> +auto eth0
> +iface eth0 inet dhcp
> + hwaddress ether RANDOM_MAC
> diff --git a/meta-sys940x/recipes-core/netbase/netbase_4.47.bbappend b/meta-sys940x/recipes-core/netbase/netbase_4.47.bbappend
> new file mode 100644
> index 0000000..6d3f694
> --- /dev/null
> +++ b/meta-sys940x/recipes-core/netbase/netbase_4.47.bbappend
> @@ -0,0 +1,3 @@
> +FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
> +RDEPENDS_${PN} += "genmac"
We can use a MACHINE specific override here, I think.
RDEPENDS_${PN}_sys940x += "genmac"
Ideally we don't want that interfaces file on non-sys940x machines,
perhaps we could name the interfaces file differently and add a
do_install_append_sys940x which installs the MACHINE specific interface
file?
Cheers,
Joshua
--
Joshua Lock
Yocto Project "Johannes factotum"
Intel Open Source Technology Centre
next prev parent reply other threads:[~2012-02-01 22:52 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-01 22:26 [pull-sys940x 0/4][meta-intel] Inforce SYS940X BSP (Intel Atom E6xx + EG20T) Darren Hart
2012-02-01 22:26 ` [pull-sys940x 1/4] meta-intel: Add Inforce SYS940x BSP Darren Hart
2012-02-01 22:37 ` Joshua Lock
2012-02-01 23:05 ` Joshua Lock
2012-02-02 18:07 ` Darren Hart
2012-02-01 22:26 ` [pull-sys940x 2/4] ranpwd: Add ranpwd recipe Darren Hart
2012-02-01 22:40 ` Joshua Lock
2012-02-02 7:22 ` Martin Jansa
2012-02-02 18:26 ` Darren Hart
2012-02-02 19:13 ` Joshua Lock
2012-02-02 19:34 ` Darren Hart
2012-02-02 18:24 ` Darren Hart
2012-02-02 19:24 ` Joshua Lock
2012-02-02 19:32 ` Darren Hart
2012-02-02 21:11 ` Joshua Lock
2012-02-06 16:17 ` Paul Eggleton
2012-02-06 23:59 ` Joshua Lock
2012-02-07 7:06 ` Martin Jansa
2012-02-07 9:20 ` [yocto] " Koen Kooi
2012-02-11 0:14 ` Darren Hart
2012-02-11 1:45 ` Khem Raj
2012-02-01 22:26 ` [pull-sys940x 3/4] genmac: Replace RANDOM_MAC in network/interfaces with a randomly generated MAC Darren Hart
2012-02-01 22:42 ` Joshua Lock
2012-02-02 18:27 ` Darren Hart
2012-02-02 14:09 ` William Mills
2012-02-02 17:19 ` Darren Hart
2012-02-02 18:37 ` William Mills
2012-02-01 22:26 ` [pull-sys940x 4/4] netbase: Add interfaces with RANDOM_MAC for sys940x* machines Darren Hart
2012-02-01 22:52 ` Joshua Lock [this message]
2012-02-01 23:03 ` Joshua Lock
2012-02-02 18:31 ` Darren Hart
2012-02-02 19:02 ` Joshua Lock
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=4F29C23F.5070801@linux.intel.com \
--to=josh@linux.intel.com \
--cc=yocto@yoctoproject.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 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.