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
17 PKG_FILE_DEPEND:=$(MODULES_DIR)
19 # build all in-tree kmod-* packages by default
22 include $(INCLUDE_DIR)/package.mk
24 -include $(LINUX_DIR)/.config
26 include $(INCLUDE_DIR)/netfilter.mk
30 mkdir -p $(PKG_BUILD_DIR)
33 define Build/Configure
39 CONFIG_PACKAGE_kernel=y
44 TITLE:=Virtual kernel package
45 DESCRIPTION:=Virtual kernel package
46 VERSION:=$(LINUX_VERSION)-$(BOARD)-$(LINUX_RELEASE)
49 define Package/kernel/install
53 # this is more robust than ifdef around eval/call
56 $(call BuildPackage,kernel)
59 $(eval $(call BuildKernel))
61 include $(TOPDIR)/target/linux/*/modules.mk
62 include ./modules/*.mk