Sean Rhodes has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/61620 )
Change subject: payloads/tianocore: Set project_dir based on repo and branch ......................................................................
payloads/tianocore: Set project_dir based on repo and branch
Set the project directory based on the git repository name and branch. i.e. mrchromebox+uefipayload_202107
This allows switching between repositories without deleting anything.
Signed-off-by: Sean Rhodes sean@starlabs.systems Change-Id: I3cc274e7385dd71c2aae315162cc48444b7eaa5f --- M payloads/external/tianocore/Makefile 1 file changed, 2 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/20/61620/1
diff --git a/payloads/external/tianocore/Makefile b/payloads/external/tianocore/Makefile index 07c236a..8926739 100644 --- a/payloads/external/tianocore/Makefile +++ b/payloads/external/tianocore/Makefile @@ -4,7 +4,7 @@ export SHELL := env bash
project_name = Tianocore -project_dir = $(CURDIR)/tianocore +project_dir = $(CURDIR)/$(word 3,$(subst /, ,$(CONFIG_TIANOCORE_REPOSITORY)))+$(CONFIG_TIANOCORE_TAG_OR_REV)
BUILD_STR = -q BUILD_STR += -a IA32 -a X64 -t COREBOOT @@ -84,8 +84,7 @@ cd $(project_dir);
update: $(project_dir) - if ! git remote get-url origin | grep -i $(CONFIG_TIANOCORE_REPOSITORY); then \ - rm -rf $(project_dir); \ + if ! -d $(project_dir); then \ git clone --branch $(CONFIG_TIANOCORE_TAG_OR_REV) $(CONFIG_TIANOCORE_REPOSITORY) $(project_dir); \ fi cd $(project_dir); \