blob: 3ade624702e9820f74f6e34cde4e34d31a6cb5a8 [file] [log] [blame]
Jean-Christophe PLAGNIOL-VILLARD843a2652009-03-27 23:26:42 +01001#
2# (C) Copyright 2008
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Jean-Christophe PLAGNIOL-VILLARD843a2652009-03-27 23:26:42 +01006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010010LIB := $(obj)libwatchdog.o
Jean-Christophe PLAGNIOL-VILLARD843a2652009-03-27 23:26:42 +010011
12COBJS-$(CONFIG_AT91SAM9_WATCHDOG) += at91sam9_wdt.o
Macpaul Lin90969632011-01-26 18:46:28 +080013COBJS-$(CONFIG_FTWDT010_WATCHDOG) += ftwdt010_wdt.o
Alison Wang3a36c6b2013-05-27 22:55:44 +000014ifneq (,$(filter $(SOC), mx31 mx35 mx5 mx6 vf610))
Troy Kiskyabbab702012-10-22 15:19:01 +000015COBJS-y += imx_watchdog.o
16endif
Marek Vasutd7312822012-07-21 05:02:21 +000017COBJS-$(CONFIG_TNETV107X_WATCHDOG) += tnetv107x_wdt.o
Marek Vasut2b5fdd02012-07-21 05:02:24 +000018COBJS-$(CONFIG_S5P) += s5p_wdt.o
Michal Simek0f21f982013-04-22 11:23:16 +020019COBJS-$(CONFIG_XILINX_TB_WATCHDOG) += xilinx_tb_wdt.o
Sonic Zhange9a389a2013-04-07 18:02:37 +080020COBJS-$(CONFIG_BFIN_WATCHDOG) += bfin_wdt.o
Heiko Schocher988ea352013-08-19 16:38:59 +020021COBJS-$(CONFIG_OMAP_WATCHDOG) += omap_wdt.o
Jean-Christophe PLAGNIOL-VILLARD843a2652009-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 Carlier6d8962e2010-11-05 15:48:07 +010030 $(call cmd_link_o_target, $(OBJS))
Jean-Christophe PLAGNIOL-VILLARD843a2652009-03-27 23:26:42 +010031
32#########################################################################
33
34# defines $(obj).depend target
35include $(SRCTREE)/rules.mk
36
37sinclude $(obj).depend
38
39#########################################################################