summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaura Abbott <labbott@redhat.com>2018-05-03 14:18:04 -0700
committerLaura Abbott <labbott@redhat.com>2018-05-04 13:15:06 -0700
commit9747cecd423dbe21ab27b78c02593922a07bca3e (patch)
treeb16357545fa8ef9d09bc08d13e178736930af9ee
parentff6ae77804e52094da331d65092d07d01631fd69 (diff)
downloadkernel-9747cecd423dbe21ab27b78c02593922a07bca3e.tar.gz
kernel-9747cecd423dbe21ab27b78c02593922a07bca3e.tar.xz
kernel-9747cecd423dbe21ab27b78c02593922a07bca3e.zip
Fix for building out of tree modules on powerpc (rhbz 1574604)
-rw-r--r--kernel.spec8
1 files changed, 6 insertions, 2 deletions
diff --git a/kernel.spec b/kernel.spec
index a1104e0a7..a580c0746 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -1390,6 +1390,9 @@ BuildKernel() {
if [ -f arch/$Arch/*lds ]; then
cp -a arch/$Arch/*lds $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/arch/%{_arch}/ || :
fi
+ if [ -f arch/%{asmarch}/kernel/module.lds ]; then
+ cp -a --parents arch/%{asmarch}/kernel/module.lds $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
+ fi
rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts/*.o
rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts/*/*.o
%ifarch %{power64}
@@ -1399,8 +1402,6 @@ BuildKernel() {
cp -a --parents arch/%{asmarch}/include $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
fi
%ifarch aarch64
- # Needed for systemtap
- cp -a --parents arch/arm64/kernel/module.lds $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
# arch/arm64/include/asm/xen references arch/arm
cp -a --parents arch/arm/include/asm/xen $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
# arch/arm64/include/asm/opcodes.h references arch/arm
@@ -1913,6 +1914,9 @@ fi
#
#
%changelog
+* Fri May 04 2018 Laura Abbott <labbott@redhat.com>
+- Fix for building out of tree modules on powerpc (rhbz 1574604)
+
* Fri May 04 2018 Justin M. Forbes <jforbes@fedoraproject.org>
- Fix CVE-2018-10322 (rhbz 1571623 1571624)
- Fix CVE-2018-10323 (rhbz 1571627 1571630)