b805c6e19d73d8d9cbd9b09ed6f591a54ac1ed67
[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 SCAN_DEPS=modules/*.mk
18
19 include $(INCLUDE_DIR)/package.mk
20 ifeq ($(DUMP),)
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 CONFIG_PACKAGE_kernel=y
36 define Package/kernel
37 SECTION:=sys
38 CATEGORY:=Kernel
39 DEFAULT:=y
40 TITLE:=Virtual kernel package
41 DESCRIPTION:=Virtual kernel package
42 VERSION:=$(LINUX_VERSION)-$(BOARD)-$(LINUX_RELEASE)
43 endef
44
45 define Package/kernel/install
46 # nothing to do
47 endef
48
49 $(eval $(if $(DUMP),,$(call BuildPackage,kernel)))
50
51 include $(TOPDIR)/target/linux/*/modules.mk
52 include ./modules/*.mk