hvk: add support for all* DEFCONFIG options
[hvutilities.git] / scripts / hvk-common.sh
index fb03814..df6e5f3 100644 (file)
@@ -31,6 +31,17 @@ KMAKE="make ${MAKEJOBS_ARG}"
 # Needed to compile sample userspace programs (rtc-test):
 export CROSS_COMPILE_KCFLAGS=${KCFLAGS}
 
+DEFCONFIG_OPT=""
+
+case ${DEFCONFIG_BOARD} in
+    all*)
+        DEFCONFIG_OPT="${DEFCONFIG_BOARD}"
+        ;;
+    *)
+        DEFCONFIG_OPT="${DEFCONFIG_BOARD}_defconfig"
+        ;;
+esac
+
 # Arg1: src file
 # Arg2: destination user@host
 copy_exec()