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