2011-05-24 20:02:56 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2011 Samsung Electronics
|
|
|
|
#
|
2013-07-08 07:37:19 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2011-05-24 20:02:56 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
|
|
|
|
LIB = $(obj)lib$(BOARD).o
|
|
|
|
|
2011-09-20 21:25:03 +00:00
|
|
|
ifndef CONFIG_SPL_BUILD
|
2011-05-24 20:02:56 +00:00
|
|
|
COBJS += smdkv310.o
|
2011-09-20 21:25:03 +00:00
|
|
|
endif
|
|
|
|
|
2013-07-04 06:59:17 +00:00
|
|
|
SRCS := $(COBJS:.o=.c)
|
|
|
|
OBJS := $(addprefix $(obj),$(COBJS))
|
2011-05-24 20:02:56 +00:00
|
|
|
|
2011-09-20 21:25:03 +00:00
|
|
|
ALL := $(obj).depend $(LIB)
|
|
|
|
|
|
|
|
ifdef CONFIG_SPL_BUILD
|
|
|
|
ALL += $(OBJTREE)/tools/mk$(BOARD)spl
|
|
|
|
endif
|
|
|
|
|
|
|
|
all: $(ALL)
|
2011-05-24 20:02:56 +00:00
|
|
|
|
|
|
|
$(LIB): $(OBJS)
|
2011-10-18 05:30:17 +00:00
|
|
|
$(call cmd_link_o_target, $(OBJS))
|
2011-05-24 20:02:56 +00:00
|
|
|
|
2011-09-20 21:25:03 +00:00
|
|
|
ifdef CONFIG_SPL_BUILD
|
|
|
|
$(OBJTREE)/tools/mk$(BOARD)spl: tools/mkv310_image.c
|
|
|
|
$(HOSTCC) tools/mkv310_image.c -o $(OBJTREE)/tools/mk$(BOARD)spl
|
|
|
|
endif
|
|
|
|
|
2011-05-24 20:02:56 +00:00
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
# defines $(obj).depend target
|
|
|
|
include $(SRCTREE)/rules.mk
|
|
|
|
|
|
|
|
sinclude $(obj).depend
|
|
|
|
|
|
|
|
#########################################################################
|