mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-01 08:48:08 +00:00
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
@ -37,5 +37,9 @@ split_version=$(subst ., ,$(1))
|
||||
merge_version=$(subst $(space),.,$(1))
|
||||
KERNEL_BASE=$(firstword $(subst -, ,$(LINUX_VERSION)))
|
||||
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…
x
Reference in New Issue
Block a user