blob: 5806f0e3998dce67ddc224133d0e5e516d0d6feb [file] [log] [blame]
Chander Kashyapbfef54d2011-05-24 20:02:56 +00001#
2# Copyright (C) 2011 Samsung Electronics
3#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02004# SPDX-License-Identifier: GPL-2.0+
Chander Kashyapbfef54d2011-05-24 20:02:56 +00005#
6
7include $(TOPDIR)/config.mk
8
9LIB = $(obj)lib$(BOARD).o
10
Chander Kashyap0cd984c2011-09-20 21:25:03 +000011ifndef CONFIG_SPL_BUILD
Chander Kashyapbfef54d2011-05-24 20:02:56 +000012COBJS += smdkv310.o
Chander Kashyap0cd984c2011-09-20 21:25:03 +000013endif
14
Rajeshwari Shindebed24422013-07-04 12:29:17 +053015SRCS := $(COBJS:.o=.c)
16OBJS := $(addprefix $(obj),$(COBJS))
Chander Kashyapbfef54d2011-05-24 20:02:56 +000017
Chander Kashyap0cd984c2011-09-20 21:25:03 +000018ALL := $(obj).depend $(LIB)
19
20ifdef CONFIG_SPL_BUILD
21ALL += $(OBJTREE)/tools/mk$(BOARD)spl
22endif
23
24all: $(ALL)
Chander Kashyapbfef54d2011-05-24 20:02:56 +000025
26$(LIB): $(OBJS)
Mike Frysinger57e0deb2011-10-18 05:30:17 +000027 $(call cmd_link_o_target, $(OBJS))
Chander Kashyapbfef54d2011-05-24 20:02:56 +000028
Chander Kashyap0cd984c2011-09-20 21:25:03 +000029ifdef CONFIG_SPL_BUILD
30$(OBJTREE)/tools/mk$(BOARD)spl: tools/mkv310_image.c
31 $(HOSTCC) tools/mkv310_image.c -o $(OBJTREE)/tools/mk$(BOARD)spl
32endif
33
Chander Kashyapbfef54d2011-05-24 20:02:56 +000034#########################################################################
35
36# defines $(obj).depend target
37include $(SRCTREE)/rules.mk
38
39sinclude $(obj).depend
40
41#########################################################################