revert [8415], seems to be causing problems for the kernel build
[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 -include $(LINUX_DIR)/.config
22 NF_KMOD:=1
23 include $(INCLUDE_DIR)/netfilter.mk
24 endif
25
26 define Build/Prepare
27 mkdir -p $(PKG_BUILD_DIR)
28 endef
29
30 define Build/Configure
31 endef
32
33 define Build/Compile
34 endef
35
36 CONFIG_PACKAGE_kernel=y
37 define Package/kernel
38 SECTION:=sys
39 CATEGORY:=Kernel
40 DEFAULT:=y
41 TITLE:=Virtual kernel package
42 DESCRIPTION:=Virtual kernel package
43 VERSION:=$(LINUX_VERSION)-$(BOARD)-$(LINUX_RELEASE)
44 endef
45
46 define Package/kernel/install
47 # nothing to do
48 endef
49
50 $(eval $(if $(DUMP),,$(call BuildPackage,kernel)))
51
52 include $(TOPDIR)/target/linux/*/modules.mk
53 include ./modules/*.mk