]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/powerpc/cpu/mpc8xxx/Makefile
Merge 'u-boot-atmel/master' into 'u-boot-arm/master'
[karo-tx-uboot.git] / arch / powerpc / cpu / mpc8xxx / Makefile
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
9 include $(TOPDIR)/config.mk
10
11 LIB     = $(obj)lib8xxx.o
12
13 MINIMAL=
14
15 ifdef CONFIG_SPL_BUILD
16 ifdef CONFIG_SPL_INIT_MINIMAL
17 MINIMAL=y
18 endif
19 endif
20
21 ifdef MINIMAL
22
23 COBJS-$(CONFIG_FSL_LAW) += law.o
24
25 else
26
27 ifneq ($(CPU),mpc83xx)
28 COBJS-y += cpu.o
29 endif
30
31 COBJS-$(CONFIG_OF_LIBFDT) += fdt.o
32 COBJS-$(CONFIG_FSL_IFC) += fsl_ifc.o
33 COBJS-$(CONFIG_FSL_LBC) += fsl_lbc.o
34 COBJS-$(CONFIG_SYS_SRIO) += srio.o
35 COBJS-$(CONFIG_FSL_LAW) += law.o
36
37 endif
38
39 SRCS    := $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
40 OBJS    := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
41
42 all:    $(obj).depend $(LIB)
43
44 $(LIB): $(OBJS)
45         $(call cmd_link_o_target, $(OBJS))
46
47 include $(SRCTREE)/rules.mk
48
49 sinclude $(obj).depend