mips: fix dynamic ftrace
authorVincent Wiemann <webmaster@codefetch.de>
Sat, 9 Jun 2018 20:56:47 +0000 (22:56 +0200)
committerJohn Crispin <john@phrozen.org>
Mon, 18 Jun 2018 19:21:56 +0000 (21:21 +0200)
commitb85e150182258739a14d3625605766775a939977
tree25b8221b198122396d86e724b9873a121b5b013c
parentb3b81d9d2a33dcf50ced5d42357a82b2555600bd
mips: fix dynamic ftrace

The kernel patch *-mips_module_reloc.patch breaks dynamic ftrace as
dynamic ftrace depends on -mlong-calls.
See http://patchwork.linux-mips.org/patch/675/
Thus we always set -mlong-calls if the kernel is being
compiled with dynamic ftrace support.

Signed-off-by: Vincent Wiemann <webmaster@codefetch.de>
(cherry picked from commit 076d2ea6829855ee14ebd65230146eb27ee16750)
target/linux/generic/pending-4.9/305-mips_module_reloc.patch