ar71xx: fix legacy image build error
[openwrt/openwrt.git] / target / linux / generic / patches-4.1 / 302-mips_no_branch_likely.patch
1 --- a/arch/mips/Makefile
2 +++ b/arch/mips/Makefile
3 @@ -87,7 +87,7 @@ all-$(CONFIG_SYS_SUPPORTS_ZBOOT)+= vmlin
4 # machines may also. Since BFD is incredibly buggy with respect to
5 # crossformat linking we rely on the elf2ecoff tool for format conversion.
6 #
7 -cflags-y += -G 0 -mno-abicalls -fno-pic -pipe
8 +cflags-y += -G 0 -mno-abicalls -fno-pic -pipe -mno-branch-likely
9 cflags-y += -msoft-float
10 LDFLAGS_vmlinux += -G 0 -static -n -nostdlib --gc-sections
11 KBUILD_AFLAGS_MODULE += -mlong-calls