]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
xilinx-ppc4xx-generic: Fix Makefile to work with MAKEALL
authorRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Fri, 24 Dec 2010 00:38:10 +0000 (01:38 +0100)
committerStefan Roese <sr@denx.de>
Tue, 11 Jan 2011 09:58:55 +0000 (10:58 +0100)
config.mk only mkdirs $(obj), but we have objects shared with other
boards located on other dirs.

This patch mkdirs the needed dirs for the xlnx-generic boards.

Signed-off-by: Stefan Roese <sr@denx.de>
board/xilinx/ppc405-generic/Makefile
board/xilinx/ppc440-generic/Makefile

index 717ffc9c9f1a5158ce5131e268253324cd6f0c59..501fd467e1d15954e7a174a0fea0c32318dab1aa 100644 (file)
 
 include $(TOPDIR)/config.mk
 ifneq ($(OBJTREE),$(SRCTREE))
+$(shell mkdir -p $(obj)../../xilinx/ppc405-generic)
 endif
 
-INCS           :=
-CFLAGS         += $(INCS)
-HOSTCFLAGS     += $(INCS)
-
 LIB    = $(obj)lib$(BOARD).o
 
 COBJS  += ../../xilinx/ppc405-generic/xilinx_ppc405_generic.o
@@ -41,10 +38,8 @@ SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(COBJS))
 SOBJS  := $(addprefix $(obj),$(SOBJS))
 
-all: $(LIB) $(SOBJS)
-
-$(LIB):        $(OBJS)
-       $(call cmd_link_o_target, $^)
+$(LIB):        $(obj).depend $(OBJS) $(SOBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 clean:
        rm -f $(SOBJS) $(OBJS)
index 1760e4e3bed5f0192659fe6c33b9233dde70b093..ed2cf9f4330da10f4a56feffe01ec9072f7be185 100644 (file)
 
 include $(TOPDIR)/config.mk
 ifneq ($(OBJTREE),$(SRCTREE))
+$(shell mkdir -p $(obj)../../xilinx/ppc440-generic)
 endif
 
-INCS           :=
-CFLAGS         += $(INCS)
-HOSTCFLAGS     += $(INCS)
-
 LIB    = $(obj)lib$(BOARD).o
 
 COBJS  += ../../xilinx/ppc440-generic/xilinx_ppc440_generic.o
-
-SOBJS  += ../../xilinx/ppc440-generic/init.o
+SOBJS  += ../../xilinx/ppc440-generic/init.o
 
 SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(COBJS))
 SOBJS  := $(addprefix $(obj),$(SOBJS))
 
-all: $(LIB) $(SOBJS)
-
-$(LIB):        $(OBJS)
-       $(call cmd_link_o_target, $^)
+$(LIB):        $(obj).depend $(OBJS) $(SOBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 clean:
        rm -f $(SOBJS) $(OBJS)