]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/freescale/p1022ds/Makefile
Merge branch 'u-boot-imx/master' into 'u-boot-arm/master'
[karo-tx-uboot.git] / board / freescale / p1022ds / Makefile
1 #
2 # Copyright 2010 Freescale Semiconductor, Inc.
3 #
4 # SPDX-License-Identifier:      GPL-2.0+
5 #
6
7 include $(TOPDIR)/config.mk
8
9 LIB     = $(obj)lib$(BOARD).o
10
11 MINIMAL=
12
13 ifdef CONFIG_SPL_BUILD
14 ifdef CONFIG_SPL_INIT_MINIMAL
15 MINIMAL=y
16 endif
17 endif
18
19 ifdef MINIMAL
20
21 COBJS-y        += spl_minimal.o tlb.o law.o
22
23 else
24 ifdef CONFIG_SPL_BUILD
25 COBJS-y += spl.o
26 endif
27 COBJS-y += $(BOARD).o
28 COBJS-y += ddr.o
29 COBJS-y += law.o
30 COBJS-y += tlb.o
31
32 COBJS-$(CONFIG_FSL_DIU_FB) += diu.o
33 endif
34
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)
40         $(call cmd_link_o_target, $(OBJS))
41
42 #########################################################################
43
44 # defines $(obj).depend target
45 include $(SRCTREE)/rules.mk
46
47 sinclude $(obj).depend
48
49 #########################################################################