jjb: lttng-modules: add floor for ubuntu riscv builds
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 2 Oct 2023 20:59:50 +0000 (16:59 -0400)
committerMichael Jeanson <mjeanson@efficios.com>
Mon, 2 Oct 2023 20:59:55 +0000 (16:59 -0400)
Change-Id: I1bcb92e8a4f727364d6fc887167b436f2481066b
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
scripts/lttng-modules/param-build.sh

index 5d12ca50c5cb45d80322783e6749cbffee479368..67ed460ba934ba8890e14724cfb376b02ef02ef5 100644 (file)
@@ -288,11 +288,14 @@ build_linux_kernel() {
     # 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
+        if [ "${cross_arch}" = "powerpc" ] && 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
+
+        if [ "${cross_arch}" = "riscv64" ] && verlt "${kversion}" "6.2"; then
+          echo "Ubuntu added RISC-V config to their 'regular' kernels in v6.2. Don't try to build it."
+          exit 0
         fi
 
         fakeroot debian/rules clean KW_DEFCONFIG_DIR=.
This page took 0.023803 seconds and 4 git commands to generate.