blob: 04630799356bd6690d2234df8fae3a64d40e8063 [file] [log] [blame]
Chander Kashyap0aee53b2012-02-05 23:01:47 +00001#
2# Copyright (C) 2012 Samsung Electronics
3#
Wolfgang Denk1a459662013-07-08 09:37:19 +02004# SPDX-License-Identifier: GPL-2.0+
Chander Kashyap0aee53b2012-02-05 23:01:47 +00005#
6
7include $(TOPDIR)/config.mk
8
9LIB = $(obj)lib$(BOARD).o
10
Rajeshwari Shinde9c46f032012-07-03 20:02:52 +000011COBJS += smdk5250_spl.o
Chander Kashyap81e35202012-02-05 23:01:48 +000012
13ifndef CONFIG_SPL_BUILD
Amar752f4c42013-04-27 11:42:57 +053014ifdef CONFIG_OF_CONTROL
15COBJS += exynos5-dt.o
16else
Chander Kashyap0aee53b2012-02-05 23:01:47 +000017COBJS += smdk5250.o
Chander Kashyap81e35202012-02-05 23:01:48 +000018endif
Amar752f4c42013-04-27 11:42:57 +053019endif
Chander Kashyap81e35202012-02-05 23:01:48 +000020
Rajeshwari Shinde643be9c2013-07-04 12:29:17 +053021SRCS := $(COBJS:.o=.c)
22OBJS := $(addprefix $(obj),$(COBJS))
Chander Kashyap0aee53b2012-02-05 23:01:47 +000023
Rajeshwari Shinde643be9c2013-07-04 12:29:17 +053024ALL := $(obj).depend $(LIB)
Chander Kashyap0aee53b2012-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#########################################################################