2 # (C) Copyright 2007-2009 DENX Software Engineering
4 # SPDX-License-Identifier: GPL-2.0+
7 include $(TOPDIR)/config.mk
9 $(shell mkdir -p $(OBJTREE)/board/freescale/common)
11 LIB = $(obj)lib$(CPU).o
17 COBJS-y += fixed_sdram.o
19 COBJS-y += interrupts.o
23 COBJS-$(CONFIG_FSL_DIU_FB) += diu.o
24 COBJS-$(CONFIG_CMD_IDE) += ide.o
25 COBJS-$(CONFIG_PCI) += pci.o
27 # Stub implementations of cache management functions for USB
28 COBJS-$(CONFIG_USB_EHCI) += cache.o
31 SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
32 OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
33 START := $(addprefix $(obj),$(START))
35 all: $(obj).depend $(START) $(LIB)
38 $(call cmd_link_o_target, $(OBJS))
40 #########################################################################
42 # defines $(obj).depend target
43 include $(SRCTREE)/rules.mk
45 sinclude $(obj).depend
47 #########################################################################