2006-07-19 00:17:19 +08:00
|
|
|
#
|
2010-04-23 19:27:29 +08:00
|
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
2006-07-19 00:17:19 +08:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
|
|
|
|
PKG_NAME:=kernel
|
2010-10-02 11:22:56 +08:00
|
|
|
PKG_FLAGS:=hold
|
2006-07-19 00:17:19 +08:00
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/packages
|
2012-04-23 17:37:50 +08:00
|
|
|
SCAN_DEPS=modules/*.mk $(TOPDIR)/target/linux/*/modules.mk
|
2006-11-18 23:46:09 +08:00
|
|
|
|
2012-10-19 23:34:28 +08:00
|
|
|
PKG_LICENSE:=GPLv2
|
|
|
|
PKG_LICENSE_FILES:=
|
|
|
|
|
2014-10-22 16:57:45 +08:00
|
|
|
export SHELL:=/bin/sh
|
|
|
|
|
2006-07-19 00:17:19 +08:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2013-07-19 00:32:07 +08:00
|
|
|
|
|
|
|
STAMP_BUILT:=$(STAMP_BUILT)_$(firstword $(shell $(SCRIPT_DIR)/kconfig.pl $(LINUX_DIR)/.config | md5sum))
|
|
|
|
|
2006-07-19 00:17:19 +08:00
|
|
|
ifeq ($(DUMP),)
|
2007-08-16 21:44:57 +08:00
|
|
|
-include $(LINUX_DIR)/.config
|
2006-07-19 00:17:19 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
define Build/Prepare
|
|
|
|
mkdir -p $(PKG_BUILD_DIR)
|
|
|
|
endef
|
|
|
|
|
2006-10-18 00:13:10 +08:00
|
|
|
define Build/Configure
|
2006-07-19 00:17:19 +08:00
|
|
|
endef
|
|
|
|
|
2006-10-18 00:13:10 +08:00
|
|
|
define Build/Compile
|
2006-07-19 00:17:19 +08:00
|
|
|
endef
|
|
|
|
|
2013-07-19 00:32:07 +08:00
|
|
|
define KernelPackage/depends
|
|
|
|
endef
|
|
|
|
|
2006-10-19 12:35:29 +08:00
|
|
|
CONFIG_PACKAGE_kernel=y
|
|
|
|
define Package/kernel
|
|
|
|
SECTION:=sys
|
|
|
|
CATEGORY:=Kernel
|
|
|
|
DEFAULT:=y
|
|
|
|
TITLE:=Virtual kernel package
|
2012-01-08 23:23:11 +08:00
|
|
|
VERSION:=$(LINUX_VERSION)-$(LINUX_RELEASE)-$(LINUX_VERMAGIC)
|
2010-04-23 19:27:29 +08:00
|
|
|
URL:=http://www.kernel.org/
|
2006-10-19 12:35:29 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/kernel/install
|
|
|
|
# nothing to do
|
|
|
|
endef
|
|
|
|
|
2013-07-18 18:47:00 +08:00
|
|
|
define Package/kernel/extra_provides
|
|
|
|
sed -e 's,.*/,,' $(LINUX_DIR)/modules.builtin;
|
|
|
|
endef
|
|
|
|
|
2007-04-18 20:40:20 +08:00
|
|
|
$(eval $(if $(DUMP),,$(call BuildPackage,kernel)))
|
2006-10-19 12:35:29 +08:00
|
|
|
|
2011-08-15 07:36:42 +08:00
|
|
|
include $(sort $(wildcard ./modules/*.mk))
|
2010-04-24 19:41:35 +08:00
|
|
|
-include $(TOPDIR)/target/linux/*/modules.mk
|