All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-raspberrypi][PATCH] Add networkd as default for RaspberryPi
@ 2015-07-23 15:32 Herve Jourdain
  2015-07-23 16:00 ` Mauro Carvalho Chehab
  2015-07-23 16:38 ` Andreas Müller
  0 siblings, 2 replies; 12+ messages in thread
From: Herve Jourdain @ 2015-07-23 15:32 UTC (permalink / raw)
  To: 'Andrei Gherzan', 'Petter Mabäcker'; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 1769 bytes --]

This patch adds systemd-networkd for RaspberryPi in the meta-raspberrypi
layer, in order to have Ethernet and Networking work out of the box.

 

This said, I’m not 100% sure if it should be enabled in meta-raspberrypi,
instead of another custom layer.

But something similar needs to be added somewhere, and with the current
version of Yocto on RaspberryPi, without this patch, network just doesn’t
start…

 

Signed-off-by: Herve Jourdain <herve.jourdain@neuf.fr
<mailto:herve.jourdain@neuf.fr> >

---

diff -Naur meta-raspberrypi.orig/recipes-core/systemd/files/eth.network
meta-raspberrypi/recipes-core/systemd/files/eth.network

--- meta-raspberrypi.orig/recipes-core/systemd/files/eth.network
1970-01-01 08:00:00.000000000 +0800

+++ meta-raspberrypi/recipes-core/systemd/files/eth.network    2015-07-22
12:01:53.587830690 +0800

@@ -0,0 +1,6 @@

+[Match]

+Name=eth*

+

+[Network]

+DHCP=v4

+

diff -Naur meta-raspberrypi.orig/recipes-core/systemd/systemd_%.bbappend
meta-raspberrypi/recipes-core/systemd/systemd_%.bbappend

--- meta-raspberrypi.orig/recipes-core/systemd/systemd_%.bbappend
1970-01-01 08:00:00.000000000 +0800

+++ meta-raspberrypi/recipes-core/systemd/systemd_%.bbappend
2015-07-22 12:05:07.307838546 +0800

@@ -0,0 +1,17 @@

+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

+

+EXTRA_OECONF += "--disable-ldconfig"

+

+PACKAGECONFIG += "networkd resolved"

+

+CFLAGS_append_arm = " -fno-lto"

+

+SRC_URI += "file://eth.network"

+

+FILES_${PN} += "{sysconfdir}/systemd/network/*"

+

+do_install_append() {

+    install -d ${D}${sysconfdir}/systemd/network/

+    install -m 0644 ${WORKDIR}/*.network ${D}${sysconfdir}/systemd/network/

+}

+

 


[-- Attachment #2: Type: text/html, Size: 6051 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2015-07-29  9:58 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-23 15:32 [meta-raspberrypi][PATCH] Add networkd as default for RaspberryPi Herve Jourdain
2015-07-23 16:00 ` Mauro Carvalho Chehab
2015-07-23 16:25   ` Herve Jourdain
2015-07-23 18:28     ` Mauro Carvalho Chehab
2015-07-23 22:45       ` Herve Jourdain
2015-07-23 22:52         ` Burton, Ross
2015-07-23 23:06           ` Herve Jourdain
2015-07-29  9:58             ` Burton, Ross
2015-07-23 16:38 ` Andreas Müller
2015-07-23 22:50   ` Herve Jourdain
2015-07-23 22:53     ` Burton, Ross
2015-07-23 22:59       ` Herve Jourdain

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.