Merge branch '2019-07-24-doc-html-cleanup'
[platform/kernel/u-boot.git] / scripts / check-config.sh
index 4848ca6..583f7d0 100755 (executable)
 set -e
 set -u
 
+PROG_NAME="${0##*/}"
+
+usage() {
+       echo "$PROG_NAME <path to u-boot.cfg> <path to whitelist file> <source dir>"
+       exit 1
+}
+
+[ $# -ge 3 ] || usage
+
 path="$1"
 whitelist="$2"
 srctree="$3"