2012-02-05 23:01:47 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2012 Samsung Electronics
|
|
|
|
#
|
2013-07-08 07:37:19 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2012-02-05 23:01:47 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
|
|
|
|
LIB = $(obj)lib$(BOARD).o
|
|
|
|
|
2012-07-03 20:02:52 +00:00
|
|
|
COBJS += smdk5250_spl.o
|
2012-02-05 23:01:48 +00:00
|
|
|
|
|
|
|
ifndef CONFIG_SPL_BUILD
|
2013-04-27 06:12:57 +00:00
|
|
|
ifdef CONFIG_OF_CONTROL
|
|
|
|
COBJS += exynos5-dt.o
|
|
|
|
else
|
2012-02-05 23:01:47 +00:00
|
|
|
COBJS += smdk5250.o
|
2012-02-05 23:01:48 +00:00
|
|
|
endif
|
2013-04-27 06:12:57 +00:00
|
|
|
endif
|
2012-02-05 23:01:48 +00:00
|
|
|
|
2013-07-04 06:59:17 +00:00
|
|
|
SRCS := $(COBJS:.o=.c)
|
|
|
|
OBJS := $(addprefix $(obj),$(COBJS))
|
2012-02-05 23:01:47 +00:00
|
|
|
|
2013-07-04 06:59:17 +00:00
|
|
|
ALL := $(obj).depend $(LIB)
|
2012-02-05 23:01:47 +00:00
|
|
|
|
|
|
|
all: $(ALL)
|
|
|
|
|
|
|
|
$(LIB): $(OBJS)
|
|
|
|
$(call cmd_link_o_target, $(OBJS))
|
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
# defines $(obj).depend target
|
|
|
|
include $(SRCTREE)/rules.mk
|
|
|
|
|
|
|
|
sinclude $(obj).depend
|
|
|
|
|
|
|
|
#########################################################################
|