blob: 7e255ce8aef987daf37f52e0f00d41292162946a [file] [log] [blame]
Jean-Christophe PLAGNIOL-VILLARDd5ee38e2009-03-27 23:26:42 +01001#
2# (C) Copyright 2008
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Jean-Christophe PLAGNIOL-VILLARDd5ee38e2009-03-27 23:26:42 +01006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB := $(obj)libwatchdog.o
Jean-Christophe PLAGNIOL-VILLARDd5ee38e2009-03-27 23:26:42 +010011
12COBJS-$(CONFIG_AT91SAM9_WATCHDOG) += at91sam9_wdt.o
Macpaul Lin182d9752011-01-26 18:46:28 +080013COBJS-$(CONFIG_FTWDT010_WATCHDOG) += ftwdt010_wdt.o
Alison Wang9138e002013-05-27 22:55:44 +000014ifneq (,$(filter $(SOC), mx31 mx35 mx5 mx6 vf610))
Troy Kisky4b7c6022012-10-22 15:19:01 +000015COBJS-y += imx_watchdog.o
16endif
Marek Vasut1df69ec2012-07-21 05:02:21 +000017COBJS-$(CONFIG_TNETV107X_WATCHDOG) += tnetv107x_wdt.o
Marek Vasut3d4f16c2012-07-21 05:02:24 +000018COBJS-$(CONFIG_S5P) += s5p_wdt.o
Michal Simek80e045f2013-04-22 11:23:16 +020019COBJS-$(CONFIG_XILINX_TB_WATCHDOG) += xilinx_tb_wdt.o
Sonic Zhangcde8cef2013-04-07 18:02:37 +080020COBJS-$(CONFIG_BFIN_WATCHDOG) += bfin_wdt.o
Jean-Christophe PLAGNIOL-VILLARDd5ee38e2009-03-27 23:26:42 +010021
22COBJS := $(COBJS-y)
23SRCS := $(COBJS:.o=.c)
24OBJS := $(addprefix $(obj),$(COBJS))
25
26all: $(LIB)
27
28$(LIB): $(obj).depend $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010029 $(call cmd_link_o_target, $(OBJS))
Jean-Christophe PLAGNIOL-VILLARDd5ee38e2009-03-27 23:26:42 +010030
31#########################################################################
32
33# defines $(obj).depend target
34include $(SRCTREE)/rules.mk
35
36sinclude $(obj).depend
37
38#########################################################################