2 # Copyright (C) 2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
9 include $(INCLUDE_DIR
)/kernel.mk
14 include $(INCLUDE_DIR
)/package.mk
16 define KernelPackage
/avila-wdt
17 SUBMENU
:=Other modules
18 TITLE
:=GPIO hardware watchdog driver for modified Avila boards
19 DEPENDS
:=@GPIO_SUPPORT @TARGET_ixp4xx
20 FILES
:=$(PKG_BUILD_DIR
)/avila-wdt.
$(LINUX_KMOD_SUFFIX
)
21 AUTOLOAD
:=$(call AutoLoad
,10,avila-wdt
)
25 ARCH
="$(LINUX_KARCH)" \
26 CROSS_COMPILE
="$(TARGET_CROSS)" \
27 SUBDIRS
="$(PKG_BUILD_DIR)"
30 mkdir
-p
$(PKG_BUILD_DIR
)
31 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
35 $(MAKE
) -C
"$(LINUX_DIR)" \
40 $(eval
$(call KernelPackage
,avila-wdt
))