meta-google: google-usb-network: Allow specifying interface name

Change-Id: Icdf1b12993b96d13008ddae93a54aa5bd6b35173
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/meta-google/recipes-google/networking/google-usb-network/usb_network.service.m4 b/meta-google/recipes-google/networking/google-usb-network/usb_network.service.m4
index cefaff9..252f409 100644
--- a/meta-google/recipes-google/networking/google-usb-network/usb_network.service.m4
+++ b/meta-google/recipes-google/networking/google-usb-network/usb_network.service.m4
@@ -21,7 +21,7 @@
     --dev-type "M_BMC_USB_TYPE" \
     HOST_MAC_ARG(M_BMC_USB_HOST_MAC) \
     DEV_MAC_ARG(M_BMC_USB_DEV_MAC) \
-    --iface-name usb0 \
+    --iface-name "M_BMC_USB_IFACE" \
     --bind-device "M_BMC_USB_BIND_DEV"
 ExecStop=M_SCRIPT_INSTALL_DIR/usb_network.sh stop
 
diff --git a/meta-google/recipes-google/networking/google-usb-network_git.bb b/meta-google/recipes-google/networking/google-usb-network_git.bb
index 882b755..9ba7c52 100644
--- a/meta-google/recipes-google/networking/google-usb-network_git.bb
+++ b/meta-google/recipes-google/networking/google-usb-network_git.bb
@@ -26,6 +26,7 @@
 BMC_USB_CONFIG_PRIORITY ??= ""
 BMC_USB_CONFIG_FILENAME ??= "${BMC_USB_CONFIG_PRIORITY}-bmc-usb0.network"
 BMC_USB_TYPE ??= "eem"
+BMC_USB_IFACE ??= "gusb0"
 
 SRC_URI += "file://00-bmc-usb0.network.m4"
 SRC_URI += "file://usb_network.service.m4"
@@ -48,6 +49,7 @@
         -DM_BMC_USB_TYPE="${BMC_USB_TYPE}" \
         -DM_BMC_USB_HOST_MAC="${BMC_USB_ECM_HOST_MAC}" \
         -DM_BMC_USB_DEV_MAC="${BMC_USB_ECM_DEV_MAC}" \
+        -DM_BMC_USB_IFACE="${BMC_USB_IFACE}" \
         -DM_BMC_USB_BIND_DEV="${BMC_USB_ECM_BIND_DEV}" \
         -DM_SCRIPT_INSTALL_DIR="${bindir}" \
         ${WORKDIR}/usb_network.service.m4 > ${S}/usb_network.service