]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
sparc: Fix out-of-tree building
authorSimon Glass <sjg@chromium.org>
Tue, 5 Mar 2013 14:40:03 +0000 (14:40 +0000)
committerTom Rini <trini@ti.com>
Fri, 15 Mar 2013 20:14:01 +0000 (16:14 -0400)
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>
arch/sparc/cpu/leon2/Makefile
arch/sparc/cpu/leon3/Makefile

index a9a18eb1ff2d0cb6a3437f88de886f97dbff0c72..d4dc397034cb13887ac8a3b434e2d05583890344 100644 (file)
@@ -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
 
 #########################################################################
index 16d3377c7304e0119b78547c9a4463ccf8d402f8..1d051e17a3aa67b70b9b4fd370e5c1e1ebe55c54 100644 (file)
@@ -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
 
 #########################################################################