2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
13 PKG_VERSION:=$(LINUX_VERSION)-$(BOARD)
14 PKG_RELEASE:=$(LINUX_RELEASE)
16 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/packages
18 include $(INCLUDE_DIR)/package.mk
20 -include $(LINUX_DIR)/.config
22 include $(INCLUDE_DIR)/netfilter.mk
26 mkdir -p $(PKG_BUILD_DIR)
29 define Build/Configure
35 CONFIG_PACKAGE_kernel=y
40 TITLE:=Virtual kernel package
41 DESCRIPTION:=Virtual kernel package
42 VERSION:=$(LINUX_VERSION)-$(BOARD)-$(LINUX_RELEASE)
45 define Package/kernel/install
49 # this is more robust than ifdef around eval/call
52 $(call BuildPackage,kernel)
55 $(eval $(call BuildKernel))
57 include $(TOPDIR)/target/linux/*/modules.mk
58 include ./modules/*.mk