mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-18 20:47:55 +00:00
Makefile: Allow use of a specific hash for module using a git repo
`git reset --hard <commit_hash>` is a no-op when commit_hash is unset
This commit is contained in:
parent
9df4e48ff2
commit
00bb2b6c32
2
Makefile
2
Makefile
@ -258,7 +258,7 @@ define define_module =
|
||||
# this case, since we don't have a stable version to compare against.
|
||||
$(build)/$($1_base_dir)/.canary:
|
||||
git clone $($1_repo) "$(build)/$($1_base_dir)"
|
||||
cd $(build)/$($1_base_dir) && git submodule update --init --checkout
|
||||
cd $(build)/$($1_base_dir) && git reset --hard $($1_commit_hash) && git submodule update --init --checkout
|
||||
if [ -r patches/$($1_patch_name).patch ]; then \
|
||||
( cd $(build)/$($1_base_dir) ; patch -p1 ) \
|
||||
< patches/$($1_patch_name).patch \
|
||||
|
Loading…
Reference in New Issue
Block a user