X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=scripts%2Fhvk-compile.sh;h=d4105f87baf3d101106360a275c5ad332886d9e3;hb=ddbcd44e26572d93a4e213c9ee1a92ef803a30e4;hp=7e6b4007b57689ad9befbc4fa22fb4d744df5a88;hpb=2f6c8b3301eb8844c76956ec83b1b1aff24edebb;p=hvutilities.git diff --git a/scripts/hvk-compile.sh b/scripts/hvk-compile.sh index 7e6b400..d4105f8 100755 --- a/scripts/hvk-compile.sh +++ b/scripts/hvk-compile.sh @@ -12,12 +12,14 @@ print_usage() echo "Options:" echo " -h display this help and exit" echo " -r reboot after deploying files" + echo " -w compile with W=1" echo } reboot=0 +warnings_opts="" -while getopts "hr" flag ;do +while getopts "hrw" flag ;do case ${flag} in h) print_usage @@ -26,6 +28,9 @@ while getopts "hr" flag ;do r) reboot=1 ;; + w) + warnings_opts="W=1" + ;; ?) echo "${PROG_NAME}: Invalid option: ${OPTARG}." echo "Try \`${PROG_NAME} -h' for more information." @@ -43,6 +48,8 @@ if [ $# -gt 1 ]; then exit 1 fi +KMAKE="${KMAKE} ${warnings_opts}" + ${KMAKE} if [ x"${mode}" = x"linux" ]; then @@ -75,7 +82,7 @@ if [ ${#} -eq 1 ]; then rm /tmp/modules.tar.gz # Switch to latest kernel and DTB: - ssh root@${EVK_IP} "fw_setenv image Image-latest; fw_setenv fdt_file latest.dtb" + ssh root@${EVK_IP} "sed -i -e 's@^DEFAULT.*@DEFAULT test@' /boot/extlinux/extlinux.conf" if [ x"${reboot}" = x"1" ]; then ssh root@${EVK_IP} "reboot"