jjb: Fix more ppc64el linux build for modules
authorMichael Jeanson <mjeanson@efficios.com>
Fri, 18 Oct 2019 20:23:15 +0000 (16:23 -0400)
committerMichael Jeanson <mjeanson@efficios.com>
Fri, 18 Oct 2019 20:23:15 +0000 (16:23 -0400)
scripts/lttng-modules/param-build.sh

index e016e135173081916b6c728f8daa22e7448970a7..0ce165a7aca1d2b67a542a8868d3d1bf9d160970 100644 (file)
@@ -314,7 +314,9 @@ extract_distro_headers() {
 
     # On powerpc 32bits this object is required to link modules
     if [ "${karch}" = "powerpc" ]; then
-        if [ "x$(scripts/config -s CONFIG_PPC64)" = "xn" ]; then
+        if [ "x$(scripts/config -s CONFIG_PPC64)" = "xy" ] && vergte "${kversion}" "5.4"; then
+            :
+        else
             cp -a --parents arch/powerpc/lib/crtsavres.[So] "${LINUX_HDROBJ_DIR}/"
         fi
     fi
@@ -374,7 +376,9 @@ extract_distro_headers() {
 
     # On powerpc 32bits this object is required to link modules
     if [ "${karch}" = "powerpc" ]; then
-        if [ "x$(scripts/config -s CONFIG_PPC64)" = "xn" ]; then
+        if [ "x$(scripts/config -s CONFIG_PPC64)" = "xy" ] && vergte "${kversion}" "5.4"; then
+            :
+        else
             make arch/powerpc/lib/crtsavres.o CC="$CC"
         fi
     fi
This page took 0.023945 seconds and 4 git commands to generate.