aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Gorski <jonas.gorski@gmail.com>2016-08-19 10:57:30 +0200
committerJonas Gorski <jonas.gorski@gmail.com>2016-08-19 11:02:47 +0200
commitf3923dab7b79e436292ce51c2cdc358dac2c81f3 (patch)
tree4cdcdb723ae45430f34c6f699d8bf565803711ed
parentc1f4040f709272bfd38db87fabb27637580e6e68 (diff)
downloadupstream-f3923dab7b79e436292ce51c2cdc358dac2c81f3.tar.gz
upstream-f3923dab7b79e436292ce51c2cdc358dac2c81f3.tar.bz2
upstream-f3923dab7b79e436292ce51c2cdc358dac2c81f3.zip
kernel: check the right directories for rebuild
Pass KERNEL_FILE_DEPENDS to rdep instead of PKG_FILE_DEPENDS, which is empty. Also don't pass $(CURDIR) as the directory to timestamp, as it would also pick up non kernel related changes like image building code. Should fix kernel being rebuild for unrelated changes, as well as not being rebuild for changes in target/linux/generic. Fixes: 22ef1c83b35c ("kernel: make the kernel build auto-clean the build dir like package build") Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
-rw-r--r--include/kernel-build.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/kernel-build.mk b/include/kernel-build.mk
index 0ba6db806d..f1372df7ce 100644
--- a/include/kernel-build.mk
+++ b/include/kernel-build.mk
@@ -65,7 +65,7 @@ ifeq ($(DUMP)$(filter prereq clean refresh update,$(MAKECMDGOALS)),)
ifneq ($(if $(QUILT),,$(CONFIG_AUTOREBUILD)),)
define Kernel/Autoclean
$(PKG_BUILD_DIR)/.dep_files: $(STAMP_PREPARED)
- $(call rdep,${CURDIR} $(PKG_FILE_DEPENDS),$(STAMP_PREPARED),$(PKG_BUILD_DIR)/.dep_files,-x "*/.dep_*")
+ $(call rdep,$(KERNEL_FILE_DEPENDS),$(STAMP_PREPARED),$(PKG_BUILD_DIR)/.dep_files,-x "*/.dep_*")
endef
endif
endif