meta-quanta: meta-common: Add "mac-address" and "usb-network" services

Add two services into meta-quanta/meta-common:
(1)mac-address
(2)usb-network

These two service is used to set network config when initialize system.

(From meta-quanta rev: 0ec0ff35cd63d216fa07a67b3eadb41a29ffdcb2)

Signed-off-by: Spencer Ku <Spencer.Ku@quantatw.com>
Change-Id: Ib06467737701b7eccd92bda4f7b7be799a593708
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/meta-quanta/meta-common/network/usb-network.bb b/meta-quanta/meta-common/network/usb-network.bb
new file mode 100644
index 0000000..85146aa
--- /dev/null
+++ b/meta-quanta/meta-common/network/usb-network.bb
@@ -0,0 +1,25 @@
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
+
+FILESEXTRAPATHS_append := "${THISDIR}/${PN}:"
+SRC_URI_append = " file://usb-network.sh"
+SRC_URI_append = " file://usb-network.service"
+
+inherit systemd
+
+DEPENDS += "systemd"
+RDEPENDS_${PN} += "libsystemd"
+RDEPENDS_${PN} += "bash"
+
+FILES_${PN}_append = " ${sysconfdir_native}/systemd/network/00-bmc-usb0.network"
+
+do_install() {
+    install -d ${D}/${sbindir}
+    install -m 0755 ${WORKDIR}/usb-network.sh ${D}/${sbindir}
+
+    install -d ${D}${systemd_unitdir}/system/
+    install -m 0644 ${WORKDIR}/usb-network.service \
+        ${D}${systemd_unitdir}/system
+}
+
+SYSTEMD_SERVICE_${PN}_append = "usb-network.service"