jjb: handle powerpc cross_build on ubuntu >= 4.10
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 1 Aug 2017 19:33:56 +0000 (15:33 -0400)
committerMichael Jeanson <mjeanson@efficios.com>
Tue, 1 Aug 2017 19:33:56 +0000 (15:33 -0400)
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
scripts/lttng-modules/param-build.sh

index 443059da8d298b14efde53a940e6bf86a202f105..b34200187e607bddd319a989b64a4d5bc7fda421 100644 (file)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+# Parameters
+arch=${arch:-}
+cross_arch=${cross_arch:-}
+ktag=${ktag:-}
+
+
 ## FUNCTIONS ##
 
 # Kernel version compare functions
@@ -48,6 +54,12 @@ prepare_lnx_sources() {
     # 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")
This page took 0.024748 seconds and 4 git commands to generate.