build: drop buildbot toolchain rebuild check when not using git
The check cleans and rebuilds the toolchain if it changed on update. When building from a source tarball, it is reasonable to expect that there will be no updates, so no rebuild check is necessary Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
4f277eb640
commit
dee8804de0
1 changed files with 2 additions and 0 deletions
|
@ -70,6 +70,7 @@ endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef CONFIG_BUILDBOT
|
ifdef CONFIG_BUILDBOT
|
||||||
|
ifneq ($(wildcard $(TOPDIR)/.git),)
|
||||||
$(TOOLCHAIN_DIR)/stamp/.ver_check: $(TMP_DIR)/.build
|
$(TOOLCHAIN_DIR)/stamp/.ver_check: $(TMP_DIR)/.build
|
||||||
cd "$(TOPDIR)"; git log --format=%h -1 toolchain > $(TMP_DIR)/.ver_check
|
cd "$(TOPDIR)"; git log --format=%h -1 toolchain > $(TMP_DIR)/.ver_check
|
||||||
cmp -s $(TMP_DIR)/.ver_check $@ || { \
|
cmp -s $(TMP_DIR)/.ver_check $@ || { \
|
||||||
|
@ -80,6 +81,7 @@ ifdef CONFIG_BUILDBOT
|
||||||
|
|
||||||
$(TOOLCHAIN_DIR)/info.mk $(STAGING_DIR)/.prepared: $(TOOLCHAIN_DIR)/stamp/.ver_check
|
$(TOOLCHAIN_DIR)/info.mk $(STAGING_DIR)/.prepared: $(TOOLCHAIN_DIR)/stamp/.ver_check
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
# prerequisites for the individual targets
|
# prerequisites for the individual targets
|
||||||
$(curdir)/ := .config prereq
|
$(curdir)/ := .config prereq
|
||||||
|
|
Loading…
Reference in a new issue