config BACKPORT_BUILD_FW_LOADER
tristate
+ # RHEL6, starting from 6.0, backports the FW loader already
+ depends on !BACKPORT_RHEL_KERNEL_6_0
default m if BACKPORT_FW_LOADER && (!FW_LOADER || BACKPORT_KERNEL_2_6_33)
config BACKPORT_FW_LOADER
config BACKPORT_BUILD_KFIFO
def_bool y
- # FIXME: REDHAT_6_1 also includes this
+ # RHEL6, starting from 6.1, backports kfifo already
+ depends on !BACKPORT_RHEL_KERNEL_6_1
depends on BACKPORT_KERNEL_2_6_36
config BACKPORT_BUILD_CORDIC
config BACKPORT_OPTION_BT_SOCK_CREATE_NEEDS_KERN
bool
- # FIXME: REDHAT_6_0 also requires this
- default y if !BACKPORT_KERNEL_2_6_33
+ # in RHEL6 (starting from 6.0), the function needs the argument
+ default y if !BACKPORT_KERNEL_2_6_33 || BACKPORT_RHEL_KERNEL_6_0
config BACKPORT_BUILD_AVERAGE
bool
KLIB_BUILD ?= /lib/modules/$(shell uname -r)/build/
KERNEL_CONFIG := $(KLIB_BUILD)/.config
+KERNEL_MAKEFILE := $(KLIB_BUILD)/Makefile
CONFIG_MD5 := $(shell md5sum $(KERNEL_CONFIG) | sed 's/\s.*//')
export KLIB_BUILD BACKPORT_PWD
fi ;\
if [ "$$v" = "$$kver" ] ; then print=1 ; fi ;\
done > Kconfig.versions ;\
+ # RHEL as well, sadly we need to grep for it ;\
+ RHEL_MAJOR=$$(grep '^RHEL_MAJOR' $(KERNEL_MAKEFILE) | \
+ sed 's/.*=\s*\([0-9]*\)/\1/;t;d') ;\
+ RHEL_MINOR=$$(grep '^RHEL_MINOR' $(KERNEL_MAKEFILE) | \
+ sed 's/.*=\s*\([0-9]*\)/\1/;t;d') ;\
+ for v in $$(seq 0 $$RHEL_MINOR) ; do \
+ echo config BACKPORT_RHEL_KERNEL_$${RHEL_MAJOR}_$$v ;\
+ echo " def_bool y" ;\
+ done >> Kconfig.versions ;\
echo " done." ;\
fi ;\
echo "$(CONFIG_MD5)" > .kernel_config_md5