]> git.openfabrics.org - ~emulex/tmp/compat/.git/commit
compat: add some initial RHEL support
authorLuis R. Rodriguez <mcgrof@frijolero.org>
Sat, 25 Feb 2012 01:38:10 +0000 (17:38 -0800)
committerLuis R. Rodriguez <mcgrof@frijolero.org>
Sat, 25 Feb 2012 01:39:23 +0000 (17:39 -0800)
commitcb9c914c4b64d6537fee1b19c6c7174372e16b16
tree04ccab1d97845594fc1aab75e0bdc509bfce750a
parent7bf2796dc1899d68c721a1b74777df4879c89a2e
compat: add some initial RHEL support

This adds a series of CONFIG_COMPAT_${RHEL_MAJOR}_${i} tags
for each known RHEL version that we supercede. I cannot
verify if this is correct but this is my translation of
this to script:

RHEL_MAJOR := $(shell grep ^RHEL_MAJOR $(KLIB_BUILD)/Makefile | sed -n 's/.*= *\(.*\)/\1/p')
ifneq ($(RHEL_MAJOR),)
RHEL_MINOR := $(shell grep ^RHEL_MINOR $(KLIB_BUILD)/Makefile | sed -n 's/.*= *\(.*\)/\1/p')
COMPAT_RHEL_VERSIONS := $(shell I=$(RHEL_MINOR); while [ "$$I" -ge 0 ]; do echo $$I; I=$$(($$I - 1)); done)
$(foreach ver,$(COMPAT_RHEL_VERSIONS),$(eval CONFIG_COMPAT_RHEL_$(RHEL_MAJOR)_$(ver)=y))

Cc: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
scripts/gen-compat-config.sh