Make ipmi kernelpatch selectable, add possibility for custom kernel patch

This commit is contained in:
Ulf Samuelsson 2007-08-19 22:01:27 +00:00
parent cdb7c0167b
commit 3978c67570
6 changed files with 30 additions and 5 deletions

View File

@ -2,11 +2,11 @@
# ignored if you are building your own kernel or using the system kernel. # ignored if you are building your own kernel or using the system kernel.
# #
comment "Kernel Header Options" menu "Kernel Header Options"
choice choice
prompt "Kernel Headers" prompt "Kernel Headers"
default BR2_KERNEL_HEADERS_2_6_21 default BR2_KERNEL_HEADERS_2_6_22
help help
Select the version of kernel header files you wish to use. Select the version of kernel header files you wish to use.
You must select the correct set of header files to match You must select the correct set of header files to match
@ -58,9 +58,20 @@ choice
endchoice endchoice
config BR2_KERNEL_HEADERS_IPMI
bool "use ipmi kernel patches"
default n
depends BR2_KERNEL_HEADERS_2_6_20 || BR2_KERNEL_HEADERS_2_6_21 || BR2_KERNEL_HEADERS_2_6_22
help
Apply patches which allow for lzma compressed
initramfs filesystems. This requires the lzma
program in your development environment.
config BR2_KERNEL_HEADERS_LZMA config BR2_KERNEL_HEADERS_LZMA
bool "use lzma initramfs kernel patches" bool "use lzma initramfs kernel patches"
default n default n
depends BR2_KERNEL_HEADERS_2_6_21 || BR2_KERNEL_HEADERS_2_6_22
help help
Apply patches which allow for lzma compressed Apply patches which allow for lzma compressed
initramfs filesystems. This requires the lzma initramfs filesystems. This requires the lzma
@ -68,6 +79,8 @@ config BR2_KERNEL_HEADERS_LZMA
config BR2_KERNEL_HEADERS_LZMA_INSTALL config BR2_KERNEL_HEADERS_LZMA_INSTALL
bool "Install lzma in /usr/local/bin (Requires system password) for sudo" bool "Install lzma in /usr/local/bin (Requires system password) for sudo"
depends on BR2_KERNEL_HEADERS_2_6_21 || BR2_KERNEL_HEADERS_2_6_22
depends on BR2_KERNEL_HEADERS_LZMA
default n default n
help help
Install the lzma package in the /usr/local/bin directory Install the lzma package in the /usr/local/bin directory
@ -77,6 +90,14 @@ config BR2_KERNEL_HEADERS_LZMA_INSTALL
to complete the linux build, ifl you apply the lzma patches to complete the linux build, ifl you apply the lzma patches
is to have '$(STAGING_DIR)/usr/bin' in your path. is to have '$(STAGING_DIR)/usr/bin' in your path.
config BR2_KERNEL_HEADERS_PATCH_DIR
bool "Add additional headers from $(KERNEL_HEADERS_PATCH_DIR)"
default n
depends BR2_KERNEL_HEADERS_2_6_20 || BR2_KERNEL_HEADERS_2_6_21 || BR2_KERNEL_HEADERS_2_6_22
help
Apply additonal kernel patches defined by KERNEL_HEADERS_PATCH_DIR
in your board directory.
config BR2_DEFAULT_KERNEL_HEADERS config BR2_DEFAULT_KERNEL_HEADERS
string string
default "2.4.25" if BR2_KERNEL_HEADERS_2_4_25 default "2.4.25" if BR2_KERNEL_HEADERS_2_4_25
@ -90,3 +111,5 @@ config BR2_DEFAULT_KERNEL_HEADERS
default "2.6.20.4" if BR2_KERNEL_HEADERS_2_6_20 default "2.6.20.4" if BR2_KERNEL_HEADERS_2_6_20
default "2.6.21.5" if BR2_KERNEL_HEADERS_2_6_21 default "2.6.21.5" if BR2_KERNEL_HEADERS_2_6_21
default "2.6.22.1" if BR2_KERNEL_HEADERS_2_6_22 default "2.6.22.1" if BR2_KERNEL_HEADERS_2_6_22
endmenu

View File

@ -51,6 +51,7 @@ endif
ifeq ($(LINUX_HEADERS_IS_KERNEL),y) ifeq ($(LINUX_HEADERS_IS_KERNEL),y)
$(LINUX_HEADERS_UNPACK_DIR)/.unpacked: $(DL_DIR)/$(LINUX_HEADERS_SOURCE) $(LINUX_HEADERS_UNPACK_DIR)/.unpacked: $(DL_DIR)/$(LINUX_HEADERS_SOURCE)
@echo "*** Using kernel-headers generated from kernel source"
rm -rf $(LINUX_HEADERS_DIR) rm -rf $(LINUX_HEADERS_DIR)
[ -d $(BUILD_DIR) ] || $(INSTALL) -d $(BUILD_DIR) [ -d $(BUILD_DIR) ] || $(INSTALL) -d $(BUILD_DIR)
$(LINUX_HEADERS_CAT) $(DL_DIR)/$(LINUX_HEADERS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - $(LINUX_HEADERS_CAT) $(DL_DIR)/$(LINUX_HEADERS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
@ -63,9 +64,9 @@ ifeq ($(BR2_KERNEL_HEADERS_LZMA),y)
toolchain/patch-kernel.sh $(LINUX_HEADERS_UNPACK_DIR) toolchain/kernel-headers/lzma \ toolchain/patch-kernel.sh $(LINUX_HEADERS_UNPACK_DIR) toolchain/kernel-headers/lzma \
linux-$(LINUX_HEADERS_VERSION)-\*.patch{,.gz,.bz2} linux-$(LINUX_HEADERS_VERSION)-\*.patch{,.gz,.bz2}
endif endif
ifneq ($(LINUX26_HEADERS_PATCH_DIR),) ifeq ($(BR2_KERNEL_HEADERS_PATCH_DIR),y)
toolchain/patch-kernel.sh $(LINUX_HEADERS_UNPACK_DIR) $(LINUX26_HEADERS_PATCH_DIR) \ toolchain/patch-kernel.sh $(LINUX_HEADERS_UNPACK_DIR) $(KERNEL_HEADERS_PATCH_DIR) \
linux-$(LINUX_HEADERS_VERSION)-\*.patch{,.gz,.bz2} \*.patch{,.gz,.bz2}
endif endif
ifeq ($(BR2_PACKAGE_OPENSWAN),y) ifeq ($(BR2_PACKAGE_OPENSWAN),y)
toolchain/patch-kernel.sh $(LINUX_HEADERS_UNPACK_DIR) package/openswan \ toolchain/patch-kernel.sh $(LINUX_HEADERS_UNPACK_DIR) package/openswan \

View File

@ -107,6 +107,7 @@ endif
ifeq ($(LINUX_HEADERS_IS_KERNEL),n) ifeq ($(LINUX_HEADERS_IS_KERNEL),n)
$(LINUX_HEADERS_UNPACK_DIR)/.unpacked: $(DL_DIR)/$(LINUX_HEADERS_SOURCE) $(LINUX_HEADERS_UNPACK_DIR)/.unpacked: $(DL_DIR)/$(LINUX_HEADERS_SOURCE)
@echo "Using old sanitized kernel-headers"
rm -rf $(LINUX_HEADERS_DIR) rm -rf $(LINUX_HEADERS_DIR)
$(LINUX_HEADERS_CAT) $(DL_DIR)/$(LINUX_HEADERS_SOURCE) | tar -C $(TOOL_BUILD_DIR) $(TAR_OPTIONS) - $(LINUX_HEADERS_CAT) $(DL_DIR)/$(LINUX_HEADERS_SOURCE) | tar -C $(TOOL_BUILD_DIR) $(TAR_OPTIONS) -
ifneq ($(LINUX_HEADERS_UNPACK_DIR),$(LINUX_HEADERS_DIR)) ifneq ($(LINUX_HEADERS_UNPACK_DIR),$(LINUX_HEADERS_DIR))