From: Ralf Baechle Date: Sat, 18 Mar 2006 16:59:31 +0000 (+0000) Subject: [MIPS] SB1: Check for -mno-sched-prolog if building corelis debug kernel. X-Git-Tag: Ubuntu-goldfish-3.4.0-4.27~35074^2 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=9007c9a2b03ea325ee593a161dbf01dbb8222d7e;p=mirror_ubuntu-zesty-kernel.git [MIPS] SB1: Check for -mno-sched-prolog if building corelis debug kernel. Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/Makefile b/arch/mips/Makefile index fe9da16f3a40..3d8dac681c63 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile @@ -108,7 +108,8 @@ MODFLAGS += -mlong-calls cflags-$(CONFIG_CPU_BIG_ENDIAN) += $(shell $(CC) -dumpmachine |grep -q 'mips.*el-.*' && echo -EB) cflags-$(CONFIG_CPU_LITTLE_ENDIAN) += $(shell $(CC) -dumpmachine |grep -q 'mips.*el-.*' || echo -EL) -cflags-$(CONFIG_SB1XXX_CORELIS) += -mno-sched-prolog -fno-omit-frame-pointer +cflags-$(CONFIG_SB1XXX_CORELIS) += $(call cc-option,-mno-sched-prolog) \ + -fno-omit-frame-pointer # # Use: $(call set_gccflags,,,,,)