2 # Copyright 2007 Freescale Semiconductor, Inc.
3 # (C) Copyright 2002,2003 Motorola Inc.
4 # Xianghua Xiao,X.Xiao@motorola.com
6 # (C) Copyright 2004 Freescale Semiconductor. (MC86xx Port)
8 # SPDX-License-Identifier: GPL-2.0+
11 include $(TOPDIR)/config.mk
13 LIB = $(obj)lib$(CPU).o
19 SOBJS-$(CONFIG_MP) += release.o
23 # 8610 & 8641 are identical w/regards to DDR
24 COBJS-$(CONFIG_MPC8610) += ddr-8641.o
25 COBJS-$(CONFIG_MPC8641) += ddr-8641.o
26 COBJS-$(CONFIG_OF_LIBFDT) += fdt.o
27 COBJS-y += interrupts.o
28 COBJS-$(CONFIG_MP) += mp.o
29 COBJS-$(CONFIG_MPC8610) += mpc8610_serdes.o
30 COBJS-$(CONFIG_MPC8641) += mpc8641_serdes.o
33 SRCS := $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
34 OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
35 START := $(addprefix $(obj),$(SSTART) $(CSTART))
37 all: $(obj).depend $(START) $(LIB)
40 $(call cmd_link_o_target, $(OBJS))
42 #########################################################################
44 # defines $(obj).depend target
45 include $(SRCTREE)/rules.mk
47 sinclude $(obj).depend
49 #########################################################################