blob: 04630799356bd6690d2234df8fae3a64d40e8063 [file] [log] [blame]
Chander Kashyaped2e25a2012-02-05 23:01:47 +00001#
2# Copyright (C) 2012 Samsung Electronics
3#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02004# SPDX-License-Identifier: GPL-2.0+
Chander Kashyaped2e25a2012-02-05 23:01:47 +00005#
6
7include $(TOPDIR)/config.mk
8
9LIB = $(obj)lib$(BOARD).o
10
Rajeshwari Shinde14633d12012-07-03 20:02:52 +000011COBJS += smdk5250_spl.o
Chander Kashyap1633dd12012-02-05 23:01:48 +000012
13ifndef CONFIG_SPL_BUILD
Amarbb54b752013-04-27 11:42:57 +053014ifdef CONFIG_OF_CONTROL
15COBJS += exynos5-dt.o
16else
Chander Kashyaped2e25a2012-02-05 23:01:47 +000017COBJS += smdk5250.o
Chander Kashyap1633dd12012-02-05 23:01:48 +000018endif
Amarbb54b752013-04-27 11:42:57 +053019endif
Chander Kashyap1633dd12012-02-05 23:01:48 +000020
Rajeshwari Shindebed24422013-07-04 12:29:17 +053021SRCS := $(COBJS:.o=.c)
22OBJS := $(addprefix $(obj),$(COBJS))
Chander Kashyaped2e25a2012-02-05 23:01:47 +000023
Rajeshwari Shindebed24422013-07-04 12:29:17 +053024ALL := $(obj).depend $(LIB)
Chander Kashyaped2e25a2012-02-05 23:01:47 +000025
26all: $(ALL)
27
28$(LIB): $(OBJS)
29 $(call cmd_link_o_target, $(OBJS))
30
31#########################################################################
32
33# defines $(obj).depend target
34include $(SRCTREE)/rules.mk
35
36sinclude $(obj).depend
37
38#########################################################################