projects
/
hvutilities.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hvsp: allow to specify end commit as a label
[hvutilities.git]
/
scripts
/
hvk-common.sh
diff --git
a/scripts/hvk-common.sh
b/scripts/hvk-common.sh
index
7f332da
..
fb03814
100644
(file)
--- a/
scripts/hvk-common.sh
+++ b/
scripts/hvk-common.sh
@@
-1,5
+1,8
@@
#!/bin/bash
#!/bin/bash
+# Abort on errors
+set -e
+
if [ -f include/linux/linux_logo.h ]; then
mode=linux
elif [ -f include/asm-generic/u-boot.h ]; then
if [ -f include/linux/linux_logo.h ]; then
mode=linux
elif [ -f include/asm-generic/u-boot.h ]; then
@@
-17,9
+20,13
@@
else
source ${SCRIPTPATH}/hvk-x86.sh
fi
source ${SCRIPTPATH}/hvk-x86.sh
fi
-: ${MAKEJOBS:="-j$(nproc)"}
+: ${MAKEJOBS:="$(nproc)"}
+
+if [ x"${MAKEJOBS}" != x"" ]; then
+ MAKEJOBS_ARG="-j ${MAKEJOBS}"
+fi
-KMAKE="make ${MAKEJOBS}"
+KMAKE="make ${MAKEJOBS
_ARG
}"
# Needed to compile sample userspace programs (rtc-test):
export CROSS_COMPILE_KCFLAGS=${KCFLAGS}
# Needed to compile sample userspace programs (rtc-test):
export CROSS_COMPILE_KCFLAGS=${KCFLAGS}