2 # (C) Copyright 2012 Lothar Waßmann <LW@KARO-electronics.de>
4 # See file CREDITS for list of people who contributed to this
7 # This program is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU General Public License
9 # version 2 as published by the Free Software Foundation.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
17 include $(TOPDIR)/config.mk
19 ifneq ($(OBJTREE),$(SRCTREE))
20 $(shell mkdir -p $(obj)board/$(VENDOR)/common)
23 LIB = $(obj)lib$(VENDOR).o
25 ifeq ($(CONFIG_SPL_BUILD),)
26 COBJS-$(CONFIG_OF_BOARD_SETUP) += fdt.o
27 COBJS-$(CONFIG_SPLASH_SCREEN) += splashimage.o
33 SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
34 OBJS := $(addprefix $(obj),$(COBJS))
35 SOBJS := $(addprefix $(obj),$(SOBJS))
37 $(LIB): $(obj).depend $(OBJS) $(SOBJS)
38 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
42 #########################################################################
44 include $(SRCTREE)/rules.mk
46 sinclude $(obj).depend
48 #########################################################################