xref: /openbmc/u-boot/arch/powerpc/cpu/mpc8xxx/Makefile (revision c9aa831e)
1#
2# Copyright 2009-2010 Freescale Semiconductor, Inc.
3#
4# This program is free software; you can redistribute it and/or
5# modify it under the terms of the GNU General Public License
6# Version 2 as published by the Free Software Foundation.
7#
8
9include $(TOPDIR)/config.mk
10
11LIB	= $(obj)lib8xxx.o
12
13MINIMAL=
14
15ifdef CONFIG_SPL_BUILD
16ifdef CONFIG_SPL_INIT_MINIMAL
17MINIMAL=y
18endif
19endif
20
21ifdef MINIMAL
22
23COBJS-$(CONFIG_FSL_LAW) += law.o
24
25else
26
27ifneq ($(CPU),mpc83xx)
28COBJS-y	+= cpu.o
29endif
30
31COBJS-$(CONFIG_OF_LIBFDT) += fdt.o
32COBJS-$(CONFIG_FSL_IFC) += fsl_ifc.o
33COBJS-$(CONFIG_FSL_LBC) += fsl_lbc.o
34COBJS-$(CONFIG_SYS_SRIO) += srio.o
35COBJS-$(CONFIG_FSL_LAW) += law.o
36
37endif
38
39SRCS	:= $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
40OBJS	:= $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
41
42all:	$(obj).depend $(LIB)
43
44$(LIB):	$(OBJS)
45	$(call cmd_link_o_target, $(OBJS))
46
47include $(SRCTREE)/rules.mk
48
49sinclude $(obj).depend
50