projects
/
hvutilities.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bcfb300
)
hvk: add option to compile with W=1
author
Hugo Villeneuve
<hugo@hugovil.com>
Wed, 6 Dec 2023 19:40:28 +0000
(14:40 -0500)
committer
Hugo Villeneuve
<hugo@hugovil.com>
Fri, 1 Mar 2024 15:54:29 +0000
(10:54 -0500)
scripts/hvk-compile.sh
patch
|
blob
|
history
diff --git
a/scripts/hvk-compile.sh
b/scripts/hvk-compile.sh
index
a749c43
..
d4105f8
100755
(executable)
--- 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 "Options:"
echo " -h display this help and exit"
echo " -r reboot after deploying files"
+ echo " -w compile with W=1"
echo
}
reboot=0
echo
}
reboot=0
+warnings_opts=""
-while getopts "hr" flag ;do
+while getopts "hr
w
" flag ;do
case ${flag} in
h)
print_usage
case ${flag} in
h)
print_usage
@@
-26,6
+28,9
@@
while getopts "hr" flag ;do
r)
reboot=1
;;
r)
reboot=1
;;
+ w)
+ warnings_opts="W=1"
+ ;;
?)
echo "${PROG_NAME}: Invalid option: ${OPTARG}."
echo "Try \`${PROG_NAME} -h' for more information."
?)
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
exit 1
fi
+KMAKE="${KMAKE} ${warnings_opts}"
+
${KMAKE}
if [ x"${mode}" = x"linux" ]; then
${KMAKE}
if [ x"${mode}" = x"linux" ]; then