Home Home > GIT Browse > stable-xen
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2017-09-08 13:19:18 +0200
committerJiri Slaby <jslaby@suse.cz>2017-09-08 13:19:18 +0200
commit07da11578db2770139c535286c022c0265fc5bc9 (patch)
tree2c87b3f50fb87154c18938b86b9bc49d1c25d413
parent0b0b5c9c271387f85312f0ead5a4bd3915e8bc3c (diff)
rpm/kernel-binary.spec.in: package ftrace-mod.o on arm64
It is needed for building modules since 4.13: CC [M] /suse/jslaby/a/aaa.o Building modules, stage 2. MODPOST 1 modules CC /suse/jslaby/a/aaa.mod.o LD [M] /suse/jslaby/a/aaa.ko ld: cannot find ./arch/arm64/kernel/ftrace-mod.o: No such file or directory ...
-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