move KERNEL_PATCHVER from kernel.mk to kernel-version.mk so that it is defined when...
authorNicolas Thill <nico@openwrt.org>
Sat, 25 Aug 2007 14:50:17 +0000 (14:50 +0000)
committerNicolas Thill <nico@openwrt.org>
Sat, 25 Aug 2007 14:50:17 +0000 (14:50 +0000)
SVN-Revision: 8485

include/kernel-version.mk
include/kernel.mk

index f68fdea6f0002ea9d01dc8d47eb219dc1c377174..ee3486fdb102487761cf9ec073098a86fa243359 100644 (file)
@@ -23,4 +23,5 @@ endif
 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)
 
index 7f035c7bc5264fa56fa0bd31f78a849fbfe5b7a8..817555cf0f629584a1395b9439d5785db4c14084 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))