Skip to content

Commit 8f50f2a

Browse files
pebolleJesper Nilsson
authored andcommitted
cris: No need to append -O2 and $(LINUXINCLUDE)
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 <[email protected]> Signed-off-by: Jesper Nilsson <[email protected]>
1 parent c78874f commit 8f50f2a

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

arch/cris/boot/compressed/Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
# arch/cris/boot/compressed/Makefile
33
#
44

5-
asflags-y += $(LINUXINCLUDE)
6-
ccflags-y += -O2 $(LINUXINCLUDE)
7-
85
# asflags-$(CONFIG_ETRAX_ARCH_V32) += -I$(srctree)/include/asm/mach \
96
# -I$(srctree)/include/asm/arch
107
# ccflags-$(CONFIG_ETRAX_ARCH_V32) += -O2 -I$(srctree)/include/asm/mach

arch/cris/boot/rescue/Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
# asflags-y += -I $(srctree)/include/asm/arch/mach/ -I $(srctree)/include/asm/arch
99
# LD = gcc-cris -mlinux -march=v32 -nostdlib
1010

11-
asflags-y += $(LINUXINCLUDE)
12-
ccflags-y += -O2 $(LINUXINCLUDE)
13-
1411
ifdef CONFIG_ETRAX_AXISFLASHMAP
1512

1613
arch-$(CONFIG_ETRAX_ARCH_V10) = v10

0 commit comments

Comments
 (0)