From 077598a761f52af6f1bcc38806635c6c7ac44030 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Wed, 6 Dec 2023 14:40:28 -0500 Subject: [PATCH] hvk: add option to compile with W=1 --- scripts/hvk-compile.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 -- 2.20.1