blob: 5806f0e3998dce67ddc224133d0e5e516d0d6feb [file] [log] [blame]
Chander Kashyape21185b2011-05-24 20:02:56 +00001#
2# Copyright (C) 2011 Samsung Electronics
3#
Wolfgang Denk1a459662013-07-08 09:37:19 +02004# SPDX-License-Identifier: GPL-2.0+
Chander Kashyape21185b2011-05-24 20:02:56 +00005#
6
7include $(TOPDIR)/config.mk
8
9LIB = $(obj)lib$(BOARD).o
10
Chander Kashyap5187d8d2011-09-20 21:25:03 +000011ifndef CONFIG_SPL_BUILD
Chander Kashyape21185b2011-05-24 20:02:56 +000012COBJS += smdkv310.o
Chander Kashyap5187d8d2011-09-20 21:25:03 +000013endif
14
Rajeshwari Shinde643be9c2013-07-04 12:29:17 +053015SRCS := $(COBJS:.o=.c)
16OBJS := $(addprefix $(obj),$(COBJS))
Chander Kashyape21185b2011-05-24 20:02:56 +000017
Chander Kashyap5187d8d2011-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 Kashyape21185b2011-05-24 20:02:56 +000025
26$(LIB): $(OBJS)
Mike Frysinger26ddff22011-10-18 05:30:17 +000027 $(call cmd_link_o_target, $(OBJS))
Chander Kashyape21185b2011-05-24 20:02:56 +000028
Chander Kashyap5187d8d2011-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 Kashyape21185b2011-05-24 20:02:56 +000034#########################################################################
35
36# defines $(obj).depend target
37include $(SRCTREE)/rules.mk
38
39sinclude $(obj).depend
40
41#########################################################################