OpenWrt – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 From: Felix Fietkau <nbd@nbd.name>
2 Subject: mips: use -mno-branch-likely for kernel and userspace
3  
4 saves ~11k kernel size after lzma and ~12k squashfs size in the
5  
6 lede-commit: 41a039f46450ffae9483d6216422098669da2900
7 Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 ---
9 arch/mips/Makefile | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
11  
12 --- a/arch/mips/Makefile
13 +++ b/arch/mips/Makefile
14 @@ -90,7 +90,7 @@ all-$(CONFIG_SYS_SUPPORTS_ZBOOT)+= vmlin
15 # machines may also. Since BFD is incredibly buggy with respect to
16 # crossformat linking we rely on the elf2ecoff tool for format conversion.
17 #
18 -cflags-y += -G 0 -mno-abicalls -fno-pic -pipe
19 +cflags-y += -G 0 -mno-abicalls -fno-pic -pipe -mno-branch-likely
20 cflags-y += -msoft-float
21 LDFLAGS_vmlinux += -G 0 -static -n -nostdlib
22 KBUILD_AFLAGS_MODULE += -mlong-calls