diff options
author | Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> | 2010-12-24 01:38:10 +0100 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2011-01-11 10:58:55 +0100 |
commit | 7e4c3a41ce2e9ace8bbca125a81f7397ba91e536 (patch) | |
tree | 77969e8e43e0e738eecc50343bf6bd471215cd6c /board/xilinx/ppc440-generic | |
parent | c722c708ef8d51aecf2faf1e05a7f81d2005b3bb (diff) |
xilinx-ppc4xx-generic: Fix Makefile to work with MAKEALL
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>
Diffstat (limited to 'board/xilinx/ppc440-generic')
-rw-r--r-- | board/xilinx/ppc440-generic/Makefile | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/board/xilinx/ppc440-generic/Makefile b/board/xilinx/ppc440-generic/Makefile index 1760e4e3be..ed2cf9f433 100644 --- a/board/xilinx/ppc440-generic/Makefile +++ b/board/xilinx/ppc440-generic/Makefile @@ -27,26 +27,20 @@ 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) |