X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=scripts%2Fhvk-compile.sh;h=d4105f87baf3d101106360a275c5ad332886d9e3;hb=ddbcd44e26572d93a4e213c9ee1a92ef803a30e4;hp=a749c43e5b1248f8fecb7fa53c7c93ec8ab39999;hpb=392d2753816d2ff57977e9d8838ae7e0ac00b5bc;p=hvutilities.git diff --git a/scripts/hvk-compile.sh b/scripts/hvk-compile.sh index a749c43..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