From: Petr Štetiar Date: Tue, 29 Mar 2022 02:38:21 +0000 (+0200) Subject: FIXME: toolchain/Makefile: do not ever remove any toolchain again X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=60c9139d55ee46293cb8ec05dff492c810069fb6;p=openwrt%2Fstaging%2Fynezz.git FIXME: toolchain/Makefile: do not ever remove any toolchain again Something is really not working as expected Signed-off-by: Petr Štetiar --- diff --git a/toolchain/Makefile b/toolchain/Makefile index 5dccf8f829..ea9b6d8955 100644 --- a/toolchain/Makefile +++ b/toolchain/Makefile @@ -66,20 +66,6 @@ ifneq ($(ARCH),) endif endif -ifdef CONFIG_BUILDBOT -ifneq ($(wildcard $(TOPDIR)/.git),) - $(TOOLCHAIN_DIR)/stamp/.ver_check: $(TMP_DIR)/.build - cd "$(TOPDIR)"; git log --format=%h -1 toolchain > $(TMP_DIR)/.ver_check - cmp -s $(TMP_DIR)/.ver_check $@ || { \ - rm -rf $(BUILD_DIR) $(STAGING_DIR) $(TOOLCHAIN_DIR) $(BUILD_DIR_TOOLCHAIN); \ - mkdir -p $(TOOLCHAIN_DIR)/stamp; \ - mv $(TMP_DIR)/.ver_check $@; \ - } - -$(TOOLCHAIN_DIR)/info.mk $(STAGING_DIR)/.prepared: $(TOOLCHAIN_DIR)/stamp/.ver_check -endif -endif - # prerequisites for the individual targets $(curdir)/ := .config prereq $(curdir)//compile = $(STAGING_DIR)/.prepared $(TOOLCHAIN_DIR)/info.mk $(tools/stamp-compile)