2007-08-22 07:00:17 +09:00
|
|
|
#
|
|
|
|
# (C) Copyright 2006
|
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
#
|
2013-07-08 16:37:19 +09:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2007-08-22 07:00:17 +09:00
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
|
|
|
|
ifneq ($(OBJTREE),$(SRCTREE))
|
2010-11-23 07:36:42 +09:00
|
|
|
$(shell mkdir -p $(obj)board/freescale/common)
|
2007-08-22 07:00:17 +09:00
|
|
|
endif
|
|
|
|
|
2010-11-23 07:36:42 +09:00
|
|
|
LIB = $(obj)libfreescale.o
|
2007-08-22 07:00:17 +09:00
|
|
|
|
2013-04-16 16:57:59 +09:00
|
|
|
MINIMAL=
|
|
|
|
|
|
|
|
ifdef CONFIG_SPL_BUILD
|
|
|
|
ifdef CONFIG_SPL_INIT_MINIMAL
|
|
|
|
MINIMAL=y
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifndef MINIMAL
|
2010-05-21 18:17:48 +09:00
|
|
|
COBJS-$(CONFIG_FSL_CADMUS) += cadmus.o
|
|
|
|
COBJS-$(CONFIG_FSL_VIA) += cds_via.o
|
2010-10-21 05:35:16 +09:00
|
|
|
COBJS-$(CONFIG_FMAN_ENET) += fman.o
|
2010-05-21 18:17:48 +09:00
|
|
|
COBJS-$(CONFIG_FSL_PIXIS) += pixis.o
|
2013-02-18 19:02:19 +09:00
|
|
|
ifndef CONFIG_SPL_BUILD
|
2010-05-21 18:17:48 +09:00
|
|
|
COBJS-$(CONFIG_FSL_NGPIXIS) += ngpixis.o
|
2013-02-18 19:02:19 +09:00
|
|
|
endif
|
2011-11-22 17:51:13 +09:00
|
|
|
COBJS-$(CONFIG_FSL_QIXIS) += qixis.o
|
2010-05-21 18:17:48 +09:00
|
|
|
COBJS-$(CONFIG_PQ_MDS_PIB) += pq-mds-pib.o
|
2013-02-18 19:02:19 +09:00
|
|
|
ifndef CONFIG_SPL_BUILD
|
2010-05-21 18:17:48 +09:00
|
|
|
COBJS-$(CONFIG_ID_EEPROM) += sys_eeprom.o
|
2013-02-18 19:02:19 +09:00
|
|
|
endif
|
2010-05-21 18:17:48 +09:00
|
|
|
COBJS-$(CONFIG_FSL_SGMII_RISER) += sgmii_riser.o
|
2011-05-12 19:46:40 +09:00
|
|
|
ifndef CONFIG_RAMBOOT_PBL
|
2012-01-11 18:20:50 +09:00
|
|
|
COBJS-$(CONFIG_FSL_FIXED_MMC_LOCATION) += sdhc_boot.o
|
2011-05-12 19:46:40 +09:00
|
|
|
endif
|
2008-03-20 05:02:07 +09:00
|
|
|
|
2010-05-21 18:17:48 +09:00
|
|
|
COBJS-$(CONFIG_MPC8541CDS) += cds_pci_ft.o
|
|
|
|
COBJS-$(CONFIG_MPC8548CDS) += cds_pci_ft.o
|
|
|
|
COBJS-$(CONFIG_MPC8555CDS) += cds_pci_ft.o
|
2008-03-20 05:02:07 +09:00
|
|
|
|
2010-05-21 18:14:49 +09:00
|
|
|
COBJS-$(CONFIG_MPC8536DS) += ics307_clk.o
|
2010-05-21 18:05:14 +09:00
|
|
|
COBJS-$(CONFIG_MPC8572DS) += ics307_clk.o
|
2013-02-18 19:02:19 +09:00
|
|
|
ifndef CONFIG_SPL_BUILD
|
2010-06-15 05:28:24 +09:00
|
|
|
COBJS-$(CONFIG_P1022DS) += ics307_clk.o
|
2013-02-18 19:02:19 +09:00
|
|
|
endif
|
2010-05-21 17:02:16 +09:00
|
|
|
COBJS-$(CONFIG_P2020DS) += ics307_clk.o
|
2011-02-09 11:00:08 +09:00
|
|
|
COBJS-$(CONFIG_P3041DS) += ics307_clk.o
|
2010-07-16 06:49:03 +09:00
|
|
|
COBJS-$(CONFIG_P4080DS) += ics307_clk.o
|
2011-02-09 11:00:08 +09:00
|
|
|
COBJS-$(CONFIG_P5020DS) += ics307_clk.o
|
2012-10-23 18:40:22 +09:00
|
|
|
COBJS-$(CONFIG_P5040DS) += ics307_clk.o
|
2012-10-08 16:44:17 +09:00
|
|
|
COBJS-$(CONFIG_VSC_CROSSBAR) += vsc3316_3308.o
|
2013-07-02 18:05:47 +09:00
|
|
|
COBJS-$(CONFIG_IDT8T49N222A) += idt8t49n222a_serdes_clk.o
|
2008-01-16 04:42:41 +09:00
|
|
|
|
2011-08-31 07:29:23 +09:00
|
|
|
# deal with common files for P-series corenet based devices
|
2011-08-31 07:40:11 +09:00
|
|
|
SUBLIB-$(CONFIG_P2041RDB) += p_corenet/libp_corenet.o
|
2011-08-31 07:29:23 +09:00
|
|
|
SUBLIB-$(CONFIG_P3041DS) += p_corenet/libp_corenet.o
|
|
|
|
SUBLIB-$(CONFIG_P4080DS) += p_corenet/libp_corenet.o
|
|
|
|
SUBLIB-$(CONFIG_P5020DS) += p_corenet/libp_corenet.o
|
2012-10-23 18:40:22 +09:00
|
|
|
SUBLIB-$(CONFIG_P5040DS) += p_corenet/libp_corenet.o
|
2013-04-16 16:57:59 +09:00
|
|
|
endif
|
2011-08-31 07:29:23 +09:00
|
|
|
|
2008-01-16 04:42:41 +09:00
|
|
|
SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
|
|
|
|
OBJS := $(addprefix $(obj),$(COBJS-y))
|
2007-08-22 07:00:17 +09:00
|
|
|
SOBJS := $(addprefix $(obj),$(SOBJS))
|
2011-08-31 07:29:23 +09:00
|
|
|
SUBLIB := $(addprefix $(obj),$(SUBLIB-y))
|
|
|
|
|
|
|
|
$(LIB): $(obj).depend $(OBJS) $(SUBLIB)
|
|
|
|
$(call cmd_link_o_target, $(OBJS) $(SUBLIB))
|
2007-08-22 07:00:17 +09:00
|
|
|
|
2011-08-31 07:29:23 +09:00
|
|
|
$(SUBLIB): $(obj).depend
|
|
|
|
$(MAKE) -C $(dir $(subst $(obj),,$@))
|
2007-08-22 07:00:17 +09:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
# defines $(obj).depend target
|
|
|
|
include $(SRCTREE)/rules.mk
|
|
|
|
|
|
|
|
sinclude $(obj).depend
|
|
|
|
|
|
|
|
#########################################################################
|