aboutsummaryrefslogtreecommitdiffstats
path: root/include/target.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-03-03 13:54:29 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-03-03 13:54:29 +0000
commit127296bc455beff15cdc3830e66fc6d2311e6057 (patch)
treeb2414746d5d9c91c3d8ab8fec287b5e23e1c518f /include/target.mk
parent2d1ed46c687f4ec831da97e9209513a8111a0b1a (diff)
downloadupstream-127296bc455beff15cdc3830e66fc6d2311e6057.tar.gz
upstream-127296bc455beff15cdc3830e66fc6d2311e6057.tar.bz2
upstream-127296bc455beff15cdc3830e66fc6d2311e6057.zip
speed up metadata scanning a lot by avoiding unnecessary shell commands and make recursions
SVN-Revision: 14734
Diffstat (limited to 'include/target.mk')
-rw-r--r--include/target.mk12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/target.mk b/include/target.mk
index ee373aa19e..d3c149aa18 100644
--- a/include/target.mk
+++ b/include/target.mk
@@ -40,9 +40,11 @@ TARGETID:=$(BOARD)$(if $(SUBTARGET),/$(SUBTARGET))
PLATFORM_SUBDIR:=$(PLATFORM_DIR)$(if $(SUBTARGET),/$(SUBTARGET))
ifneq ($(TARGET_BUILD),1)
- include $(PLATFORM_DIR)/Makefile
- ifneq ($(PLATFORM_DIR),$(PLATFORM_SUBDIR))
- include $(PLATFORM_SUBDIR)/target.mk
+ ifndef DUMP
+ include $(PLATFORM_DIR)/Makefile
+ ifneq ($(PLATFORM_DIR),$(PLATFORM_SUBDIR))
+ include $(PLATFORM_SUBDIR)/target.mk
+ endif
endif
else
ifneq ($(SUBTARGET),)
@@ -102,7 +104,9 @@ endif
$(eval $(call shexport,Target/Description))
-include $(INCLUDE_DIR)/kernel-version.mk
+ifneq ($(TARGET_BUILD)$(if $(DUMP),,1),)
+ include $(INCLUDE_DIR)/kernel-version.mk
+endif
GENERIC_PLATFORM_DIR := $(TOPDIR)/target/linux/generic-$(KERNEL)
GENERIC_PATCH_DIR := $(GENERIC_PLATFORM_DIR)/patches$(shell [ -d "$(GENERIC_PLATFORM_DIR)/patches-$(KERNEL_PATCHVER)" ] && printf -- "-$(KERNEL_PATCHVER)" || true )