# 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()
fi
fi
-if [ x"${DEFCONFIG_BOARD}" = x"all" ]; then
- ${KMAKE} allyesconfig
-else
- ${KMAKE} ${DEFCONFIG_BOARD}_defconfig
-fi
+${KMAKE} ${DEFCONFIG_OPT}
if [ x"${1}" = x"yocto" ]; then
LOCALVERSION="${YOCTO_LOCALVERSION}"
SCRIPTPATH=$(dirname ${SCRIPT})
source ${SCRIPTPATH}/hvk-common.sh
-if [ x"${DEFCONFIG_BOARD}" = x"all" ]; then
- "Error, cannot save defconfig for \"all\""
- exit 1
-fi
+case ${DEFCONFIG_BOARD} in
+ all*)
+ "Error, cannot save defconfig for \"${DEFCONFIG_BOARD}\""
+ exit 1
+esac
cfg_prefix="arch/${ARCH}/"
#!/bin/bash
-DEFCONFIG_BOARD=all
+DEFCONFIG_BOARD=allyesconfig
ARCH=x86