From: Michael Jeanson Date: Mon, 1 May 2017 19:19:57 +0000 (-0400) Subject: jjb: lttng-modules fix ppc build failure on ubuntu X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=d815b018e8586f3d1fa2dec81bb57faf0590ed59;p=lttng-ci.git jjb: lttng-modules fix ppc build failure on ubuntu Signed-off-by: Michael Jeanson --- diff --git a/scripts/lttng-modules/param-build.sh b/scripts/lttng-modules/param-build.sh index 6220bf5..6af2d57 100644 --- a/scripts/lttng-modules/param-build.sh +++ b/scripts/lttng-modules/param-build.sh @@ -83,6 +83,11 @@ prepare_lnx_sources() { # Debug #cat "${outdir}"/.config + # On powerpc this object is required to link modules + if [ "${karch}" = "powerpc" ]; then + make arch/powerpc/lib/crtsavres.o CC="$CC" ${koutput} + fi + # Version specific tasks case "$kversion" in Ubuntu*) @@ -91,11 +96,6 @@ prepare_lnx_sources() { echo "#define UTS_UBUNTU_RELEASE_ABI $ABINUM" >> "${outdir}"/include/generated/utsrelease.h ;; esac - - # On powerpc this object is required to link modules - if [ "${karch}" = "powerpc" ]; then - make arch/powerpc/lib/crtsavres.o CC="$CC" ${koutput} - fi }