make kernel module packaging code reusable and use it in madwifi
[openwrt/svn-archive/archive.git] / package / kernel / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=kernel
13 PKG_VERSION:=$(LINUX_VERSION)-$(BOARD)
14 PKG_RELEASE:=$(LINUX_RELEASE)
15
16 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/packages
17
18 include $(INCLUDE_DIR)/package.mk
19 ifeq ($(DUMP),)
20 -include $(LINUX_DIR)/.config
21 NF_KMOD:=1
22 include $(INCLUDE_DIR)/netfilter.mk
23 endif
24
25 define Build/Prepare
26 mkdir -p $(PKG_BUILD_DIR)
27 endef
28
29 define Build/Configure
30 endef
31
32 define Build/Compile
33 endef
34
35 include $(TOPDIR)/target/linux/*/modules.mk
36 include ./modules/*.mk