@@ -27,21 +27,30 @@ endef
2727# expansion during the first evaluation.
2828#
2929define define_module =
30- # Fetch and verify the source tar file
31- $(packages ) /$($1_tar ) :
30+ ifneq ("$($1_repo ) ","")
31+ # Checkout the tree instead and touch the canary file so that we know
32+ # that the files are all present. No signature hashes are checked in
33+ # this case, since we don't have a stable version to compare against.
34+ $(build ) /$($1_dir ) /.canary:
35+ git clone "$($1_repo ) " "$(build ) /$($1_dir ) "
36+ touch "$$@ "
37+ else
38+ # Fetch and verify the source tar file
39+ $(packages ) /$($1_tar ) :
3240 wget -O "$$@ " $($1_url )
33- $(packages ) /.$1_verify: $(packages ) /$($1_tar )
41+ $(packages ) /.$1_verify: $(packages ) /$($1_tar )
3442 echo "$($1_hash ) $$^ " | sha256sum --check -
3543 touch "$$@ "
3644
37- # Unpack the tar file and touch the canary so that we know
38- # that the files are all present
39- $(build ) /$($1_dir ) /.canary: $(packages ) /.$1_verify
45+ # Unpack the tar file and touch the canary so that we know
46+ # that the files are all present
47+ $(build ) /$($1_dir ) /.canary: $(packages ) /.$1_verify
4048 tar -xf "$(packages ) /$($1_tar ) " -C "$(build ) "
4149 if [ -r patches/$1-$($1_version ) .patch ]; then \
4250 ( cd $(build ) /$($1_dir ) ; patch -p1 ) < patches/$1-$($1_version ) .patch; \
4351 fi
4452 touch "$$@ "
53+ endif
4554
4655 # Copy our stored config file into the unpacked directory
4756 $(build ) /$($1_dir ) /.config: config/$1.config $(build ) /$($1_dir ) /.canary
0 commit comments