include/feeds.mk: rework generation of opkg distfeeds.conf
[openwrt/staging/mkresin.git] / package / kernel / linux / Makefile
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=kernel
12 PKG_FLAGS:=hold
13
14 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/packages
15 SCAN_DEPS=modules/*.mk $(TOPDIR)/target/linux/*/modules.mk $(TOPDIR)/include/netfilter.mk
16
17 PKG_LICENSE:=GPL-2.0
18 PKG_LICENSE_FILES:=
19
20 export SHELL:=/bin/sh
21 .ONESHELL:
22 .SHELLFLAGS = -ec
23
24 include $(INCLUDE_DIR)/package.mk
25
26 ifeq ($(DUMP),)
27 STAMP_BUILT:=$(STAMP_BUILT)_$(shell $(SCRIPT_DIR)/kconfig.pl $(LINUX_DIR)/.config | mkhash md5)
28 -include $(LINUX_DIR)/.config
29 endif
30
31 define Build/Prepare
32 mkdir -p $(PKG_BUILD_DIR)
33 endef
34
35 define Build/Configure
36 endef
37
38 define Build/Compile
39 endef
40
41 define KernelPackage/depends
42 endef
43
44 CONFIG_PACKAGE_kernel=y
45 define Package/kernel
46 SECTION:=sys
47 CATEGORY:=Kernel
48 DEFAULT:=y
49 TITLE:=Virtual kernel package
50 VERSION:=$(LINUX_VERSION)-$(LINUX_RELEASE)-$(LINUX_VERMAGIC)
51 URL:=http://www.kernel.org/
52 PKG_FLAGS:=nonshared
53 endef
54
55 define Package/kernel/install
56 # nothing to do
57 endef
58
59 define Package/kernel/extra_provides
60 sed -e 's,.*/,,' $(LINUX_DIR)/modules.builtin;
61 endef
62
63 $(eval $(if $(DUMP),,$(call BuildPackage,kernel)))
64
65 include $(sort $(wildcard ./modules/*.mk))
66 -include $(TOPDIR)/target/linux/*/modules.mk