blob: fd7290caa389853d96161e865dc02d3ea4f2740b [file] [log] [blame]
Minkyu Kang0a2b6312010-08-19 13:48:11 +09001#
2# Copyright (C) 2009 Samsung Electronics
3# Minkyu Kang <mk7.kang@samsung.com>
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Minkyu Kang0a2b6312010-08-19 13:48:11 +09006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB = $(obj)libs5p-common.o
Minkyu Kang0a2b6312010-08-19 13:48:11 +090011
12COBJS-y += cpu_info.o
Inderpal Singh848048a2013-04-04 23:09:20 +000013ifndef CONFIG_SPL_BUILD
Minkyu Kang0a2b6312010-08-19 13:48:11 +090014COBJS-y += timer.o
Chander Kashyap9c88fb82011-04-14 19:05:18 +000015COBJS-y += sromc.o
16COBJS-$(CONFIG_PWM) += pwm.o
Inderpal Singh848048a2013-04-04 23:09:20 +000017endif
Minkyu Kang0a2b6312010-08-19 13:48:11 +090018
19SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
20OBJS := $(addprefix $(obj),$(COBJS-y) $(SOBJS))
21
22all: $(obj).depend $(LIB)
23
24$(LIB): $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010025 $(call cmd_link_o_target, $(OBJS))
Minkyu Kang0a2b6312010-08-19 13:48:11 +090026
27#########################################################################
28
29# defines $(obj).depend target
30include $(SRCTREE)/rules.mk
31
32sinclude $(obj).depend
33
34#########################################################################