2006-07-18 16:17:19 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
|
|
|
|
PKG_NAME:=kernel
|
|
|
|
PKG_VERSION:=$(LINUX_VERSION)-$(BOARD)
|
2006-08-27 13:08:53 +00:00
|
|
|
PKG_RELEASE:=$(LINUX_RELEASE)
|
2006-07-18 16:17:19 +00:00
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/packages
|
2007-03-24 17:05:26 +00:00
|
|
|
PKG_FILE_DEPEND:=$(MODULES_DIR)
|
2006-07-18 16:17:19 +00:00
|
|
|
|
2006-11-18 15:46:09 +00:00
|
|
|
# build all in-tree kmod-* packages by default
|
|
|
|
KMOD_DEFAULT:=m
|
|
|
|
|
2006-07-18 16:17:19 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
ifeq ($(DUMP),)
|
2006-09-24 20:49:31 +00:00
|
|
|
-include $(LINUX_DIR)/.config
|
|
|
|
NF_KMOD:=1
|
|
|
|
include $(INCLUDE_DIR)/netfilter.mk
|
2006-07-18 16:17:19 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
define Build/Prepare
|
|
|
|
mkdir -p $(PKG_BUILD_DIR)
|
|
|
|
endef
|
|
|
|
|
2006-10-17 16:13:10 +00:00
|
|
|
define Build/Configure
|
2006-07-18 16:17:19 +00:00
|
|
|
endef
|
|
|
|
|
2006-10-17 16:13:10 +00:00
|
|
|
define Build/Compile
|
2006-07-18 16:17:19 +00:00
|
|
|
endef
|
|
|
|
|
2006-10-19 04:35:29 +00:00
|
|
|
CONFIG_PACKAGE_kernel=y
|
|
|
|
define Package/kernel
|
|
|
|
SECTION:=sys
|
|
|
|
CATEGORY:=Kernel
|
|
|
|
DEFAULT:=y
|
|
|
|
TITLE:=Virtual kernel package
|
|
|
|
DESCRIPTION:=Virtual kernel package
|
|
|
|
VERSION:=$(LINUX_VERSION)-$(BOARD)-$(LINUX_RELEASE)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/kernel/install
|
|
|
|
# nothing to do
|
|
|
|
endef
|
|
|
|
|
|
|
|
# this is more robust than ifdef around eval/call
|
|
|
|
ifneq ($(DUMP),1)
|
|
|
|
define BuildKernel
|
|
|
|
$(call BuildPackage,kernel)
|
|
|
|
endef
|
|
|
|
endif
|
|
|
|
$(eval $(call BuildKernel))
|
|
|
|
|
2006-10-17 13:28:44 +00:00
|
|
|
include $(TOPDIR)/target/linux/*/modules.mk
|
2006-10-17 13:18:01 +00:00
|
|
|
include ./modules/*.mk
|