Skip to content

Commit 25d7b06

Browse files
authored
Merge pull request #1556 from JonathonHall-Purism/site-local-config
Makefile: Allow downstreams to put local customizations in site-local/config
2 parents fa2d4e8 + ab97b24 commit 25d7b06

File tree

44 files changed

+228
-1171
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+228
-1171
lines changed

Makefile

+18-7
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@ HEADS_GIT_VERSION := $(shell git describe --abbrev=7 --tags --dirty)
1212
# Override BRAND_NAME to set the name displayed in the UI, filenames, versions, etc.
1313
BRAND_NAME ?= Heads
1414

15-
CB_OUTPUT_BASENAME := $(shell echo $(BRAND_NAME) | tr A-Z a-z)-$(BOARD)-$(HEADS_GIT_VERSION)
16-
CB_OUTPUT_FILE := $(CB_OUTPUT_BASENAME).rom
17-
CB_OUTPUT_FILE_GPG_INJ := $(CB_OUTPUT_BASENAME)-gpg-injected.rom
18-
CB_BOOTBLOCK_FILE := $(CB_OUTPUT_BASENAME).bootblock
19-
CB_UPDATE_PKG_FILE := $(CB_OUTPUT_BASENAME).zip
20-
LB_OUTPUT_FILE := linuxboot-$(BOARD)-$(HEADS_GIT_VERSION).rom
21-
2215
all:
2316
-include .config
2417

@@ -59,6 +52,20 @@ CONFIG_LEGACY_FLASH := n
5952

6053
include $(CONFIG)
6154

55+
# Include site-local/config only if it exists, downstreams can set configs for
56+
# all boards, including overriding values specified by boards. site-local is
57+
# not a part of the upstream distribution but is for downstreams to insert
58+
# customizations at well-defined points, like in coreboot:
59+
# https://doc.coreboot.org/tutorial/managing_local_additions.html
60+
-include $(pwd)/site-local/config
61+
62+
CB_OUTPUT_BASENAME := $(shell echo $(BRAND_NAME) | tr A-Z a-z)-$(BOARD)-$(HEADS_GIT_VERSION)
63+
CB_OUTPUT_FILE := $(CB_OUTPUT_BASENAME).rom
64+
CB_OUTPUT_FILE_GPG_INJ := $(CB_OUTPUT_BASENAME)-gpg-injected.rom
65+
CB_BOOTBLOCK_FILE := $(CB_OUTPUT_BASENAME).bootblock
66+
CB_UPDATE_PKG_FILE := $(CB_OUTPUT_BASENAME).zip
67+
LB_OUTPUT_FILE := linuxboot-$(BOARD)-$(HEADS_GIT_VERSION).rom
68+
6269
# Unless otherwise specified, we are building for heads
6370
CONFIG_HEADS ?= y
6471

@@ -74,6 +81,10 @@ else
7481
$(error "Unexpected value of $$(CONFIG_TARGET_ARCH): $(CONFIG_TARGET_ARCH)")
7582
endif
7683

84+
ifneq "$(BOARD_TARGETS)" ""
85+
include targets/$(BOARD_TARGETS).mk
86+
endif
87+
7788
# Create directories if they don't already exist
7889
BUILD_LOG := $(shell mkdir -p "$(log_dir)")
7990
PACKAGES := $(shell mkdir -p "$(packages)")

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ QEMU:
8181

8282
OS booting can be tested in QEMU using a software TPM. HOTP can be tested by forwarding a USB token from the host to the guest.
8383

84-
For more information and setup instructions, refer to the [qemu-coreboot-fbwhiptail-tpm1-hotp documentation](boards/qemu-coreboot-fbwhiptail-tpm1-hotp/qemu-coreboot-fbwhiptail-tpm1-hotp.md).
84+
For more information and setup instructions, refer to the [qemu documentation](targets/qemu.md).
8585

8686
coreboot console messages
8787
---

boards/UNTESTED_t430-legacy-flash/UNTESTED_t430-legacy-flash.config

+1-16
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,4 @@ export CONFIG_FLASHROM_OPTIONS="--force --noverify-all -p internal --ifd --image
3232

3333
CONFIG_LEGACY_FLASH=y
3434

35-
# This board is "special" in that we need a 4MB top SPI flashable ROM.
36-
# This is enough to allow the board to boot into a minimal Heads and read the full Legacy
37-
# ROM from an external USB media.
38-
#
39-
# No tools outside of flashrom are provided here as you can see per activated modules above.
40-
# Everything Heads is now delegated to the Legacy ROM to be flashed
41-
# from xx30-flash ROMs.
42-
#
43-
# Instructions to mount USB thumb drive and flash legacy 12Mb image will be given on screen
44-
# per CONFIG_BOOTSCRIPT script above.
45-
#
46-
# Below, we just move produced ROM with a name appended with -top.rom for clarity.
47-
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
48-
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(board_build)/$(CB_OUTPUT_FILE)
49-
$(call do,MV 4MB top ROM,$@, mv $< $@)
50-
@sha256sum $@
35+
BOARD_TARGETS := legacy_flash

boards/UNTESTED_t530-dgpu-hotp-maximized/UNTESTED_t530-dgpu-hotp-maximized.config

+2-21
Original file line numberDiff line numberDiff line change
@@ -74,25 +74,6 @@ export CONFIG_FLASHROM_OPTIONS="--force --noverify-all -p internal"
7474
# reduced IFD ME region and expanded BIOS IFD region.
7575
# - blobs/xx30/extract.sh
7676
# To extract from backuped 8M (bottom SPI) ME binary, GBE and IFD blobs.
77-
#
78-
# This board has two SPI flash chips, an 8 MB that holds the IFD,
79-
# the ME image and part of the coreboot image, and a 4 MB one that
80-
# has the rest of the coreboot and the reset vector.
81-
#
82-
# As a consequence, this replaces the need of having to flash t530-flash
83-
# and expands available CBFS region (11.5Mb available CBFS space)
84-
#
85-
# When flashing via an external programmer it is easiest to have
86-
# two separate files for these pieces.
87-
all: $(board_build)/$(CB_OUTPUT_FILE)
88-
@sha256sum $@ | tee -a "$(HASHES)"
89-
90-
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom
91-
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom: $(board_build)/$(CB_OUTPUT_FILE)
92-
$(call do,DD 8MB,$@,dd of=$@ if=$< bs=65536 count=128 skip=0 status=none)
93-
@sha256sum $@ | tee -a "$(HASHES)"
9477

95-
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
96-
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(board_build)/$(CB_OUTPUT_FILE)
97-
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
98-
@sha256sum $@ | tee -a "$(HASHES)"
78+
# Generate split 4MB top / 8MB bottom ROMs
79+
BOARD_TARGETS := split_8mb4mb

boards/UNTESTED_t530-dgpu-maximized/UNTESTED_t530-dgpu-maximized.config

+2-21
Original file line numberDiff line numberDiff line change
@@ -74,25 +74,6 @@ export CONFIG_FLASHROM_OPTIONS="--force --noverify-all -p internal"
7474
# reduced IFD ME region and expanded BIOS IFD region.
7575
# - blobs/xx30/extract.sh
7676
# To extract from backuped 8M (bottom SPI) ME binary, GBE and IFD blobs.
77-
#
78-
# This board has two SPI flash chips, an 8 MB that holds the IFD,
79-
# the ME image and part of the coreboot image, and a 4 MB one that
80-
# has the rest of the coreboot and the reset vector.
81-
#
82-
# As a consequence, this replaces the need of having to flash t530-flash
83-
# and expands available CBFS region (11.5Mb available CBFS space)
84-
#
85-
# When flashing via an external programmer it is easiest to have
86-
# two separate files for these pieces.
87-
all: $(board_build)/$(CB_OUTPUT_FILE)
88-
@sha256sum $@ | tee -a "$(HASHES)"
89-
90-
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom
91-
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom: $(board_build)/$(CB_OUTPUT_FILE)
92-
$(call do,DD 8MB,$@,dd of=$@ if=$< bs=65536 count=128 skip=0 status=none)
93-
@sha256sum $@ | tee -a "$(HASHES)"
9477

95-
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
96-
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(board_build)/$(CB_OUTPUT_FILE)
97-
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
98-
@sha256sum $@ | tee -a "$(HASHES)"
78+
# Generate split 4MB top / 8MB bottom ROMs
79+
BOARD_TARGETS := split_8mb4mb

boards/UNTESTED_t530-hotp-maximized/UNTESTED_t530-hotp-maximized.config

+2-21
Original file line numberDiff line numberDiff line change
@@ -74,25 +74,6 @@ export CONFIG_FLASHROM_OPTIONS="--force --noverify-all -p internal"
7474
# reduced IFD ME region and expanded BIOS IFD region.
7575
# - blobs/xx30/extract.sh
7676
# To extract from backuped 8M (bottom SPI) ME binary, GBE and IFD blobs.
77-
#
78-
# This board has two SPI flash chips, an 8 MB that holds the IFD,
79-
# the ME image and part of the coreboot image, and a 4 MB one that
80-
# has the rest of the coreboot and the reset vector.
81-
#
82-
# As a consequence, this replaces the need of having to flash t530-flash
83-
# and expands available CBFS region (11.5Mb available CBFS space)
84-
#
85-
# When flashing via an external programmer it is easiest to have
86-
# two separate files for these pieces.
87-
all: $(board_build)/$(CB_OUTPUT_FILE)
88-
@sha256sum $@ | tee -a "$(HASHES)"
89-
90-
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom
91-
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom: $(board_build)/$(CB_OUTPUT_FILE)
92-
$(call do,DD 8MB,$@,dd of=$@ if=$< bs=65536 count=128 skip=0 status=none)
93-
@sha256sum $@ | tee -a "$(HASHES)"
9477

95-
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
96-
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(board_build)/$(CB_OUTPUT_FILE)
97-
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
98-
@sha256sum $@ | tee -a "$(HASHES)"
78+
# Generate split 4MB top / 8MB bottom ROMs
79+
BOARD_TARGETS := split_8mb4mb

boards/UNTESTED_t530-maximized/UNTESTED_t530-maximized.config

+2-21
Original file line numberDiff line numberDiff line change
@@ -74,25 +74,6 @@ export CONFIG_FLASHROM_OPTIONS="--force --noverify-all -p internal"
7474
# reduced IFD ME region and expanded BIOS IFD region.
7575
# - blobs/xx30/extract.sh
7676
# To extract from backuped 8M (bottom SPI) ME binary, GBE and IFD blobs.
77-
#
78-
# This board has two SPI flash chips, an 8 MB that holds the IFD,
79-
# the ME image and part of the coreboot image, and a 4 MB one that
80-
# has the rest of the coreboot and the reset vector.
81-
#
82-
# As a consequence, this replaces the need of having to flash t530-flash
83-
# and expands available CBFS region (11.5Mb available CBFS space)
84-
#
85-
# When flashing via an external programmer it is easiest to have
86-
# two separate files for these pieces.
87-
all: $(board_build)/$(CB_OUTPUT_FILE)
88-
@sha256sum $@ | tee -a "$(HASHES)"
89-
90-
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom
91-
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom: $(board_build)/$(CB_OUTPUT_FILE)
92-
$(call do,DD 8MB,$@,dd of=$@ if=$< bs=65536 count=128 skip=0 status=none)
93-
@sha256sum $@ | tee -a "$(HASHES)"
9477

95-
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
96-
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(board_build)/$(CB_OUTPUT_FILE)
97-
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
98-
@sha256sum $@ | tee -a "$(HASHES)"
78+
# Generate split 4MB top / 8MB bottom ROMs
79+
BOARD_TARGETS := split_8mb4mb

boards/UNTESTED_w530-dgpu-K1000m-hotp-maximized/UNTESTED_w530-dgpu-K1000m-hotp-maximized.config

+2-21
Original file line numberDiff line numberDiff line change
@@ -74,25 +74,6 @@ export CONFIG_FLASHROM_OPTIONS="--force --noverify-all -p internal"
7474
# reduced IFD ME region and expanded BIOS IFD region.
7575
# - blobs/xx30/extract.sh
7676
# To extract from backuped 8M (bottom SPI) ME binary, GBE and IFD blobs.
77-
#
78-
# This board has two SPI flash chips, an 8 MB that holds the IFD,
79-
# the ME image and part of the coreboot image, and a 4 MB one that
80-
# has the rest of the coreboot and the reset vector.
81-
#
82-
# As a consequence, this replaces the need of having to flash t530-flash
83-
# and expands available CBFS region (11.5Mb available CBFS space)
84-
#
85-
# When flashing via an external programmer it is easiest to have
86-
# two separate files for these pieces.
87-
all: $(board_build)/$(CB_OUTPUT_FILE)
88-
@sha256sum $@ | tee -a "$(HASHES)"
89-
90-
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom
91-
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom: $(board_build)/$(CB_OUTPUT_FILE)
92-
$(call do,DD 8MB,$@,dd of=$@ if=$< bs=65536 count=128 skip=0 status=none)
93-
@sha256sum $@ | tee -a "$(HASHES)"
9477

95-
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
96-
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(board_build)/$(CB_OUTPUT_FILE)
97-
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
98-
@sha256sum $@ | tee -a "$(HASHES)"
78+
# Generate split 4MB top / 8MB bottom ROMs
79+
BOARD_TARGETS := split_8mb4mb

boards/UNTESTED_w530-dgpu-K1000m-maximized/UNTESTED_w530-dgpu-K1000m-maximized.config

+2-21
Original file line numberDiff line numberDiff line change
@@ -74,25 +74,6 @@ export CONFIG_FLASHROM_OPTIONS="--force --noverify-all -p internal"
7474
# reduced IFD ME region and expanded BIOS IFD region.
7575
# - blobs/xx30/extract.sh
7676
# To extract from backuped 8M (bottom SPI) ME binary, GBE and IFD blobs.
77-
#
78-
# This board has two SPI flash chips, an 8 MB that holds the IFD,
79-
# the ME image and part of the coreboot image, and a 4 MB one that
80-
# has the rest of the coreboot and the reset vector.
81-
#
82-
# As a consequence, this replaces the need of having to flash t530-flash
83-
# and expands available CBFS region (11.5Mb available CBFS space)
84-
#
85-
# When flashing via an external programmer it is easiest to have
86-
# two separate files for these pieces.
87-
all: $(board_build)/$(CB_OUTPUT_FILE)
88-
@sha256sum $@ | tee -a "$(HASHES)"
89-
90-
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom
91-
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom: $(board_build)/$(CB_OUTPUT_FILE)
92-
$(call do,DD 8MB,$@,dd of=$@ if=$< bs=65536 count=128 skip=0 status=none)
93-
@sha256sum $@ | tee -a "$(HASHES)"
9477

95-
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
96-
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(board_build)/$(CB_OUTPUT_FILE)
97-
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
98-
@sha256sum $@ | tee -a "$(HASHES)"
78+
# Generate split 4MB top / 8MB bottom ROMs
79+
BOARD_TARGETS := split_8mb4mb

boards/UNTESTED_w530-dgpu-K2000m-hotp-maximized/UNTESTED_w530-dgpu-K2000m-hotp-maximized.config

+2-21
Original file line numberDiff line numberDiff line change
@@ -74,25 +74,6 @@ export CONFIG_FLASHROM_OPTIONS="--force --noverify-all -p internal"
7474
# reduced IFD ME region and expanded BIOS IFD region.
7575
# - blobs/xx30/extract.sh
7676
# To extract from backuped 8M (bottom SPI) ME binary, GBE and IFD blobs.
77-
#
78-
# This board has two SPI flash chips, an 8 MB that holds the IFD,
79-
# the ME image and part of the coreboot image, and a 4 MB one that
80-
# has the rest of the coreboot and the reset vector.
81-
#
82-
# As a consequence, this replaces the need of having to flash t530-flash
83-
# and expands available CBFS region (11.5Mb available CBFS space)
84-
#
85-
# When flashing via an external programmer it is easiest to have
86-
# two separate files for these pieces.
87-
all: $(board_build)/$(CB_OUTPUT_FILE)
88-
@sha256sum $@ | tee -a "$(HASHES)"
89-
90-
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom
91-
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom: $(board_build)/$(CB_OUTPUT_FILE)
92-
$(call do,DD 8MB,$@,dd of=$@ if=$< bs=65536 count=128 skip=0 status=none)
93-
@sha256sum $@ | tee -a "$(HASHES)"
9477

95-
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
96-
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(board_build)/$(CB_OUTPUT_FILE)
97-
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
98-
@sha256sum $@ | tee -a "$(HASHES)"
78+
# Generate split 4MB top / 8MB bottom ROMs
79+
BOARD_TARGETS := split_8mb4mb

boards/UNTESTED_w530-dgpu-K2000m-maximized/UNTESTED_w530-dgpu-K2000m-maximized.config

+2-21
Original file line numberDiff line numberDiff line change
@@ -74,25 +74,6 @@ export CONFIG_FLASHROM_OPTIONS="--force --noverify-all -p internal"
7474
# reduced IFD ME region and expanded BIOS IFD region.
7575
# - blobs/xx30/extract.sh
7676
# To extract from backuped 8M (bottom SPI) ME binary, GBE and IFD blobs.
77-
#
78-
# This board has two SPI flash chips, an 8 MB that holds the IFD,
79-
# the ME image and part of the coreboot image, and a 4 MB one that
80-
# has the rest of the coreboot and the reset vector.
81-
#
82-
# As a consequence, this replaces the need of having to flash t530-flash
83-
# and expands available CBFS region (11.5Mb available CBFS space)
84-
#
85-
# When flashing via an external programmer it is easiest to have
86-
# two separate files for these pieces.
87-
all: $(board_build)/$(CB_OUTPUT_FILE)
88-
@sha256sum $@ | tee -a "$(HASHES)"
89-
90-
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom
91-
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom: $(board_build)/$(CB_OUTPUT_FILE)
92-
$(call do,DD 8MB,$@,dd of=$@ if=$< bs=65536 count=128 skip=0 status=none)
93-
@sha256sum $@ | tee -a "$(HASHES)"
9477

95-
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
96-
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(board_build)/$(CB_OUTPUT_FILE)
97-
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
98-
@sha256sum $@ | tee -a "$(HASHES)"
78+
# Generate split 4MB top / 8MB bottom ROMs
79+
BOARD_TARGETS := split_8mb4mb

boards/UNTESTED_w530-hotp-maximized/UNTESTED_w530-hotp-maximized.config

+2-21
Original file line numberDiff line numberDiff line change
@@ -74,25 +74,6 @@ export CONFIG_FLASHROM_OPTIONS="--force --noverify-all -p internal"
7474
# reduced IFD ME region and expanded BIOS IFD region.
7575
# - blobs/xx30/extract.sh
7676
# To extract from backuped 8M (bottom SPI) ME binary, GBE and IFD blobs.
77-
#
78-
# This board has two SPI flash chips, an 8 MB that holds the IFD,
79-
# the ME image and part of the coreboot image, and a 4 MB one that
80-
# has the rest of the coreboot and the reset vector.
81-
#
82-
# As a consequence, this replaces the need of having to flash t530-flash
83-
# and expands available CBFS region (11.5Mb available CBFS space)
84-
#
85-
# When flashing via an external programmer it is easiest to have
86-
# two separate files for these pieces.
87-
all: $(board_build)/$(CB_OUTPUT_FILE)
88-
@sha256sum $@ | tee -a "$(HASHES)"
89-
90-
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom
91-
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom: $(board_build)/$(CB_OUTPUT_FILE)
92-
$(call do,DD 8MB,$@,dd of=$@ if=$< bs=65536 count=128 skip=0 status=none)
93-
@sha256sum $@ | tee -a "$(HASHES)"
9477

95-
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
96-
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(board_build)/$(CB_OUTPUT_FILE)
97-
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
98-
@sha256sum $@ | tee -a "$(HASHES)"
78+
# Generate split 4MB top / 8MB bottom ROMs
79+
BOARD_TARGETS := split_8mb4mb

boards/UNTESTED_w530-maximized/UNTESTED_w530-maximized.config

+2-21
Original file line numberDiff line numberDiff line change
@@ -74,25 +74,6 @@ export CONFIG_FLASHROM_OPTIONS="--force --noverify-all -p internal"
7474
# reduced IFD ME region and expanded BIOS IFD region.
7575
# - blobs/xx30/extract.sh
7676
# To extract from backuped 8M (bottom SPI) ME binary, GBE and IFD blobs.
77-
#
78-
# This board has two SPI flash chips, an 8 MB that holds the IFD,
79-
# the ME image and part of the coreboot image, and a 4 MB one that
80-
# has the rest of the coreboot and the reset vector.
81-
#
82-
# As a consequence, this replaces the need of having to flash t530-flash
83-
# and expands available CBFS region (11.5Mb available CBFS space)
84-
#
85-
# When flashing via an external programmer it is easiest to have
86-
# two separate files for these pieces.
87-
all: $(board_build)/$(CB_OUTPUT_FILE)
88-
@sha256sum $@ | tee -a "$(HASHES)"
89-
90-
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom
91-
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-bottom.rom: $(board_build)/$(CB_OUTPUT_FILE)
92-
$(call do,DD 8MB,$@,dd of=$@ if=$< bs=65536 count=128 skip=0 status=none)
93-
@sha256sum $@ | tee -a "$(HASHES)"
9477

95-
all: $(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
96-
$(board_build)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(board_build)/$(CB_OUTPUT_FILE)
97-
$(call do,DD 4MB,$@,dd of=$@ if=$< bs=65536 count=64 skip=128 status=none)
98-
@sha256sum $@ | tee -a "$(HASHES)"
78+
# Generate split 4MB top / 8MB bottom ROMs
79+
BOARD_TARGETS := split_8mb4mb

0 commit comments

Comments
 (0)