CFE-ready mtd driver, needs fixing though, update kernel config
[openwrt.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 # build all in-tree kmod-* packages by default
19 KMOD_DEFAULT:=m
20
21 include $(INCLUDE_DIR)/package.mk
22 ifeq ($(DUMP),)
23 -include $(LINUX_DIR)/.config
24 NF_KMOD:=1
25 include $(INCLUDE_DIR)/netfilter.mk
26 endif
27
28 define Build/Prepare
29 mkdir -p $(PKG_BUILD_DIR)
30 endef
31
32 define Build/Configure
33 endef
34
35 define Build/Compile
36 endef
37
38 CONFIG_PACKAGE_kernel=y
39 define Package/kernel
40 SECTION:=sys
41 CATEGORY:=Kernel
42 DEFAULT:=y
43 TITLE:=Virtual kernel package
44 DESCRIPTION:=Virtual kernel package
45 VERSION:=$(LINUX_VERSION)-$(BOARD)-$(LINUX_RELEASE)
46 endef
47
48 define Package/kernel/install
49 # nothing to do
50 endef
51
52 # this is more robust than ifdef around eval/call
53 ifneq ($(DUMP),1)
54 define BuildKernel
55 $(call BuildPackage,kernel)
56 endef
57 endif
58 $(eval $(call BuildKernel))
59
60 include $(TOPDIR)/target/linux/*/modules.mk
61 include ./modules/*.mk
This page took 0.037177 seconds and 5 git commands to generate.