Skip to content

Commit

Permalink
kbuild: fix AFLAGS use in h8300 and m68knommu
Browse files Browse the repository at this point in the history
In most cases when AFALGS is manipuled direct this is a bug
and EXTRA_AFLAGS should have been used.
Fix the obvious candidates.

Signed-off-by: Sam Ravnborg <[email protected]>
Cc: Greg Ungerer <[email protected]>
Cc: Yoshinori Sato <[email protected]>
  • Loading branch information
Sam Ravnborg committed Oct 15, 2007
1 parent 0c53c8e commit 714055e
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 14 deletions.
3 changes: 0 additions & 3 deletions arch/h8300/lib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,4 @@
# Makefile for H8/300-specific library files..
#

.S.o:
$(CC) $(AFLAGS) -D__ASSEMBLY__ -c $< -o $@

lib-y = ashrdi3.o checksum.o memcpy.o memset.o abs.o romfs.o
2 changes: 1 addition & 1 deletion arch/m68knommu/platform/5206/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#

ifdef CONFIG_FULLDEBUG
AFLAGS += -DDEBUGGER_COMPATIBLE_CACHE=1
EXTRA_AFLAGS += -DDEBUGGER_COMPATIBLE_CACHE=1
endif

obj-y := config.o
Expand Down
2 changes: 1 addition & 1 deletion arch/m68knommu/platform/5206e/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#

ifdef CONFIG_FULLDEBUG
AFLAGS += -DDEBUGGER_COMPATIBLE_CACHE=1
EXTRA_AFLAGS += -DDEBUGGER_COMPATIBLE_CACHE=1
endif

obj-y := config.o
Expand Down
2 changes: 1 addition & 1 deletion arch/m68knommu/platform/520x/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#

ifdef CONFIG_FULLDEBUG
AFLAGS += -DDEBUGGER_COMPATIBLE_CACHE=1
EXTRA_AFLAGS += -DDEBUGGER_COMPATIBLE_CACHE=1
endif

obj-y := config.o
2 changes: 1 addition & 1 deletion arch/m68knommu/platform/523x/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#

ifdef CONFIG_FULLDEBUG
AFLAGS += -DDEBUGGER_COMPATIBLE_CACHE=1
EXTRA_AFLAGS += -DDEBUGGER_COMPATIBLE_CACHE=1
endif

obj-y := config.o
2 changes: 1 addition & 1 deletion arch/m68knommu/platform/5249/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#

ifdef CONFIG_FULLDEBUG
AFLAGS += -DDEBUGGER_COMPATIBLE_CACHE=1
EXTRA_AFLAGS += -DDEBUGGER_COMPATIBLE_CACHE=1
endif

obj-y := config.o
Expand Down
2 changes: 1 addition & 1 deletion arch/m68knommu/platform/5272/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#

ifdef CONFIG_FULLDEBUG
AFLAGS += -DDEBUGGER_COMPATIBLE_CACHE=1
EXTRA_AFLAGS += -DDEBUGGER_COMPATIBLE_CACHE=1
endif

obj-y := config.o
Expand Down
2 changes: 1 addition & 1 deletion arch/m68knommu/platform/527x/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#

ifdef CONFIG_FULLDEBUG
AFLAGS += -DDEBUGGER_COMPATIBLE_CACHE=1
EXTRA_AFLAGS += -DDEBUGGER_COMPATIBLE_CACHE=1
endif

obj-y := config.o
Expand Down
2 changes: 1 addition & 1 deletion arch/m68knommu/platform/528x/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#

ifdef CONFIG_FULLDEBUG
AFLAGS += -DDEBUGGER_COMPATIBLE_CACHE=1
EXTRA_AFLAGS += -DDEBUGGER_COMPATIBLE_CACHE=1
endif

obj-y := config.o
Expand Down
2 changes: 1 addition & 1 deletion arch/m68knommu/platform/5307/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#

ifdef CONFIG_FULLDEBUG
AFLAGS += -DDEBUGGER_COMPATIBLE_CACHE=1
EXTRA_AFLAGS += -DDEBUGGER_COMPATIBLE_CACHE=1
endif

obj-$(CONFIG_COLDFIRE) += entry.o vectors.o
Expand Down
2 changes: 1 addition & 1 deletion arch/m68knommu/platform/532x/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#

ifdef CONFIG_FULLDEBUG
AFLAGS += -DDEBUGGER_COMPATIBLE_CACHE=1
EXTRA_AFLAGS += -DDEBUGGER_COMPATIBLE_CACHE=1
endif

#obj-y := config.o usb-mcf532x.o spi-mcf532x.o
Expand Down
2 changes: 1 addition & 1 deletion arch/m68knommu/platform/5407/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#

ifdef CONFIG_FULLDEBUG
AFLAGS += -DDEBUGGER_COMPATIBLE_CACHE=1
EXTRA_AFLAGS += -DDEBUGGER_COMPATIBLE_CACHE=1
endif

obj-y := config.o
Expand Down

0 comments on commit 714055e

Please sign in to comment.