]>
Commit | Line | Data |
---|---|---|
c59e1b4d TT |
1 | # |
2 | # Copyright 2010 Freescale Semiconductor, Inc. | |
3 | # | |
4 | # This program is free software; you can redistribute it and/or modify it | |
5 | # under the terms of the GNU General Public License as published by the Free | |
6 | # Software Foundation; either version 2 of the License, or (at your option) | |
7 | # any later version. | |
8 | # | |
9 | ||
10 | include $(TOPDIR)/config.mk | |
11 | ||
6d8962e8 | 12 | LIB = $(obj)lib$(BOARD).o |
c59e1b4d | 13 | |
f45210d6 MM |
14 | MINIMAL= |
15 | ||
16 | ifdef CONFIG_SPL_BUILD | |
17 | ifdef CONFIG_SPL_INIT_MINIMAL | |
18 | MINIMAL=y | |
19 | endif | |
20 | endif | |
21 | ||
22 | ifdef MINIMAL | |
23 | ||
24 | COBJS-y += spl_minimal.o tlb.o law.o | |
25 | ||
26 | else | |
c59e1b4d TT |
27 | COBJS-y += $(BOARD).o |
28 | COBJS-y += ddr.o | |
29 | COBJS-y += law.o | |
30 | COBJS-y += tlb.o | |
31 | ||
d5e01e49 | 32 | COBJS-$(CONFIG_FSL_DIU_FB) += diu.o |
f45210d6 | 33 | endif |
d5e01e49 | 34 | |
c59e1b4d TT |
35 | SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) |
36 | OBJS := $(addprefix $(obj),$(COBJS-y)) | |
37 | SOBJS := $(addprefix $(obj),$(SOBJS)) | |
38 | ||
39 | $(LIB): $(obj).depend $(OBJS) $(SOBJS) | |
6d8962e8 | 40 | $(call cmd_link_o_target, $(OBJS)) |
c59e1b4d | 41 | |
c59e1b4d TT |
42 | ######################################################################### |
43 | ||
44 | # defines $(obj).depend target | |
45 | include $(SRCTREE)/rules.mk | |
46 | ||
47 | sinclude $(obj).depend | |
48 | ||
49 | ######################################################################### |