Properly extract KERNEL_PATCHVER for linux 3.0
Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com> SVN-Revision: 27183
This commit is contained in:
parent
5752efdadd
commit
45ae457825
1 changed files with 5 additions and 1 deletions
|
@ -37,5 +37,9 @@ split_version=$(subst ., ,$(1))
|
||||||
merge_version=$(subst $(space),.,$(1))
|
merge_version=$(subst $(space),.,$(1))
|
||||||
KERNEL_BASE=$(firstword $(subst -, ,$(LINUX_VERSION)))
|
KERNEL_BASE=$(firstword $(subst -, ,$(LINUX_VERSION)))
|
||||||
KERNEL=$(call merge_version,$(wordlist 1,2,$(call split_version,$(KERNEL_BASE))))
|
KERNEL=$(call merge_version,$(wordlist 1,2,$(call split_version,$(KERNEL_BASE))))
|
||||||
KERNEL_PATCHVER=$(call merge_version,$(wordlist 1,3,$(call split_version,$(KERNEL_BASE))))
|
ifeq ($(firstword $(call split_version,$(KERNEL_BASE))),2)
|
||||||
|
KERNEL_PATCHVER=$(call merge_version,$(wordlist 1,3,$(call split_version,$(KERNEL_BASE))))
|
||||||
|
else
|
||||||
|
KERNEL_PATCHVER=$(KERNEL)
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue