2006-12-13 12:49:19 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# full kernel tarballs >= 2.6.19.1
|
|
|
|
#
|
|
|
|
#############################################################
|
2007-08-01 10:15:44 +02:00
|
|
|
ifeq ("$(DEFAULT_KERNEL_HEADERS)","2.6.22.1")
|
|
|
|
VERSION:=2
|
|
|
|
PATCHLEVEL:=6
|
|
|
|
SUBLEVEL:=22
|
|
|
|
EXTRAVERSION:=.1
|
|
|
|
LOCALVERSION:=
|
|
|
|
LINUX_HEADERS_VERSION:=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
|
|
|
|
LINUX_HEADERS_SITE:=http://www.kernel.org/pub/linux/kernel/v2.6/
|
|
|
|
LINUX_HEADERS_SOURCE:=linux-$(LINUX_HEADERS_VERSION).tar.bz2
|
|
|
|
LINUX_HEADERS_CAT:=$(BZCAT)
|
|
|
|
LINUX_HEADERS_UNPACK_DIR:=$(BUILD_DIR)/linux-$(LINUX_HEADERS_VERSION)
|
|
|
|
LINUX_HEADERS_DIR:=$(TOOL_BUILD_DIR)/linux
|
|
|
|
LINUX_HEADERS_IS_KERNEL=y
|
|
|
|
endif
|
|
|
|
|
2007-06-22 00:10:12 +02:00
|
|
|
ifeq ("$(DEFAULT_KERNEL_HEADERS)","2.6.21.5")
|
|
|
|
VERSION:=2
|
|
|
|
PATCHLEVEL:=6
|
|
|
|
SUBLEVEL:=21
|
|
|
|
EXTRAVERSION:=.5
|
|
|
|
LOCALVERSION:=
|
|
|
|
LINUX_HEADERS_VERSION:=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
|
|
|
|
LINUX_HEADERS_SITE:=http://www.kernel.org/pub/linux/kernel/v2.6/
|
|
|
|
LINUX_HEADERS_SOURCE:=linux-$(LINUX_HEADERS_VERSION).tar.bz2
|
|
|
|
LINUX_HEADERS_CAT:=$(BZCAT)
|
|
|
|
LINUX_HEADERS_UNPACK_DIR:=$(BUILD_DIR)/linux-$(LINUX_HEADERS_VERSION)
|
|
|
|
LINUX_HEADERS_DIR:=$(TOOL_BUILD_DIR)/linux
|
|
|
|
LINUX_HEADERS_IS_KERNEL=y
|
|
|
|
endif
|
2006-12-13 12:49:19 +01:00
|
|
|
|
2007-03-24 13:46:01 +01:00
|
|
|
ifeq ("$(DEFAULT_KERNEL_HEADERS)","2.6.20.4")
|
2006-12-13 12:49:19 +01:00
|
|
|
VERSION:=2
|
|
|
|
PATCHLEVEL:=6
|
2007-02-06 12:31:50 +01:00
|
|
|
SUBLEVEL:=20
|
2007-03-24 13:46:01 +01:00
|
|
|
EXTRAVERSION:=.4
|
2006-12-13 13:34:39 +01:00
|
|
|
LOCALVERSION:=
|
2006-12-13 12:49:19 +01:00
|
|
|
LINUX_HEADERS_VERSION:=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
|
|
|
|
LINUX_HEADERS_SITE:=http://www.kernel.org/pub/linux/kernel/v2.6/
|
|
|
|
LINUX_HEADERS_SOURCE:=linux-$(LINUX_HEADERS_VERSION).tar.bz2
|
|
|
|
LINUX_HEADERS_CAT:=$(BZCAT)
|
2006-12-18 14:30:05 +01:00
|
|
|
LINUX_HEADERS_UNPACK_DIR:=$(BUILD_DIR)/linux-$(LINUX_HEADERS_VERSION)
|
2006-12-13 12:49:19 +01:00
|
|
|
LINUX_HEADERS_DIR:=$(TOOL_BUILD_DIR)/linux
|
|
|
|
LINUX_HEADERS_IS_KERNEL=y
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(LINUX_HEADERS_IS_KERNEL),y)
|
|
|
|
|
|
|
|
$(LINUX_HEADERS_UNPACK_DIR)/.unpacked: $(DL_DIR)/$(LINUX_HEADERS_SOURCE)
|
|
|
|
rm -rf $(LINUX_HEADERS_DIR)
|
2007-02-15 12:12:15 +01:00
|
|
|
[ -d $(BUILD_DIR) ] || $(INSTALL) -d $(BUILD_DIR)
|
2006-12-18 14:30:05 +01:00
|
|
|
$(LINUX_HEADERS_CAT) $(DL_DIR)/$(LINUX_HEADERS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2007-02-04 17:11:51 +01:00
|
|
|
touch $@
|
2006-12-13 12:49:19 +01:00
|
|
|
|
|
|
|
$(LINUX_HEADERS_UNPACK_DIR)/.patched: $(LINUX_HEADERS_UNPACK_DIR)/.unpacked
|
|
|
|
toolchain/patch-kernel.sh $(LINUX_HEADERS_UNPACK_DIR) toolchain/kernel-headers \
|
|
|
|
linux-$(LINUX_HEADERS_VERSION)-\*.patch{,.gz,.bz2}
|
2007-03-21 11:55:31 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_OPENSWAN),y)
|
|
|
|
toolchain/patch-kernel.sh $(LINUX_HEADERS_UNPACK_DIR) package/openswan \
|
|
|
|
linux-$(LINUX_HEADERS_VERSION)-\*.patch{,.gz,.bz2}
|
|
|
|
endif
|
2007-02-04 17:11:51 +01:00
|
|
|
touch $@
|
2006-12-13 12:49:19 +01:00
|
|
|
|
|
|
|
$(LINUX_HEADERS_DIR)/.configured: $(LINUX_HEADERS_UNPACK_DIR)/.patched
|
|
|
|
(cd $(LINUX_HEADERS_UNPACK_DIR) ; \
|
2006-12-13 19:24:48 +01:00
|
|
|
$(MAKE) ARCH=$(KERNEL_ARCH) CC="$(HOSTCC)" \
|
|
|
|
INSTALL_HDR_PATH=$(LINUX_HEADERS_DIR) headers_install ; \
|
|
|
|
)
|
2007-02-04 17:11:51 +01:00
|
|
|
touch $@
|
2006-12-13 12:49:19 +01:00
|
|
|
|
|
|
|
endif
|