diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-09-15 17:55:16 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-09-15 17:55:16 +0000 |
commit | 22be36418e2f32eb058e303890bfc680342c377b (patch) | |
tree | 8f29bdde278f2df69be8193bc070a93050de3472 /package/mac80211/patches/130-fix_sublevel_check.patch | |
parent | 98372a8eb51cafa81f0e31672669dc23d745d109 (diff) | |
download | upstream-22be36418e2f32eb058e303890bfc680342c377b.tar.gz upstream-22be36418e2f32eb058e303890bfc680342c377b.tar.bz2 upstream-22be36418e2f32eb058e303890bfc680342c377b.zip |
mac80211: update to wireless-testing 2011-09-14
SVN-Revision: 28245
Diffstat (limited to 'package/mac80211/patches/130-fix_sublevel_check.patch')
-rw-r--r-- | package/mac80211/patches/130-fix_sublevel_check.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/package/mac80211/patches/130-fix_sublevel_check.patch b/package/mac80211/patches/130-fix_sublevel_check.patch new file mode 100644 index 0000000000..b233311ab1 --- /dev/null +++ b/package/mac80211/patches/130-fix_sublevel_check.patch @@ -0,0 +1,22 @@ +--- a/config.mk ++++ b/config.mk +@@ -20,16 +20,16 @@ COMPAT_LATEST_VERSION = 1 + KERNEL_VERSION := $(shell $(MAKE) -C $(KLIB_BUILD) kernelversion | sed -n 's/^\([0-9]\)\..*/\1/p') + + ifneq ($(KERNEL_VERSION),2) +-KERNEL_SUBLEVEL := $(shell $(MAKE) -C $(KLIB_BUILD) kernelversion | sed -n 's/^3\.\([0-9]\+\).*/\1/p') ++COMPAT_KERNEL_SUBLEVEL := $(shell $(MAKE) -C $(KLIB_BUILD) kernelversion | sed -n 's/^3\.\([0-9]\+\).*/\1/p') + else + COMPAT_26LATEST_VERSION = 39 + KERNEL_26SUBLEVEL := $(shell $(MAKE) -C $(KLIB_BUILD) kernelversion | sed -n 's/^2\.6\.\([0-9]\+\).*/\1/p') + COMPAT_26VERSIONS := $(shell I=$(COMPAT_26LATEST_VERSION); while [ "$$I" -gt $(KERNEL_26SUBLEVEL) ]; do echo $$I; I=$$(($$I - 1)); done) + $(foreach ver,$(COMPAT_26VERSIONS),$(eval CONFIG_COMPAT_KERNEL_2_6_$(ver)=y)) +-KERNEL_SUBLEVEL := -1 ++COMPAT_KERNEL_SUBLEVEL := -1 + endif + +-COMPAT_VERSIONS := $(shell I=$(COMPAT_LATEST_VERSION); while [ "$$I" -gt $(KERNEL_SUBLEVEL) ]; do echo $$I; I=$$(($$I - 1)); done) ++COMPAT_VERSIONS := $(shell I=$(COMPAT_LATEST_VERSION); while [ "$$I" -gt $(COMPAT_KERNEL_SUBLEVEL) ]; do echo $$I; I=$$(($$I - 1)); done) + $(foreach ver,$(COMPAT_VERSIONS),$(eval CONFIG_COMPAT_KERNEL_3_$(ver)=y)) + + ifdef CONFIG_COMPAT_KERNEL_2_6_24 |