lantiq: Tune the XWAY subtarget cflags
[openwrt.git] / package / kernel / 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
16
17 PKG_LICENSE:=GPLv2
18 PKG_LICENSE_FILES:=
19
20 include $(INCLUDE_DIR)/package.mk
21 ifeq ($(DUMP),)
22   -include $(LINUX_DIR)/.config
23 endif
24
25 define Build/Prepare
26         mkdir -p $(PKG_BUILD_DIR)
27 endef
28
29 define Build/Configure
30 endef
31
32 define Build/Compile
33 endef
34
35 CONFIG_PACKAGE_kernel=y
36 define Package/kernel
37   SECTION:=sys
38   CATEGORY:=Kernel
39   DEFAULT:=y
40   TITLE:=Virtual kernel package
41   VERSION:=$(LINUX_VERSION)-$(LINUX_RELEASE)-$(LINUX_VERMAGIC)
42   URL:=http://www.kernel.org/
43 endef
44
45 define Package/kernel/install
46   # nothing to do
47 endef
48
49 $(eval $(if $(DUMP),,$(call BuildPackage,kernel)))
50
51 include $(sort $(wildcard ./modules/*.mk))
52 -include $(TOPDIR)/target/linux/*/modules.mk