X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=scripts%2Flttng-modules%2Fparam-build.sh;h=405c61f0ee87dc4a87d67142977e35935facd558;hb=417251718144a9f5ab350abe6a15aca660819ab9;hp=34ad6a980fca00e281f0425974144c081b27dbba;hpb=d138fc446790cd2c6a23a96532c5a66749b7c7c1;p=lttng-ci.git diff --git a/scripts/lttng-modules/param-build.sh b/scripts/lttng-modules/param-build.sh index 34ad6a9..405c61f 100644 --- a/scripts/lttng-modules/param-build.sh +++ b/scripts/lttng-modules/param-build.sh @@ -65,6 +65,11 @@ prepare_lnx_sources() { cp CONFIGS/"${ubuntu_config}" "${outdir}"/.config ;; *) + # Force 32bit build on x86-32, default is 64bit + if [ "$arch" = "x86-32" ]; then + export ARCH="i386" + fi + # Que sera sera make "${vanilla_config}" CC="$CC" ${koutput} ;; @@ -88,21 +93,20 @@ prepare_lnx_sources() { echo "CONFIG_KALLSYMS_ALL=y"; } >> "${outdir}"/.config + # Debug + #cat "${outdir}"/.config make "$oldconf_target" CC="$CC" ${koutput} make modules_prepare CC="$CC" ${koutput} - # 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 - # On arm64 this object is required to build with ftrace support + # On arm64 between 4.13 and 4.15 this object is required to build with ftrace support if [ "${karch}" = "arm64" ]; then - if vergte "$KVERSION" "4.13-rc1"; then + if [ -f "arch/arm64/kernel/ftrace-mod.S" ]; then make arch/arm64/kernel/ftrace-mod.o CC="$CC" ${koutput} fi fi @@ -334,9 +338,9 @@ if [ "${karch}" = "powerpc" ]; then cp -a --parents arch/powerpc/lib/crtsavres.[So] "${LNXHDRDIR}/" fi -# On arm64 this object is required to build with ftrace support +# On arm64 between 4.13 and 1.15 this object is required to build with ftrace support if [ "${karch}" = "arm64" ]; then - if vergte "$KVERSION" "4.13-rc1"; then + if [ -f "arch/arm64/kernel/ftrace-mod.S" ]; then cp -a --parents arch/arm64/kernel/ftrace-mod.[So] "${LNXHDRDIR}/" fi fi