move KERNEL_PATCHVER from kernel.mk to kernel-version.mk so that it is defined when...
[openwrt/svn-archive/archive.git] / include / kernel.mk
index 7f035c7..817555c 100644 (file)
@@ -28,7 +28,6 @@ else
     KERNEL_CROSS:=$(TARGET_CROSS)
   endif
 
-  KERNEL_PATCHVER:=$(shell echo $(LINUX_VERSION) | cut -d. -f1,2,3 | cut -d- -f1)
   PLATFORM_DIR := $(TOPDIR)/target/linux/$(BOARD)-$(KERNEL)
   PATCH_DIR ?= ./patches$(shell [ -d "./patches-$(KERNEL_PATCHVER)" ] && printf -- "-$(KERNEL_PATCHVER)" || true )
   KERNEL_BUILD_DIR ?= $(BUILD_DIR_BASE)/linux-$(KERNEL)-$(BOARD)$(if $(BUILD_SUFFIX),_$(BUILD_SUFFIX))