Skip to content

Commit b228290

Browse files
committed
checkout coreboot from github, rather than downloading release file
1 parent 18c9b2d commit b228290

2 files changed

Lines changed: 20 additions & 9 deletions

File tree

Makefile

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,30 @@ endef
2727
# expansion during the first evaluation.
2828
#
2929
define 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

modules/coreboot

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ modules += coreboot
33
coreboot_version := git
44
coreboot_dir := coreboot-$(coreboot_version)
55
#coreboot_tar := coreboot-$(coreboot_version).tar.xz
6-
coreboot_tar := coreboot-4.4.tar.xz
7-
coreboot_url := https://www.coreboot.org/releases/$(coreboot_tar)
8-
coreboot_hash := ccfa3ea4e6b4a6ff3e4f1a8dc72d61f794af25bf0e73640e54b0b04733cc50a5
6+
#coreboot_tar := coreboot-4.4.tar.xz
7+
#coreboot_url := https://www.coreboot.org/releases/$(coreboot_tar)
8+
#coreboot_hash := ccfa3ea4e6b4a6ff3e4f1a8dc72d61f794af25bf0e73640e54b0b04733cc50a5
9+
10+
coreboot_repo := https://github.com/osresearch/coreboot
911

1012
coreboot_configure := make oldconfig
1113
coreboot_output := build/coreboot.rom

0 commit comments

Comments
 (0)