include/feeds.mk: rework generation of opkg distfeeds.conf
[openwrt/staging/mkresin.git] / package / kernel / avila-wdt / Makefile
1 #
2 # Copyright (C) 2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=avila-wdt
12 PKG_RELEASE:=1
13
14 include $(INCLUDE_DIR)/package.mk
15
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.ko
21 AUTOLOAD:=$(call AutoLoad,10,avila-wdt)
22 endef
23
24 MAKE_OPTS:= \
25 $(KERNEL_MAKE_FLAGS) \
26 SUBDIRS="$(PKG_BUILD_DIR)"
27
28 define Build/Compile
29 $(MAKE) -C "$(LINUX_DIR)" \
30 $(MAKE_OPTS) \
31 modules
32 endef
33
34 $(eval $(call KernelPackage,avila-wdt))