meta-quanta: gbs: initialize MAC address and enable USB Network

MAC address: initialize MAC address for all network interfaces
USB-Network: enable usb0 link-local address auto configuration

(From meta-quanta rev: dd269ed023f6b29f7621aa5778808f7c477645f8)

Signed-off-by: George Hung <george.hung@quantatw.com>
Change-Id: I57d975276f41172668017f117ad48262a8edcf0c
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/meta-quanta/meta-gbs/recipes-quanta/network/usb-network.bbappend b/meta-quanta/meta-gbs/recipes-quanta/network/usb-network.bbappend
new file mode 100644
index 0000000..b6439a1
--- /dev/null
+++ b/meta-quanta/meta-gbs/recipes-quanta/network/usb-network.bbappend
@@ -0,0 +1,16 @@
+FILESEXTRAPATHS_prepend_gbs := "${THISDIR}/${PN}:"
+SRC_URI_append_gbs = " file://00-bmc-usb0.network"
+SRC_URI_append_gbs = " file://usb-network.conf"
+
+FILES_${PN}_append_gbs = " ${datadir}/usb-network/usb-network.conf"
+FILES_${PN}_append_gbs = " ${sysconfdir_native}/systemd/network/00-bmc-usb0.network"
+
+do_install_append_gbs() {
+    install -d ${D}${sysconfdir_native}/systemd/network/
+    install -m 0644 ${WORKDIR}/00-bmc-usb0.network \
+        ${D}${sysconfdir_native}/systemd/network
+
+    install -d ${D}${datadir}/usb-network
+    install -m 0644 -D ${WORKDIR}/usb-network.conf \
+        ${D}${datadir}/usb-network
+}