From: Hugo Villeneuve Date: Wed, 6 Dec 2023 19:40:28 +0000 (-0500) Subject: hvk: add option to compile with W=1 X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=077598a761f52af6f1bcc38806635c6c7ac44030;p=hvutilities.git hvk: add option to compile with W=1 --- 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