Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2017-09-08 13:22:56 +0200
committerJiri Slaby <jslaby@suse.cz>2017-09-08 13:22:56 +0200
commit7e9e30a752f3add074e1cc482622210a618de2bb (patch)
tree639b031b0ee535743e14df6905bdf3d843825c1b
parentc167b1d1ebda9c8315772a304697e20d31b9f5bd (diff)
parent07da11578db2770139c535286c022c0265fc5bc9 (diff)
Merge branch 'packaging'
-rw-r--r--rpm/kernel-binary.spec.in11
1 files changed, 6 insertions, 5 deletions
diff --git a/rpm/kernel-binary.spec.in b/rpm/kernel-binary.spec.in
index f5ab9e810f..d4cf2c9376 100644
--- a/rpm/kernel-binary.spec.in
+++ b/rpm/kernel-binary.spec.in
@@ -703,11 +703,12 @@ if [ %CONFIG_MODULES = y ]; then
fi
fi
- # arch/powerpc/lib/crtsavres.o is required for building external
- # modules on powerpc
- if [ -f %kernel_build_dir/arch/powerpc/lib/crtsavres.o ]; then
- echo arch/powerpc/lib/crtsavres.o >> %my_builddir/obj-files
- fi
+ # These files are required for building external modules
+ for FILE in arch/powerpc/lib/crtsavres.o arch/arm64/kernel/ftrace-mod.o; do
+ if [ -f %kernel_build_dir/$FILE ]; then
+ echo $FILE >> %my_builddir/obj-files
+ fi
+ done
tar -cf - -T %my_builddir/obj-files | \
tar -xf - -C %rpm_install_dir/%cpu_arch_flavor