blob: 3ade624702e9820f74f6e34cde4e34d31a6cb5a8 [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
Heiko Schocher910a7222013-08-19 16:38:59 +020021COBJS-$(CONFIG_OMAP_WATCHDOG) += omap_wdt.o
Jean-Christophe PLAGNIOL-VILLARDd5ee38e2009-03-27 23:26:42 +010022
23COBJS := $(COBJS-y)
24SRCS := $(COBJS:.o=.c)
25OBJS := $(addprefix $(obj),$(COBJS))
26
27all: $(LIB)
28
29$(LIB): $(obj).depend $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010030 $(call cmd_link_o_target, $(OBJS))
Jean-Christophe PLAGNIOL-VILLARDd5ee38e2009-03-27 23:26:42 +010031
32#########################################################################
33
34# defines $(obj).depend target
35include $(SRCTREE)/rules.mk
36
37sinclude $(obj).depend
38
39#########################################################################