From 79c9a433ed0baaf568aa8b27c692001798905742 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Sun, 6 Dec 2009 15:40:03 +0100 Subject: kernel-headers: make snapshot option more user friendly Closes #751. Make kernel headers snapshot more user friendly by making it more obvious that it's about using a local kernel snapshot, and error out with a sensible error message if the option is enabled but no linux-2.6.tar.bz2 is present in DL_DIR, rather than trying to fetch it from kernel.org. Furthermore fix the bug where it tried to use linux-2.6..tar.bz2 instead of linux-2.6.tar.bz2. Signed-off-by: Peter Korsgaard --- toolchain/kernel-headers/kernel-headers-new.makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'toolchain/kernel-headers/kernel-headers-new.makefile') diff --git a/toolchain/kernel-headers/kernel-headers-new.makefile b/toolchain/kernel-headers/kernel-headers-new.makefile index 29deaae76..d0a3f2a64 100644 --- a/toolchain/kernel-headers/kernel-headers-new.makefile +++ b/toolchain/kernel-headers/kernel-headers-new.makefile @@ -13,9 +13,10 @@ EXTRAVERSION:=$(word 4, $(LNXVER)) LOCALVERSION:= # should contain prepended dot +SUBLEVEL:=$(if $(SUBLEVEL),.$(SUBLEVEL),) EXTRAVERSION:=$(if $(EXTRAVERSION),.$(EXTRAVERSION),) -LINUX_HEADERS_VERSION:=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) +LINUX_HEADERS_VERSION:=$(VERSION).$(PATCHLEVEL)$(SUBLEVEL)$(EXTRAVERSION) LINUX_HEADERS_SITE:=$(BR2_KERNEL_MIRROR)/linux/kernel/v2.6/ LINUX_HEADERS_SOURCE:=linux-$(LINUX_HEADERS_VERSION).tar.bz2 LINUX_HEADERS_CAT:=$(BZCAT) -- cgit v1.2.3