|
1 | 1 | modules += coreboot |
2 | 2 |
|
3 | | -coreboot_version := git |
| 3 | +#coreboot_version := git |
| 4 | +#coreboot_repo := https://github.com/osresearch/coreboot |
| 5 | +coreboot_version := 4.5 |
4 | 6 | coreboot_dir := coreboot-$(coreboot_version) |
5 | | -#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 |
| 7 | +coreboot_tar := coreboot-$(coreboot_version).tar.xz |
| 8 | +coreboot_url := https://www.coreboot.org/releases/$(coreboot_tar) |
| 9 | +coreboot_hash := 0ffdcb0d18f506c483f8fe99df54fe7d5769f834eeffdc23160b035fee2a6027 |
9 | 10 |
|
10 | | -coreboot_repo := https://github.com/osresearch/coreboot |
11 | 11 |
|
12 | 12 | # Coreboot builds are specialized on a per-target basis. |
13 | 13 | # The builds are done in a per-target subdirectory |
@@ -45,17 +45,22 @@ $(build)/$(coreboot_dir)/util/crossgcc/xgcc/bin/i386-elf-gcc: |
45 | 45 | # if we are using a tar file; git checkout will clone the submodule. |
46 | 46 | coreboot_depends := linux initrd |
47 | 47 |
|
48 | | -#coreboot_depends += coreboot_blobs |
49 | | -#modules += coreboot-blobs |
50 | | -# |
51 | | -#coreboot-blobs_version := 4.4 |
52 | | -#coreboot-blobs_tar := coreboot-blobs-$(coreboot-blobs_version).tar.xz |
53 | | -#coreboot-blobs_dir := coreboot-$(coreboot-blobs_version)/3rdparty/blobs |
54 | | -#coreboot-blobs_url := https://www.coreboot.org/releases/$(coreboot-blobs_tar) |
55 | | -#coreboot-blobs_hash := 43b993915c0f46a77ee7ddaa2dbe47581f399510632c62f2558dff931358d8ab |
56 | | -# |
| 48 | +ifneq "$(coreboot_version)" "git" |
| 49 | + |
| 50 | +# if we are not building from a git checkout, |
| 51 | +# we must also download the coreboot-blobs tree |
| 52 | +coreboot_depends += coreboot-blobs |
| 53 | +modules += coreboot-blobs |
| 54 | + |
| 55 | +coreboot-blobs_version := $(coreboot_version) |
| 56 | +coreboot-blobs_tar := coreboot-blobs-$(coreboot-blobs_version).tar.xz |
| 57 | +coreboot-blobs_dir := coreboot-$(coreboot-blobs_version)/3rdparty/blobs |
| 58 | +coreboot-blobs_url := https://www.coreboot.org/releases/$(coreboot-blobs_tar) |
| 59 | +coreboot-blobs_hash := 86dc3939f546fa9c3907434f9e8ee9e2362f9572b492fc92ea89ae313cf214e4 |
| 60 | + |
57 | 61 | ## there is nothing to build for the blobs, this should be |
58 | 62 | ## made easier to make happen |
59 | | -#coreboot-blobs_output := .built |
60 | | -#coreboot-blobs_configure := echo -e 'all:\n\ttouch .built' > Makefile |
| 63 | +coreboot-blobs_output := .built |
| 64 | +coreboot-blobs_configure := echo -e 'all:\n\ttouch .built' > Makefile |
61 | 65 |
|
| 66 | +endif |
0 commit comments