Skip to content

Commit

Permalink
[MIPS] Kill redundant EXTRA_AFLAGS
Browse files Browse the repository at this point in the history
Many Makefiles in arch/mips have EXTRA_AFLAGS := $(CFLAGS) line.  This
is redundant while AFLAGS contains $(cflags-y) and any options only
listed in CFLAGS (not in cflags-y) should be unnecessary for asm
sources.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Atsushi Nemoto authored and Ralf Baechle committed Feb 26, 2007
1 parent 67e2ccc commit d2af363
Show file tree
Hide file tree
Showing 24 changed files with 0 additions and 48 deletions.
2 changes: 0 additions & 2 deletions arch/mips/cobalt/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,3 @@ obj-y := irq.o reset.o setup.o

obj-$(CONFIG_EARLY_PRINTK) += console.o
obj-$(CONFIG_MTD_PHYSMAP) += mtd.o

EXTRA_AFLAGS := $(CFLAGS)
2 changes: 0 additions & 2 deletions arch/mips/ddb5xxx/ddb5477/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,3 @@ obj-y += irq.o irq_5477.o setup.o lcd44780.o

obj-$(CONFIG_RUNTIME_DEBUG) += debug.o
obj-$(CONFIG_KGDB) += kgdb_io.o

EXTRA_AFLAGS := $(CFLAGS)
2 changes: 0 additions & 2 deletions arch/mips/dec/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ obj-y := ecc-berr.o int-handler.o ioasic-irq.o kn01-berr.o \
obj-$(CONFIG_PROM_CONSOLE) += promcon.o
obj-$(CONFIG_TC) += tc.o
obj-$(CONFIG_CPU_HAS_WB) += wbflush.o

EXTRA_AFLAGS := $(CFLAGS)
2 changes: 0 additions & 2 deletions arch/mips/dec/prom/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,3 @@ lib-y += init.o memory.o cmdline.o identify.o console.o

lib-$(CONFIG_32BIT) += locore.o
lib-$(CONFIG_64BIT) += call_o32.o

EXTRA_AFLAGS := $(CFLAGS)
2 changes: 0 additions & 2 deletions arch/mips/gt64120/ev64120/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,3 @@
#

obj-y += irq.o promcon.o reset.o serialGT.o setup.o

EXTRA_AFLAGS := $(CFLAGS)
2 changes: 0 additions & 2 deletions arch/mips/gt64120/momenco_ocelot/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,3 @@
obj-y += irq.o prom.o reset.o setup.o

obj-$(CONFIG_KGDB) += dbg_io.o

EXTRA_AFLAGS := $(CFLAGS)
2 changes: 0 additions & 2 deletions arch/mips/gt64120/wrppmc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,3 @@
#

obj-y += irq.o reset.o setup.o time.o pci.o

EXTRA_AFLAGS := $(CFLAGS)
2 changes: 0 additions & 2 deletions arch/mips/jazz/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@
#

obj-y := irq.o jazzdma.o reset.o setup.o

EXTRA_AFLAGS := $(CFLAGS)
2 changes: 0 additions & 2 deletions arch/mips/jmr3927/rbhma3100/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,3 @@
obj-y += init.o irq.o setup.o
obj-$(CONFIG_RUNTIME_DEBUG) += debug.o
obj-$(CONFIG_KGDB) += kgdb_io.o

EXTRA_AFLAGS := $(CFLAGS)
2 changes: 0 additions & 2 deletions arch/mips/kernel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,3 @@ obj-$(CONFIG_I8253) += i8253.o
obj-$(CONFIG_KEXEC) += machine_kexec.o relocate_kernel.o

CFLAGS_cpu-bugs64.o = $(shell if $(CC) $(CFLAGS) -Wa,-mdaddi -c -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-DHAVE_AS_SET_DADDI"; fi)

EXTRA_AFLAGS := $(CFLAGS)
2 changes: 0 additions & 2 deletions arch/mips/lib-32/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,3 @@ obj-$(CONFIG_CPU_SB1) += dump_tlb.o
obj-$(CONFIG_CPU_TX39XX) += r3k_dump_tlb.o
obj-$(CONFIG_CPU_TX49XX) += dump_tlb.o
obj-$(CONFIG_CPU_VR41XX) += dump_tlb.o

EXTRA_AFLAGS := $(CFLAGS)
2 changes: 0 additions & 2 deletions arch/mips/lib-64/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,3 @@ obj-$(CONFIG_CPU_SB1) += dump_tlb.o
obj-$(CONFIG_CPU_TX39XX) += r3k_dump_tlb.o
obj-$(CONFIG_CPU_TX49XX) += dump_tlb.o
obj-$(CONFIG_CPU_VR41XX) += dump_tlb.o

EXTRA_AFLAGS := $(CFLAGS)
2 changes: 0 additions & 2 deletions arch/mips/lib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,3 @@ obj-$(CONFIG_PCI) += iomap-pci.o

# libgcc-style stuff needed in the kernel
lib-y += ashldi3.o ashrdi3.o lshrdi3.o

EXTRA_AFLAGS := $(CFLAGS)
2 changes: 0 additions & 2 deletions arch/mips/mips-boards/generic/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,3 @@ obj-y := reset.o display.o init.o memory.o printf.o \
cmdline.o time.o
obj-$(CONFIG_PCI) += pci.o
obj-$(CONFIG_KGDB) += gdb_hook.o

EXTRA_AFLAGS := $(CFLAGS)
2 changes: 0 additions & 2 deletions arch/mips/mm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,3 @@ obj-$(CONFIG_IP22_CPU_SCACHE) += sc-ip22.o
obj-$(CONFIG_R5000_CPU_SCACHE) += sc-r5k.o
obj-$(CONFIG_RM7000_CPU_SCACHE) += sc-rm7k.o
obj-$(CONFIG_MIPS_CPU_SCACHE) += sc-mips.o

EXTRA_AFLAGS := $(CFLAGS)
2 changes: 0 additions & 2 deletions arch/mips/momentum/ocelot_g/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,3 @@

obj-y += irq.o gt-irq.o prom.o reset.o setup.o
obj-$(CONFIG_KGDB) += dbg_io.o

EXTRA_AFLAGS := $(CFLAGS)
2 changes: 0 additions & 2 deletions arch/mips/sgi-ip22/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,3 @@ obj-y += ip22-mc.o ip22-hpc.o ip22-int.o ip22-berr.o \
ip22-time.o ip22-nvram.o ip22-reset.o ip22-setup.o

obj-$(CONFIG_EISA) += ip22-eisa.o

EXTRA_AFLAGS := $(CFLAGS)
2 changes: 0 additions & 2 deletions arch/mips/sgi-ip27/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,3 @@ obj-y := ip27-berr.o ip27-irq.o ip27-init.o ip27-klconfig.o ip27-klnuma.o \
obj-$(CONFIG_EARLY_PRINTK) += ip27-console.o
obj-$(CONFIG_KGDB) += ip27-dbgio.o
obj-$(CONFIG_SMP) += ip27-smp.o

EXTRA_AFLAGS := $(CFLAGS)
2 changes: 0 additions & 2 deletions arch/mips/sgi-ip32/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,3 @@

obj-y += ip32-berr.o ip32-irq.o ip32-setup.o ip32-reset.o \
crime.o ip32-memory.o

EXTRA_AFLAGS := $(CFLAGS)
2 changes: 0 additions & 2 deletions arch/mips/sibyte/bcm1480/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
obj-y := setup.o irq.o time.o

obj-$(CONFIG_SMP) += smp.o

EXTRA_AFLAGS := $(CFLAGS)
2 changes: 0 additions & 2 deletions arch/mips/sibyte/sb1250/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,3 @@ obj-$(CONFIG_SMP) += smp.o
obj-$(CONFIG_SIBYTE_TBPROF) += bcm1250_tbprof.o
obj-$(CONFIG_SIBYTE_STANDALONE) += prom.o
obj-$(CONFIG_SIBYTE_BUS_WATCHER) += bus_watcher.o

EXTRA_AFLAGS := $(CFLAGS)
2 changes: 0 additions & 2 deletions arch/mips/sni/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,3 @@

obj-y += irq.o reset.o setup.o ds1216.o a20r.o rm200.o pcimt.o pcit.o time.o
obj-$(CONFIG_CPU_BIG_ENDIAN) += sniprom.o

EXTRA_AFLAGS := $(CFLAGS)
2 changes: 0 additions & 2 deletions arch/mips/tx4927/toshiba_rbtx4927/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
obj-y += toshiba_rbtx4927_prom.o
obj-y += toshiba_rbtx4927_setup.o
obj-y += toshiba_rbtx4927_irq.o

EXTRA_AFLAGS := $(CFLAGS)
2 changes: 0 additions & 2 deletions arch/mips/vr41xx/common/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@
#

obj-y += bcu.o cmu.o icu.o init.o irq.o pmu.o type.o

EXTRA_AFLAGS := $(CFLAGS)

0 comments on commit d2af363

Please sign in to comment.