mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 20:04:05 +02:00
Properly extract KERNEL_PATCHVER for linux 3.0
Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27183 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
886975b7e5
commit
3da81e77a5
@ -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))))
|
||||||
|
ifeq ($(firstword $(call split_version,$(KERNEL_BASE))),2)
|
||||||
KERNEL_PATCHVER=$(call merge_version,$(wordlist 1,3,$(call split_version,$(KERNEL_BASE))))
|
KERNEL_PATCHVER=$(call merge_version,$(wordlist 1,3,$(call split_version,$(KERNEL_BASE))))
|
||||||
|
else
|
||||||
|
KERNEL_PATCHVER=$(KERNEL)
|
||||||
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user