mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-19 05:31:32 +00:00
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>
This commit is contained in:
parent
c722c708ef
commit
7e4c3a41ce
2 changed files with 7 additions and 18 deletions
|
@ -27,12 +27,9 @@
|
||||||
|
|
||||||
include $(TOPDIR)/config.mk
|
include $(TOPDIR)/config.mk
|
||||||
ifneq ($(OBJTREE),$(SRCTREE))
|
ifneq ($(OBJTREE),$(SRCTREE))
|
||||||
|
$(shell mkdir -p $(obj)../../xilinx/ppc405-generic)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
INCS :=
|
|
||||||
CFLAGS += $(INCS)
|
|
||||||
HOSTCFLAGS += $(INCS)
|
|
||||||
|
|
||||||
LIB = $(obj)lib$(BOARD).o
|
LIB = $(obj)lib$(BOARD).o
|
||||||
|
|
||||||
COBJS += ../../xilinx/ppc405-generic/xilinx_ppc405_generic.o
|
COBJS += ../../xilinx/ppc405-generic/xilinx_ppc405_generic.o
|
||||||
|
@ -41,10 +38,8 @@ SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
|
||||||
OBJS := $(addprefix $(obj),$(COBJS))
|
OBJS := $(addprefix $(obj),$(COBJS))
|
||||||
SOBJS := $(addprefix $(obj),$(SOBJS))
|
SOBJS := $(addprefix $(obj),$(SOBJS))
|
||||||
|
|
||||||
all: $(LIB) $(SOBJS)
|
$(LIB): $(obj).depend $(OBJS) $(SOBJS)
|
||||||
|
$(call cmd_link_o_target, $(OBJS))
|
||||||
$(LIB): $(OBJS)
|
|
||||||
$(call cmd_link_o_target, $^)
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(SOBJS) $(OBJS)
|
rm -f $(SOBJS) $(OBJS)
|
||||||
|
|
|
@ -27,26 +27,20 @@
|
||||||
|
|
||||||
include $(TOPDIR)/config.mk
|
include $(TOPDIR)/config.mk
|
||||||
ifneq ($(OBJTREE),$(SRCTREE))
|
ifneq ($(OBJTREE),$(SRCTREE))
|
||||||
|
$(shell mkdir -p $(obj)../../xilinx/ppc440-generic)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
INCS :=
|
|
||||||
CFLAGS += $(INCS)
|
|
||||||
HOSTCFLAGS += $(INCS)
|
|
||||||
|
|
||||||
LIB = $(obj)lib$(BOARD).o
|
LIB = $(obj)lib$(BOARD).o
|
||||||
|
|
||||||
COBJS += ../../xilinx/ppc440-generic/xilinx_ppc440_generic.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)
|
SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
|
||||||
OBJS := $(addprefix $(obj),$(COBJS))
|
OBJS := $(addprefix $(obj),$(COBJS))
|
||||||
SOBJS := $(addprefix $(obj),$(SOBJS))
|
SOBJS := $(addprefix $(obj),$(SOBJS))
|
||||||
|
|
||||||
all: $(LIB) $(SOBJS)
|
$(LIB): $(obj).depend $(OBJS) $(SOBJS)
|
||||||
|
$(call cmd_link_o_target, $(OBJS))
|
||||||
$(LIB): $(OBJS)
|
|
||||||
$(call cmd_link_o_target, $^)
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(SOBJS) $(OBJS)
|
rm -f $(SOBJS) $(OBJS)
|
||||||
|
|
Loading…
Add table
Reference in a new issue