rb5: Set Ethernet MAC address on boot

Just like DB845c devboards, RB5 do not have unique Ethernet
MAC addresses. All the boards share the same MAC address and
it cause problems while running CTS tests in the lab with
multiple RB5 boards connected.

So set the Ethernet MAC address based on board's unique
serial number as we do for DB845c.

Change-Id: I103e18c34a34c4d36d6cc71e7a7f964bcd0417b4
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
diff --git a/rb5/device.mk b/rb5/device.mk
index 1366b4a..a1c1b59 100644
--- a/rb5/device.mk
+++ b/rb5/device.mk
@@ -48,6 +48,11 @@
 PRODUCT_COPY_FILES += \
     device/linaro/dragonboard/shared/utils/set_hw.sh:$(TARGET_COPY_OUT_VENDOR)/bin/set_hw.sh
 
+# Install scripts to set Ethernet MAC address
+PRODUCT_COPY_FILES += \
+    device/linaro/dragonboard/shared/utils/ethaddr/ethaddr.rc:/system/etc/init/ethaddr.rc \
+    device/linaro/dragonboard/shared/utils/ethaddr/set_ethaddr.sh:/system/bin/set_ethaddr.sh
+
 PRODUCT_VENDOR_PROPERTIES += ro.soc.manufacturer=Qualcomm
 PRODUCT_VENDOR_PROPERTIES += ro.soc.model=QRB5165