X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=scripts%2Flttng-modules%2Fparam-build.sh;h=51a7ae1a6393b795734e1fd97f490ffdcabdb280;hb=c9c7c76ba0c1b5325dce6ea4b4e97993a7c297be;hp=443059da8d298b14efde53a940e6bf86a202f105;hpb=a1ae361ec3a9a41ef3e22a464cd4ebc4afae0fbc;p=lttng-ci.git diff --git a/scripts/lttng-modules/param-build.sh b/scripts/lttng-modules/param-build.sh index 443059d..51a7ae1 100644 --- a/scripts/lttng-modules/param-build.sh +++ b/scripts/lttng-modules/param-build.sh @@ -15,6 +15,12 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +# Parameters +arch=${arch:-} +cross_arch=${cross_arch:-} +ktag=${ktag:-} + + ## FUNCTIONS ## # Kernel version compare functions @@ -42,12 +48,18 @@ prepare_lnx_sources() { if [ "$outdir" = "." ]; then koutput="" else - koutput="O=\"${outdir}\"" + koutput="O=${outdir}" fi # Generate kernel configuration case "$ktag" in Ubuntu*) + if [ "${cross_arch}" = "powerpc" ]; then + if vergte "$KVERSION" "4.10"; then + echo "Ubuntu removed big endian powerpc configuration from kernel >= 4.10. Don't try to build it." + exit 0 + fi + fi fakeroot debian/rules clean fakeroot debian/rules genconfigs cp CONFIGS/"${ubuntu_config}" "${outdir}"/.config @@ -168,7 +180,7 @@ LTTBUILDKHDRDIR="${WORKSPACE}/build/lttng-modules-khdr" # Setup cross compile env if available -if [ "x${cross_arch:-}" != "x" ]; then +if [ "x${cross_arch}" != "x" ]; then case "$cross_arch" in "armhf") @@ -215,7 +227,7 @@ if [ "x${cross_arch:-}" != "x" ]; then oldconf_target="olddefconfig" # Set arch specific values if we are not cross compiling -elif [ "x${arch:-}" != "x" ]; then +elif [ "x${arch}" != "x" ]; then case "$arch" in "x86-32")