Patchwork [U-Boot,v2,3/5] coldfire: Permit build in a different directory

login
register
mail settings
Submitter y@theia.denx.de
Date Aug. 31, 2011, 12:11 p.m.
Message ID <1314792691-9102-1-git-send-email-y>
Download mbox | patch
Permalink /patch/112543/
State Changes Requested
Delegated to: Jason Jin
Headers show

Comments

y@theia.denx.de - Aug. 31, 2011, 12:11 p.m.
From: Stany MARCEL <stany.marcel@novasys-ingenierie.com>

Add $(obj) before lib$(CPU) to permit build in a different directory

Signed-off-by: Stany MARCEL <stany.marcel@novasys-ingenierie.com>
---
Changes for v2:
   - None

 arch/m68k/cpu/mcf5227x/Makefile   |    2 +-
 arch/m68k/cpu/mcf523x/Makefile    |    2 +-
 arch/m68k/cpu/mcf532x/Makefile    |    2 +-
 arch/m68k/cpu/mcf5445x/Makefile   |    2 +-
 arch/m68k/cpu/mcf547x_8x/Makefile |    2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

--
1.7.1

Patch

diff --git a/arch/m68k/cpu/mcf5227x/Makefile b/arch/m68k/cpu/mcf5227x/Makefile
index eb36264..0490f0e 100644
--- a/arch/m68k/cpu/mcf5227x/Makefile
+++ b/arch/m68k/cpu/mcf5227x/Makefile
@@ -25,7 +25,7 @@  include $(TOPDIR)/config.mk

 # CFLAGS += -DET_DEBUG

-LIB	= lib$(CPU).o
+LIB	= $(obj)lib$(CPU).o

 START	= start.o
 COBJS	= cpu.o speed.o cpu_init.o interrupts.o
diff --git a/arch/m68k/cpu/mcf523x/Makefile b/arch/m68k/cpu/mcf523x/Makefile
index eb36264..0490f0e 100644
--- a/arch/m68k/cpu/mcf523x/Makefile
+++ b/arch/m68k/cpu/mcf523x/Makefile
@@ -25,7 +25,7 @@  include $(TOPDIR)/config.mk

 # CFLAGS += -DET_DEBUG

-LIB	= lib$(CPU).o
+LIB	= $(obj)lib$(CPU).o

 START	= start.o
 COBJS	= cpu.o speed.o cpu_init.o interrupts.o
diff --git a/arch/m68k/cpu/mcf532x/Makefile b/arch/m68k/cpu/mcf532x/Makefile
index 257d46d..eb043d9 100644
--- a/arch/m68k/cpu/mcf532x/Makefile
+++ b/arch/m68k/cpu/mcf532x/Makefile
@@ -25,7 +25,7 @@  include $(TOPDIR)/config.mk

 # CFLAGS += -DET_DEBUG

-LIB	= lib$(CPU).o
+LIB	= $(obj)lib$(CPU).o

 START	=
 COBJS	= cpu.o speed.o cpu_init.o interrupts.o
diff --git a/arch/m68k/cpu/mcf5445x/Makefile b/arch/m68k/cpu/mcf5445x/Makefile
index 047e35d..5b7ddd6 100644
--- a/arch/m68k/cpu/mcf5445x/Makefile
+++ b/arch/m68k/cpu/mcf5445x/Makefile
@@ -25,7 +25,7 @@  include $(TOPDIR)/config.mk

 # CFLAGS += -DET_DEBUG

-LIB	= lib$(CPU).o
+LIB	= $(obj)lib$(CPU).o

 START	= start.o
 COBJS	= cpu.o speed.o cpu_init.o interrupts.o pci.o
diff --git a/arch/m68k/cpu/mcf547x_8x/Makefile b/arch/m68k/cpu/mcf547x_8x/Makefile
index e41ce68..a415aab 100644
--- a/arch/m68k/cpu/mcf547x_8x/Makefile
+++ b/arch/m68k/cpu/mcf547x_8x/Makefile
@@ -25,7 +25,7 @@  include $(TOPDIR)/config.mk

 # CFLAGS += -DET_DEBUG

-LIB	= lib$(CPU).o
+LIB	= $(obj)lib$(CPU).o

 START	=
 COBJS	= cpu.o speed.o cpu_init.o pci.o interrupts.o slicetimer.o