2010-08-19 04:48:11 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2009 Samsung Electronics
|
|
|
|
# Minkyu Kang <mk7.kang@samsung.com>
|
|
|
|
#
|
2013-07-08 07:37:19 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2010-08-19 04:48:11 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
|
2010-11-05 14:48:07 +00:00
|
|
|
LIB = $(obj)libs5p-common.o
|
2010-08-19 04:48:11 +00:00
|
|
|
|
|
|
|
COBJS-y += cpu_info.o
|
2013-04-04 23:09:20 +00:00
|
|
|
ifndef CONFIG_SPL_BUILD
|
2010-08-19 04:48:11 +00:00
|
|
|
COBJS-y += timer.o
|
2011-04-14 19:05:18 +00:00
|
|
|
COBJS-y += sromc.o
|
|
|
|
COBJS-$(CONFIG_PWM) += pwm.o
|
2013-04-04 23:09:20 +00:00
|
|
|
endif
|
2010-08-19 04:48:11 +00:00
|
|
|
|
|
|
|
SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
|
|
|
|
OBJS := $(addprefix $(obj),$(COBJS-y) $(SOBJS))
|
|
|
|
|
|
|
|
all: $(obj).depend $(LIB)
|
|
|
|
|
|
|
|
$(LIB): $(OBJS)
|
2010-11-05 14:48:07 +00:00
|
|
|
$(call cmd_link_o_target, $(OBJS))
|
2010-08-19 04:48:11 +00:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
# defines $(obj).depend target
|
|
|
|
include $(SRCTREE)/rules.mk
|
|
|
|
|
|
|
|
sinclude $(obj).depend
|
|
|
|
|
|
|
|
#########################################################################
|