blob: 2b517b6dfb49be6b8c750067bbb537edaee63f97 [file] [log] [blame]
Stefan Roese033848e2012-08-16 17:55:41 +00001#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02002# SPDX-License-Identifier: GPL-2.0+
Stefan Roese033848e2012-08-16 17:55:41 +00003#
4
5include $(TOPDIR)/config.mk
6
7LIB := $(obj)libbootcount.o
8
9COBJS-y += bootcount.o
10COBJS-$(CONFIG_AT91SAM9XE) += bootcount_at91.o
11COBJS-$(CONFIG_BLACKFIN) += bootcount_blackfin.o
12COBJS-$(CONFIG_SOC_DA8XX) += bootcount_davinci.o
13COBJS-$(CONFIG_BOOTCOUNT_RAM) += bootcount_ram.o
14
15COBJS := $(COBJS-y)
16SRCS := $(COBJS:.o=.c)
17OBJS := $(addprefix $(obj),$(COBJS))
18
19$(LIB): $(obj).depend $(OBJS)
20 $(call cmd_link_o_target, $(OBJS))
21
22#########################################################################
23
24# defines $(obj).depend target
25include $(SRCTREE)/rules.mk
26
27sinclude $(obj).depend
28
29########################################################################