source: trunk/package/kernel/Makefile @ 6501

Last change on this file since 6501 was 6501, checked in by pavlov, 9 years ago

same propset here as changeset:6500

  • Property svn:copyright set to Copyright (C) 2006 OpenWrt.org
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.2 KB
Line 
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
9include $(TOPDIR)/rules.mk
10include $(INCLUDE_DIR)/kernel.mk
11
12PKG_NAME:=kernel
13PKG_VERSION:=$(LINUX_VERSION)-$(BOARD)
14PKG_RELEASE:=$(LINUX_RELEASE)
15
16PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/packages
17
18# build all in-tree kmod-* packages by default
19KMOD_DEFAULT:=m
20
21include $(INCLUDE_DIR)/package.mk
22ifeq ($(DUMP),)
23  -include $(LINUX_DIR)/.config
24  NF_KMOD:=1
25  include $(INCLUDE_DIR)/netfilter.mk
26endif
27
28define Build/Prepare
29        mkdir -p $(PKG_BUILD_DIR)
30endef
31
32define Build/Configure
33endef
34
35define Build/Compile
36endef
37
38CONFIG_PACKAGE_kernel=y
39define Package/kernel
40  SECTION:=sys
41  CATEGORY:=Kernel
42  DEFAULT:=y
43  TITLE:=Virtual kernel package
44  DESCRIPTION:=Virtual kernel package
45  VERSION:=$(LINUX_VERSION)-$(BOARD)-$(LINUX_RELEASE)
46endef
47
48define Package/kernel/install
49  # nothing to do
50endef
51
52# this is more robust than ifdef around eval/call
53ifneq ($(DUMP),1)
54  define BuildKernel
55    $(call BuildPackage,kernel)
56  endef
57endif
58$(eval $(call BuildKernel))
59
60include $(TOPDIR)/target/linux/*/modules.mk
61include ./modules/*.mk
Note: See TracBrowser for help on using the repository browser.