projects
/
hvutilities.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
758aee0
)
hvk: check for EVK_IP before compiling
author
Hugo Villeneuve
<hugo@hugovil.com>
Thu, 14 Mar 2024 16:35:35 +0000
(12:35 -0400)
committer
Hugo Villeneuve
<hugo@hugovil.com>
Thu, 14 Mar 2024 16:35:35 +0000
(12:35 -0400)
scripts/hvk-compile.sh
patch
|
blob
|
history
diff --git
a/scripts/hvk-compile.sh
b/scripts/hvk-compile.sh
index
2621ab6
..
6505651
100755
(executable)
--- a/
scripts/hvk-compile.sh
+++ b/
scripts/hvk-compile.sh
@@
-48,6
+48,10
@@
if [ $# -gt 1 ]; then
exit 1
fi
+if [ ${#} -eq 1 ]; then
+ EVK_IP="${1}"
+fi
+
if [ ! -f .config ]; then
echo "Missing configuration file .config."
echo "Configure your kernel by running 'hvk-init.sh'"
@@
-77,9
+81,7
@@
elif [ x"${mode}" = x"uboot" ]; then
${KMAKE} u-boot-initial-env
fi
-if [ ${#} -eq 1 ]; then
- EVK_IP="${1}"
-
+if [ "${EVK_IP}" != "" ]; then
scp ${BOOT_SRC}/Image root@${EVK_IP}:${BOOT_DEST}/Image-latest
scp ${DTB_SRC} root@${EVK_IP}:${BOOT_DEST}/latest.dtb