projects
/
lttng-ci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
jjb: Update modules based jobs
[lttng-ci.git]
/
scripts
/
latency-tracker
/
param-build.sh
diff --git
a/scripts/latency-tracker/param-build.sh
b/scripts/latency-tracker/param-build.sh
index 80a23ca2daa85d4376fcea5676067f1fafd9c299..8788887262b6de7a292836511b6bf6a6b7196faa 100644
(file)
--- a/
scripts/latency-tracker/param-build.sh
+++ b/
scripts/latency-tracker/param-build.sh
@@
-75,7
+75,7
@@
prepare_lnx_sources() {
echo "CONFIG_KALLSYMS_ALL=y" >> "${outdir}"/.config
echo "CONFIG_KALLSYMS_ALL=y" >> "${outdir}"/.config
- make ${koutput}
silentold
config CC=$CC
+ make ${koutput}
olddef
config CC=$CC
make ${koutput} modules_prepare CC=$CC
# Version specific tasks
make ${koutput} modules_prepare CC=$CC
# Version specific tasks
@@
-119,6
+119,7
@@
build_modules() {
# We expect this build to fail, if it doesn't, fail the job.
if [ "$?" -eq 0 ]; then
# We expect this build to fail, if it doesn't, fail the job.
if [ "$?" -eq 0 ]; then
+ echo "This build should have failed."
exit 1
fi
exit 1
fi
@@
-145,9
+146,6
@@
build_modules() {
## MAIN ##
## MAIN ##
-# Use gcc 4.9, older kernel don't build with gcc 5
-export CC=gcc-4.9
-
# Use all CPU cores
NPROC=$(nproc)
# Use all CPU cores
NPROC=$(nproc)
@@
-195,13
+193,16
@@
if [ "x${cross_arch:-}" != "x" ]; then
;;
esac
;;
esac
+ # Use default gcc when cross-compiling
+ CC="${cross_compile}gcc"
+
# Export variables used by Kbuild for cross compilation
export ARCH="${karch}"
export CROSS_COMPILE="${cross_compile}"
# Export variables used by Kbuild for cross compilation
export ARCH="${karch}"
export CROSS_COMPILE="${cross_compile}"
-
# Set arch specific values if we are not cross compiling
elif [ "x${arch:-}" != "x" ]; then
# Set arch specific values if we are not cross compiling
elif [ "x${arch:-}" != "x" ]; then
+
case "$arch" in
"x86-32")
karch="x86"
case "$arch" in
"x86-32")
karch="x86"
@@
-238,6
+239,10
@@
elif [ "x${arch:-}" != "x" ]; then
exit 1
;;
esac
exit 1
;;
esac
+
+ # Use gcc 4.9, older kernel don't build with gcc 5
+ CC=gcc-4.9
+
else
echo "Not arch or cross_arch specified"
exit 1
else
echo "Not arch or cross_arch specified"
exit 1
This page took
0.025184 seconds
and
4
git commands to generate.