mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-19 21:17:55 +00:00
Patch git checkouts, if a patch exists for a module. Add a per-module clean target.
This commit is contained in:
parent
2f2d68755f
commit
bac717407f
8
Makefile
8
Makefile
@ -71,6 +71,10 @@ define define_module =
|
|||||||
# this case, since we don't have a stable version to compare against.
|
# this case, since we don't have a stable version to compare against.
|
||||||
$(build)/$($1_dir)/.canary:
|
$(build)/$($1_dir)/.canary:
|
||||||
git clone "$($1_repo)" "$(build)/$($1_dir)"
|
git clone "$($1_repo)" "$(build)/$($1_dir)"
|
||||||
|
if [ -r patches/$1.patch ]; then \
|
||||||
|
( cd $(build)/$($1_dir) ; patch -p1 ) \
|
||||||
|
< patches/$1.patch; \
|
||||||
|
fi
|
||||||
touch "$$@"
|
touch "$$@"
|
||||||
else
|
else
|
||||||
# Fetch and verify the source tar file
|
# Fetch and verify the source tar file
|
||||||
@ -122,6 +126,10 @@ define define_module =
|
|||||||
$(build)/$($1_dir)/.configured
|
$(build)/$($1_dir)/.configured
|
||||||
$(MAKE) -C "$(build)/$($1_dir)" $($1_target)
|
$(MAKE) -C "$(build)/$($1_dir)" $($1_target)
|
||||||
|
|
||||||
|
$1.clean:
|
||||||
|
-$(RM) "$(build)/$($1_dir)/.configured
|
||||||
|
-$(MAKE) -C "$(build)/$($1_dir)" clean
|
||||||
|
|
||||||
.INTERMEDIATE: $1.intermediate
|
.INTERMEDIATE: $1.intermediate
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user