speed up metadata scanning a lot by avoiding unnecessary shell commands and make recursions

SVN-Revision: 14734
This commit is contained in:
Felix Fietkau
2009-03-03 13:54:29 +00:00
parent 2d1ed46c68
commit 127296bc45
6 changed files with 60 additions and 40 deletions

View File

@@ -38,6 +38,8 @@ endif
# disable the md5sum check for unknown kernel versions
LINUX_KERNEL_MD5SUM?=x
KERNEL?=2.$(word 2,$(subst ., ,$(strip $(LINUX_VERSION))))
KERNEL_PATCHVER=$(shell echo '$(LINUX_VERSION)' | cut -d. -f1,2,3 | cut -d- -f1)
split_version=$(subst ., ,$(1))
merge_version=$(subst $(space),.,$(1))
KERNEL=$(call merge_version,$(wordlist 1,2,$(call split_version,$(LINUX_VERSION))))
KERNEL_PATCHVER=$(call merge_version,$(wordlist 1,3,$(call split_version,$(LINUX_VERSION))))