blob: ff35a5a4020b7dadf088c9470d44df4b4605e0b7 [file] [log] [blame]
Stefan Roese9182d2f2009-01-21 17:24:39 +01001#
2# (C) Copyright 2008 Stefan Roese <sr@denx.de>, DENX Software Engineering
3#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02004# SPDX-License-Identifier: GPL-2.0+
Stefan Roese9182d2f2009-01-21 17:24:39 +01005#
6
7include $(TOPDIR)/config.mk
8
Sebastien Carliera8d426f2010-11-05 15:48:07 +01009LIB = $(obj)lib$(BOARD).o
Stefan Roese9182d2f2009-01-21 17:24:39 +010010
11COBJS-y := $(BOARD).o
12COBJS-y += ebi.o
13COBJS-$(CONFIG_VCT_NOR) += ebi_nor_flash.o
14COBJS-$(CONFIG_VCT_ONENAND) += ebi_onenand.o
15COBJS-$(CONFIG_DRIVER_SMC911X) += ebi_smc911x.o smc_eeprom.o
16COBJS-y += gpio.o
17COBJS-y += top.o
18COBJS-$(CONFIG_USB_EHCI_VCT) += dcgu.o ehci.o scc.o
19
20COBJS := $(sort $(COBJS-y))
21SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
22OBJS := $(addprefix $(obj),$(COBJS))
23SOBJS := $(addprefix $(obj),$(SOBJS))
24
25$(LIB): $(OBJS) $(SOBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010026 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
Stefan Roese9182d2f2009-01-21 17:24:39 +010027
Stefan Roese9182d2f2009-01-21 17:24:39 +010028#########################################################################
29
30# defines $(obj).depend target
31include $(SRCTREE)/rules.mk
32
33sinclude $(obj).depend
34
35#########################################################################