aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-09-15 12:16:11 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-09-15 12:16:11 +0000
commit2e3918df3307390998bc8f7e976be3abcb78814d (patch)
tree6ee3f40d5954dcf73338839ccc0ce7f043ae9b15
parentfb4ad8c8f75b5915dbbbb66432638dd071b81278 (diff)
downloadupstream-2e3918df3307390998bc8f7e976be3abcb78814d.tar.gz
upstream-2e3918df3307390998bc8f7e976be3abcb78814d.tar.bz2
upstream-2e3918df3307390998bc8f7e976be3abcb78814d.zip
kernel: suppress redundant calls to headers installation
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33421 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--include/kernel-defaults.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/kernel-defaults.mk b/include/kernel-defaults.mk
index 1cb8b445e9..8075079d70 100644
--- a/include/kernel-defaults.mk
+++ b/include/kernel-defaults.mk
@@ -106,7 +106,7 @@ define Kernel/Configure/Default
$(SCRIPT_DIR)/kconfig.pl 'm+' '+' $(LINUX_DIR)/.config.target /dev/null $(LINUX_DIR)/.config.override > $(LINUX_DIR)/.config
$(call Kernel/SetInitramfs)
rm -rf $(KERNEL_BUILD_DIR)/modules
- $(MAKE) $(KERNEL_MAKEOPTS) INSTALL_HDR_PATH=$(LINUX_DIR)/user_headers headers_install
+ [ -d $(LINUX_DIR)/user_headers ] || $(MAKE) $(KERNEL_MAKEOPTS) INSTALL_HDR_PATH=$(LINUX_DIR)/user_headers headers_install
$(SH_FUNC) grep '=[ym]' $(LINUX_DIR)/.config | LC_ALL=C sort | md5s > $(LINUX_DIR)/.vermagic
endef