Patchwork [U-Boot,v6,29/31] sparc: Fix out-of-tree building

login
register
mail settings
Submitter Simon Glass
Date March 6, 2013, 12:40 a.m.
Message ID <1362530405-10824-30-git-send-email-sjg@chromium.org>
Download mbox | patch
Permalink /patch/225229/
State Accepted, archived
Delegated to: Tom Rini
Headers show

Comments

Simon Glass - March 6, 2013, 12:40 a.m.
It isn't clear why the sparc cpu Makefile has its own compile line, but
it does not work correctly with an out-of-tree build. Removing it fixes
this problem. Perhaps it does not introduce others.

Signed-off-by: Simon Glass <sjg@chromium.org>
---
Changes in v6:
- Add new patch to fix out-of-tree building on sparc

Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2: None

 arch/sparc/cpu/leon2/Makefile | 7 -------
 arch/sparc/cpu/leon3/Makefile | 7 -------
 2 files changed, 14 deletions(-)

Patch

diff --git a/arch/sparc/cpu/leon2/Makefile b/arch/sparc/cpu/leon2/Makefile
index a9a18eb..d4dc397 100644
--- a/arch/sparc/cpu/leon2/Makefile
+++ b/arch/sparc/cpu/leon2/Makefile
@@ -43,13 +43,6 @@  $(LIB):	$(OBJS)
 # defines $(obj).depend target
 include $(SRCTREE)/rules.mk
 
-$(START): $(START:.o=.S)
-	$(CC) -D__ASSEMBLY__ $(DBGFLAGS) $(OPTFLAGS) -D__KERNEL__ \
-	-DCONFIG_SYS_TEXT_BASE=$(CONFIG_SYS_TEXT_BASE) -I$(TOPDIR)/include \
-	-fno-builtin -ffreestanding -nostdinc -isystem $(gccincdir) -pipe \
-	$(PLATFORM_CPPFLAGS) -Wall -Wstrict-prototypes \
-	-I$(TOPDIR)/board -c -o $(START) $(START:.o=.S)
-
 sinclude $(obj).depend
 
 #########################################################################
diff --git a/arch/sparc/cpu/leon3/Makefile b/arch/sparc/cpu/leon3/Makefile
index 16d3377..1d051e1 100644
--- a/arch/sparc/cpu/leon3/Makefile
+++ b/arch/sparc/cpu/leon3/Makefile
@@ -43,13 +43,6 @@  $(LIB):	$(OBJS)
 # defines $(obj).depend target
 include $(SRCTREE)/rules.mk
 
-$(START): $(START:.o=.S)
-	$(CC) -D__ASSEMBLY__ $(DBGFLAGS) $(OPTFLAGS) -D__KERNEL__ \
-	-DCONFIG_SYS_TEXT_BASE=$(CONFIG_SYS_TEXT_BASE) -I$(TOPDIR)/include \
-	-fno-builtin -ffreestanding -nostdinc -isystem $(gccincdir) -pipe \
-	$(PLATFORM_CPPFLAGS) -Wall -Wstrict-prototypes \
-	-I$(TOPDIR)/board -c -o $(START) $(START:.o=.S)
-
 sinclude $(obj).depend
 
 #########################################################################