Re: [linux-yocto] [PATCH 4.14&4.15] MIPS: Use '+=" instead of '=' to avoid the CFLAGS override

2018-06-11 Thread Bruce Ashfield

On 2018-06-11 6:17 AM, Kevin Hao wrote:

We used the CFLAGS_xxx to workaround the gcc 8 build warnings
for some specific file. But CFLAGS_xxx is also used with '=' in
other places of this Makefile. This override the gcc 8 workaround,
so replace all the '=' with '+=" to fix this issue.


merged. SRCREV updates will be out shortly.

Bruce



Signed-off-by: Kevin Hao 
---
  arch/mips/kernel/Makefile | 10 +-
  1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/arch/mips/kernel/Makefile b/arch/mips/kernel/Makefile
index f10e1e15e1c6..7a00a8e840ad 100644
--- a/arch/mips/kernel/Makefile
+++ b/arch/mips/kernel/Makefile
@@ -124,11 +124,11 @@ obj-$(CONFIG_MIPS_CPS_PM) += pm-cps.o
  ifeq ($(CONFIG_CPU_MIPSR2), y)
  CFLAGS_DSP= -DHAVE_AS_DSP
  
-CFLAGS_signal.o			= $(CFLAGS_DSP)

-CFLAGS_signal32.o  = $(CFLAGS_DSP)
-CFLAGS_process.o   = $(CFLAGS_DSP)
-CFLAGS_branch.o= $(CFLAGS_DSP)
-CFLAGS_ptrace.o= $(CFLAGS_DSP)
+CFLAGS_signal.o+= $(CFLAGS_DSP)
+CFLAGS_signal32.o  += $(CFLAGS_DSP)
+CFLAGS_process.o   += $(CFLAGS_DSP)
+CFLAGS_branch.o+= $(CFLAGS_DSP)
+CFLAGS_ptrace.o+= $(CFLAGS_DSP)
  endif
  
  CPPFLAGS_vmlinux.lds		:= $(KBUILD_CFLAGS)




--
___
linux-yocto mailing list
linux-yo...@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto


[linux-yocto] [PATCH 4.14&4.15] MIPS: Use '+=" instead of '=' to avoid the CFLAGS override

2018-06-11 Thread Kevin Hao
We used the CFLAGS_xxx to workaround the gcc 8 build warnings
for some specific file. But CFLAGS_xxx is also used with '=' in
other places of this Makefile. This override the gcc 8 workaround,
so replace all the '=' with '+=" to fix this issue.

Signed-off-by: Kevin Hao 
---
 arch/mips/kernel/Makefile | 10 +-
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/arch/mips/kernel/Makefile b/arch/mips/kernel/Makefile
index f10e1e15e1c6..7a00a8e840ad 100644
--- a/arch/mips/kernel/Makefile
+++ b/arch/mips/kernel/Makefile
@@ -124,11 +124,11 @@ obj-$(CONFIG_MIPS_CPS_PM) += pm-cps.o
 ifeq ($(CONFIG_CPU_MIPSR2), y)
 CFLAGS_DSP = -DHAVE_AS_DSP
 
-CFLAGS_signal.o= $(CFLAGS_DSP)
-CFLAGS_signal32.o  = $(CFLAGS_DSP)
-CFLAGS_process.o   = $(CFLAGS_DSP)
-CFLAGS_branch.o= $(CFLAGS_DSP)
-CFLAGS_ptrace.o= $(CFLAGS_DSP)
+CFLAGS_signal.o+= $(CFLAGS_DSP)
+CFLAGS_signal32.o  += $(CFLAGS_DSP)
+CFLAGS_process.o   += $(CFLAGS_DSP)
+CFLAGS_branch.o+= $(CFLAGS_DSP)
+CFLAGS_ptrace.o+= $(CFLAGS_DSP)
 endif
 
 CPPFLAGS_vmlinux.lds   := $(KBUILD_CFLAGS)
-- 
2.14.3

-- 
___
linux-yocto mailing list
linux-yo...@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto