netbase: Add interfaces with RANDOM_MAC for sys940x* machines

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.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
This commit is contained in:
Darren Hart 2012-01-26 10:37:27 -08:00
parent c42364375a
commit 3a0e1fe3f7
2 changed files with 13 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,3 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
RDEPENDS_${PN} += "genmac"
PRINC := "${@int(PRINC) + 1}"