fix jffs2root compile
[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 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 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 # this is more robust than ifdef around eval/call
50 ifneq ($(DUMP),1)
51 define BuildKernel
52 $(call BuildPackage,kernel)
53 endef
54 endif
55 $(eval $(call BuildKernel))
56
57 include $(TOPDIR)/target/linux/*/modules.mk
58 include ./modules/*.mk
This page took 0.037488 seconds and 5 git commands to generate.