Skip to content

Commit

Permalink
Makefile: fix for multiple coreboot CI builds
Browse files Browse the repository at this point in the history
Another approach at #1449

Signed-off-by: Krystian Hebel <[email protected]>
  • Loading branch information
krystian-hebel authored and daringer committed Aug 7, 2023
1 parent fe71f1c commit 6d08031
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -303,12 +303,16 @@ define define_module =
elif [ "$$$$(cat "$$@")" != '$($1_repo)|$($1_commit_hash)' ]; then \
echo "Switching $1 to $($1_repo) at $($1_commit_hash)" && \
git -C "$(build)/$($1_base_dir)" reset --hard HEAD^ && \
git -C "$(build)/$($1_base_dir)" remote set-url origin $($1_repo) && \
git -C "$(build)/$($1_base_dir)" checkout origin > /dev/null 2>&1 && \
echo "git fetch $($1_repo) $($1_commit_hash) --recurse-submodules=no" && \
git -C "$(build)/$($1_base_dir)" fetch $($1_repo) $($1_commit_hash) --recurse-submodules=no && \
echo "git reset --hard $($1_commit_hash)" && \
git -C "$(build)/$($1_base_dir)" reset --hard $($1_commit_hash) && \
echo "git clean" && \
git -C "$(build)/$($1_base_dir)" clean -df && \
git -C "$(build)/$($1_base_dir)" clean -dffx payloads util/cbmem && \
echo "git submodule sync" && \
git -C "$(build)/$($1_base_dir)" submodule sync && \
echo "git submodule update" && \
git -C "$(build)/$($1_base_dir)" submodule update --init --checkout && \
echo -n '$($1_repo)|$($1_commit_hash)' > "$$@"; \
fi
Expand Down

0 comments on commit 6d08031

Please sign in to comment.