mirror of
https://github.com/linuxboot/linuxboot
synced 2024-11-21 23:59:59 +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.
|
||||
$(build)/$($1_dir)/.canary:
|
||||
git clone "$($1_repo)" "$(build)/$($1_dir)"
|
||||
if [ -r patches/$1.patch ]; then \
|
||||
( cd $(build)/$($1_dir) ; patch -p1 ) \
|
||||
< patches/$1.patch; \
|
||||
fi
|
||||
touch "$$@"
|
||||
else
|
||||
# Fetch and verify the source tar file
|
||||
@ -122,6 +126,10 @@ define define_module =
|
||||
$(build)/$($1_dir)/.configured
|
||||
$(MAKE) -C "$(build)/$($1_dir)" $($1_target)
|
||||
|
||||
$1.clean:
|
||||
-$(RM) "$(build)/$($1_dir)/.configured
|
||||
-$(MAKE) -C "$(build)/$($1_dir)" clean
|
||||
|
||||
.INTERMEDIATE: $1.intermediate
|
||||
endef
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user