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