ASR_BASE

Change-Id: Icf3719cc0afe3eeb3edc7fa80a2eb5199ca9dda1
diff --git a/marvell/linux/scripts/modules-check.sh b/marvell/linux/scripts/modules-check.sh
new file mode 100755
index 0000000..f51f446
--- /dev/null
+++ b/marvell/linux/scripts/modules-check.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+# SPDX-License-Identifier: GPL-2.0
+
+set -e
+
+# Check uniqueness of module names
+check_same_name_modules()
+{
+	for m in $(sed 's:.*/::' modules.order | sort | uniq -d)
+	do
+		echo "warning: same module names found:" >&2
+		sed -n "/\/$m/s:^:  :p" modules.order >&2
+	done
+}
+
+check_same_name_modules