payloads/U-Boot: Use a phony target for checking out a revision

Change-Id: I5ea4df33545f69c06e4ae2158a1a6c14ead784a7
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/32304
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
This commit is contained in:
Arthur Heymans 2019-04-12 15:24:57 +02:00 committed by Patrick Georgi
parent 52cb8a7fec
commit f4af723fd8
1 changed files with 3 additions and 3 deletions

View File

@ -51,11 +51,11 @@ else
touch $(project_dir)/$(STABLE_COMMIT_ID)
endif
$(project_dir)/tag-$(TAG-y): fetch
checkout: fetch
echo " Checking out $(project_name) revision $(TAG-y)"
cd $(project_dir); git checkout master; git branch -D coreboot 2>/dev/null; git checkout -b coreboot $(TAG-y)
config: $(project_dir)/$(TAG-y)
config: checkout
rm -f $(project_config_file)
ifneq ($(CONFIG_PAYLOAD_CONFIGFILE),)
ifneq ("$(wildcard $(CONFIG_PAYLOAD_CONFIGFILE))","")
@ -83,4 +83,4 @@ distclean:
print-repo-info:
echo "$(project_git_repo) $(project_dir)"
.PHONY: config build clean distclean fetch print-repo-info
.PHONY: checkout config build clean distclean fetch print-repo-info