jjb: Fix cross build of lttng-modules
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 24 Jan 2017 20:42:16 +0000 (15:42 -0500)
committerMichael Jeanson <mjeanson@efficios.com>
Tue, 24 Jan 2017 20:42:16 +0000 (15:42 -0500)
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
scripts/lttng-modules/param-build.sh

index 7e8aa74f8680f9a3c6fbfa78f4293e481ca3a5d5..1798b9f505afa752bd54d9a73e5a1ab4ffd172b1 100644 (file)
@@ -75,7 +75,7 @@ prepare_lnx_sources() {
     echo "CONFIG_KALLSYMS_ALL=y" >> "${outdir}"/.config
 
 
-    make ${koutput} olddefconfig CC=$CC
+    make ${koutput} $oldconf_target CC=$CC
     make ${koutput} modules_prepare CC=$CC
 
     # Version specific tasks
@@ -204,6 +204,8 @@ if [ "x${cross_arch:-}" != "x" ]; then
     export ARCH="${karch}"
     export CROSS_COMPILE="${cross_compile}"
 
+    oldconf_target="olddefconfig"
+
 # Set arch specific values if we are not cross compiling
 elif [ "x${arch:-}" != "x" ]; then
 
@@ -253,6 +255,8 @@ elif [ "x${arch:-}" != "x" ]; then
     # Use gcc 4.9, older kernel don't build with gcc 5
     CC=gcc-4.9
 
+    oldconf_target="silentoldconfig"
+
 else
     echo "Not arch or cross_arch specified"
     exit 1
This page took 0.024626 seconds and 4 git commands to generate.