diff options
author | Felix Fietkau <nbd@nbd.name> | 2017-02-15 15:15:46 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2017-02-15 16:26:04 +0100 |
commit | bd3a5ca19006fdb144e34a96f6889f36aa147611 (patch) | |
tree | 9252a0cb7efa974dc13698453ae513ffc09a66b5 /toolchain | |
parent | 40374454f9fd0501451bd7fd30bec5a946078827 (diff) | |
download | mtk-20170518-bd3a5ca19006fdb144e34a96f6889f36aa147611.zip mtk-20170518-bd3a5ca19006fdb144e34a96f6889f36aa147611.tar.gz mtk-20170518-bd3a5ca19006fdb144e34a96f6889f36aa147611.tar.bz2 |
toolchain: force a full rebuild on buildbot if the toolchain changed
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'toolchain')
-rw-r--r-- | toolchain/Makefile | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/toolchain/Makefile b/toolchain/Makefile index 6ee8811..34abda2 100644 --- a/toolchain/Makefile +++ b/toolchain/Makefile @@ -69,6 +69,18 @@ ifneq ($(ARCH),) endif endif +ifdef CONFIG_BUILDBOT + $(STAGING_DIR)/.toolchain_ver_check: $(TMP_DIR)/.build + cd "$(TOPDIR)"; git log --format=%h -1 > $(TMP_DIR)/.toolchain_ver_check + cmp -s $(TMP_DIR)/.toolchain_ver_check $@ || \ + rm -rf $(BUILD_DIR) $(STAGING_DIR) $(TOOLCHAIN_DIR) $(BUILD_DIR_TOOLCHAIN) + mkdir -p $(STAGING_DIR) + mv $(TMP_DIR)/.toolchain_ver_check $@ + +$(STAGING_DIR)/.prepared: $(STAGING_DIR)/.toolchain_ver_check +$(TOOLCHAIN_DIR)/stamp/.gcc-initial_installed: $(STAGING_DIR)/.prepared +endif + # prerequisites for the individual targets $(curdir)/ := .config prereq $(curdir)//compile = $(STAGING_DIR)/.prepared $(TOOLCHAIN_DIR)/info.mk $(tools/stamp-compile) |