blob: 2e5f1c522f95a7295b41577d0bfb31c38a192b56 [file] [log] [blame]
Peter Tyser1c2b3292008-12-17 16:36:23 -06001#
2# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Peter Tyser1c2b3292008-12-17 16:36:23 -06006#
7
8include $(TOPDIR)/config.mk
9
10ifneq ($(OBJTREE),$(SRCTREE))
11$(shell mkdir -p $(obj)board/$(VENDOR)/common)
12endif
13
Sebastien Carliera8d426f2010-11-05 15:48:07 +010014LIB = $(obj)lib$(VENDOR).o
Peter Tyser1c2b3292008-12-17 16:36:23 -060015
Peter Tyser75379822009-05-22 10:26:35 -050016COBJS-$(CONFIG_FSL_PCI_INIT) += fsl_8xxx_pci.o
Peter Tyser281e41d2009-05-22 10:26:37 -050017COBJS-$(CONFIG_MPC8572) += fsl_8xxx_clk.o
18COBJS-$(CONFIG_MPC86xx) += fsl_8xxx_clk.o
John Schmoller9a0709d2010-10-22 00:20:34 -050019COBJS-$(CONFIG_P2020) += fsl_8xxx_clk.o
John Schmollerd9c2dd52010-10-22 00:20:24 -050020COBJS-$(CONFIG_MPC85xx) += fsl_8xxx_misc.o board.o
21COBJS-$(CONFIG_MPC86xx) += fsl_8xxx_misc.o board.o
Peter Tyser59b5fdf2008-12-01 13:47:13 -060022COBJS-$(CONFIG_NAND_ACTL) += actl_nand.o
Peter Tyser1c2b3292008-12-17 16:36:23 -060023
24SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
25OBJS := $(addprefix $(obj),$(COBJS-y))
26SOBJS := $(addprefix $(obj),$(SOBJS))
27
28$(LIB): $(obj).depend $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010029 $(call cmd_link_o_target, $(OBJS))
Peter Tyser1c2b3292008-12-17 16:36:23 -060030
Peter Tyser1c2b3292008-12-17 16:36:23 -060031#########################################################################
32
33# defines $(obj).depend target
34include $(SRCTREE)/rules.mk
35
36sinclude $(obj).depend
37
38#########################################################################