]> git.karo-electronics.de Git - linux-beck.git/commitdiff
cris: No need to append -O2 and $(LINUXINCLUDE)
authorPaul Bolle <pebolle@tiscali.nl>
Fri, 25 Nov 2016 12:30:04 +0000 (13:30 +0100)
committerJesper Nilsson <jespern@axis.com>
Thu, 8 Dec 2016 09:56:40 +0000 (10:56 +0100)
The make variables asflags-y and ccflags-y are appended with -O2 and
$(LINUXINCLUDE). But the build already picks up -O2 from the top Makefile
and $(LINUXINCLUDE) from scripts/Makefile.lib. The net effect is that -O2
and the (long) list of include directories are used twice.

This is harmless but pointless. So stop appending to these flags.

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Jesper Nilsson <jespern@axis.com>
arch/cris/boot/compressed/Makefile
arch/cris/boot/rescue/Makefile

index 8fe9338c1775be79749a0013df529d8d46613d53..e4ba0be0e782513c57e1aa69c3b76e2bab711a17 100644 (file)
@@ -2,9 +2,6 @@
 # arch/cris/boot/compressed/Makefile
 #
 
-asflags-y += $(LINUXINCLUDE)
-ccflags-y += -O2 $(LINUXINCLUDE)
-
 # asflags-$(CONFIG_ETRAX_ARCH_V32) += -I$(srctree)/include/asm/mach \
 #                                  -I$(srctree)/include/asm/arch
 # ccflags-$(CONFIG_ETRAX_ARCH_V32) += -O2 -I$(srctree)/include/asm/mach
index d98edbb30a18e8925d77f10c75cfe64565595398..a82025940006acd8a297f26c80f878c40ed9b02a 100644 (file)
@@ -8,9 +8,6 @@
 # asflags-y += -I $(srctree)/include/asm/arch/mach/ -I $(srctree)/include/asm/arch
 # LD = gcc-cris -mlinux -march=v32 -nostdlib
 
-asflags-y += $(LINUXINCLUDE)
-ccflags-y += -O2 $(LINUXINCLUDE)
-
 ifdef CONFIG_ETRAX_AXISFLASHMAP
 
 arch-$(CONFIG_ETRAX_ARCH_V10) = v10