From 4f9c37d9601e3db69f5a3d5f70cbf8f2a85a28a6 Mon Sep 17 00:00:00 2001 From: Ulf Samuelsson Date: Wed, 16 Apr 2008 22:54:46 +0000 Subject: [PATCH] Avoid duplicate rules for downloading kernel source, if kernel and headers are the same --- target/linux/Makefile.in.advanced | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/target/linux/Makefile.in.advanced b/target/linux/Makefile.in.advanced index a96288d18d..e3d7fbdbb0 100644 --- a/target/linux/Makefile.in.advanced +++ b/target/linux/Makefile.in.advanced @@ -184,7 +184,9 @@ LINUX26_MAKE_FLAGS = HOSTCC="$(HOSTCC)" HOSTCFLAGS="$(HOSTCFLAGS)" \ LZMA="$(LZMA)" # ============================================================================= -ifneq ($(strip $(LINUX26_VERSION)),$(strip $(LINUX_HEADERS_VERSION))) +# ifneq ($(strip $(LINUX26_VERSION)),$(strip $(LINUX_HEADERS_VERSION))) + +ifneq ($(strip $(LINUX26_SOURCE)),$(strip $(LINUX_HEADERS_SOURCE))) $(DL_DIR)/$(LINUX26_SOURCE): $(WGET) -P $(DL_DIR) $(LINUX26_SITE)/$(LINUX26_SOURCE) endif # ($(LINUX26_VERSION),$(LINUX_HEADERS_VERSION)) -- 2.30.2