flashrom-gerrit
Threads by month
- ----- 2025 -----
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
September 2025
- 1 participants
- 164 discussions
[L] Change in flashrom[main]: tests: Use SPDX in headers
by Antonio Vázquez Blanco (Code Review) Sept. 30, 2025
by Antonio Vázquez Blanco (Code Review) Sept. 30, 2025
Sept. 30, 2025
Attention is currently required from: Anastasia Klimchuk, Peter Marheine, Stefan Reinauer.
Antonio Vázquez Blanco has posted comments on this change by Anastasia Klimchuk. ( https://review.coreboot.org/c/flashrom/+/89361?usp=email )
Change subject: tests: Use SPDX in headers
......................................................................
Patch Set 2:
(1 comment)
File tests/io_mock.h:
https://review.coreboot.org/c/flashrom/+/89361/comment/66c3679a_6efbd95f?us… :
PS2, Line 7: *
The io_mock.h file still cotains license text outside the SPDX identifiers.
Is it possible to contemplate those conditions in an SPDX header? Are they redundant?
Also, I do not see where this has been licensed GPL-2.0-only. Let me clarify I do not have much background on this, it is just that I only see the BSD-3-Clause text written on this file.
Thanks!
--
To view, visit https://review.coreboot.org/c/flashrom/+/89361?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: flashrom
Gerrit-Branch: main
Gerrit-Change-Id: I3a8a8e59cbed871e0ecf953e547de56c0656e112
Gerrit-Change-Number: 89361
Gerrit-PatchSet: 2
Gerrit-Owner: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: Peter Marheine <pmarheine(a)chromium.org>
Gerrit-Reviewer: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
Gerrit-Attention: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Attention: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Attention: Peter Marheine <pmarheine(a)chromium.org>
Gerrit-Comment-Date: Tue, 30 Sep 2025 14:18:15 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
1
0
[L] Change in flashrom[main]: nv_sma_spi: Add Nvidia SMA Programmer
by Name of user not set (Code Review) Sept. 30, 2025
by Name of user not set (Code Review) Sept. 30, 2025
Sept. 30, 2025
Attention is currently required from: Anastasia Klimchuk, Gilbert Chen, Peter Marheine.
wthai(a)nvidia.com has posted comments on this change by wthai(a)nvidia.com. ( https://review.coreboot.org/c/flashrom/+/88816?usp=email )
Change subject: nv_sma_spi: Add Nvidia SMA Programmer
......................................................................
Patch Set 5:
(1 comment)
Patchset:
PS4:
> Gilbert, Willie, just wanted to check, is everything going alright?
Hi @aklm@chromium.org thanks for pinging, just got stuck in other.
--
To view, visit https://review.coreboot.org/c/flashrom/+/88816?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: flashrom
Gerrit-Branch: main
Gerrit-Change-Id: I6b2522788db3dcee2b30faff29f605cede8c0eaf
Gerrit-Change-Number: 88816
Gerrit-PatchSet: 5
Gerrit-Owner: wthai(a)nvidia.com
Gerrit-Reviewer: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: Peter Marheine <pmarheine(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Gilbert Chen
Gerrit-CC: Sumeet R.P. <sumeet4linux(a)gmail.com>
Gerrit-CC: sridhar siricilla <siricillasridhar(a)gmail.com>
Gerrit-Attention: Gilbert Chen
Gerrit-Attention: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Attention: Peter Marheine <pmarheine(a)chromium.org>
Gerrit-Comment-Date: Tue, 30 Sep 2025 13:38:01 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Anastasia Klimchuk <aklm(a)chromium.org>
1
0
[L] Change in flashrom[main]: nv_sma_spi: Add Nvidia SMA Programmer
by Name of user not set (Code Review) Sept. 30, 2025
by Name of user not set (Code Review) Sept. 30, 2025
Sept. 30, 2025
Attention is currently required from: Gilbert Chen, Peter Marheine, wthai(a)nvidia.com.
Hello Anastasia Klimchuk, Peter Marheine, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/flashrom/+/88816?usp=email
to look at the new patch set (#5).
The following approvals got outdated and were removed:
Verified+1 by build bot (Jenkins)
Change subject: nv_sma_spi: Add Nvidia SMA Programmer
......................................................................
nv_sma_spi: Add Nvidia SMA Programmer
Add initial support for System Management Agent (SMA) programmer.
SMA is a SOC which is working as a side band management on Nvidia
server board. One of its functionality is to flash firmware to other
components.
Test:
1. Build flashrom with this change.
2. Run operation: erase, write, read
3. All operations completed with expected performance.
NV_SMA_SPI has been tested with the following SPI flash models:
w25r128jw
w25r64jv
w25q16v
Change-Id: I6b2522788db3dcee2b30faff29f605cede8c0eaf
Co-Developed-by: Gilbert Chen <gilbertc(a)nvidia.com>
Co-Developed-by: Willie Thai <wthai(a)nvidia.com>
Signed-off-by: Willie Thai <wthai(a)nvidia.com>
Signed-off-by: Gilbert Chen <gilbertc(a)nvidia.com>
Signed-off-by: Willie Thai <wthai(a)nvidia.com>
---
M doc/classic_cli_manpage.rst
M doc/release_notes/devel.rst
M include/programmer.h
M meson.build
M meson_options.txt
A nv_sma_spi.c
M programmer_table.c
M test_build.sh
8 files changed, 774 insertions(+), 5 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/16/88816/5
--
To view, visit https://review.coreboot.org/c/flashrom/+/88816?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: flashrom
Gerrit-Branch: main
Gerrit-Change-Id: I6b2522788db3dcee2b30faff29f605cede8c0eaf
Gerrit-Change-Number: 88816
Gerrit-PatchSet: 5
Gerrit-Owner: wthai(a)nvidia.com
Gerrit-Reviewer: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: Peter Marheine <pmarheine(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Gilbert Chen
Gerrit-CC: Sumeet R.P. <sumeet4linux(a)gmail.com>
Gerrit-CC: sridhar siricilla <siricillasridhar(a)gmail.com>
Gerrit-Attention: wthai(a)nvidia.com
Gerrit-Attention: Gilbert Chen
Gerrit-Attention: Peter Marheine <pmarheine(a)chromium.org>
1
0
[L] Change in flashrom[main]: tests: Use SPDX in headers
by Anastasia Klimchuk (Code Review) Sept. 30, 2025
by Anastasia Klimchuk (Code Review) Sept. 30, 2025
Sept. 30, 2025
Attention is currently required from: Peter Marheine, Stefan Reinauer.
Hello Peter Marheine, Stefan Reinauer, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/flashrom/+/89361?usp=email
to look at the new patch set (#2).
The following approvals got outdated and were removed:
Verified+1 by build bot (Jenkins)
Change subject: tests: Use SPDX in headers
......................................................................
tests: Use SPDX in headers
Change-Id: I3a8a8e59cbed871e0ecf953e547de56c0656e112
Signed-off-by: Anastasia Klimchuk <aklm(a)flashrom.org>
---
M tests/ch341a_spi.c
M tests/chip.c
M tests/chip_wp.c
M tests/dediprog.c
M tests/dummyflasher.c
M tests/erase_func_algo.c
M tests/flashrom.c
M tests/helpers.c
M tests/include/test.h
M tests/io_mock.c
M tests/io_mock.h
M tests/io_real.c
M tests/io_real.h
M tests/layout.c
M tests/libflashrom.c
M tests/libusb_wraps.c
M tests/libusb_wraps.h
M tests/lifecycle.c
M tests/lifecycle.h
M tests/linux_mtd.c
M tests/linux_spi.c
M tests/mediatek_i2c_spi.c
M tests/meson.build
M tests/nicrealtek.c
M tests/parade_lspcon.c
M tests/raiden_debug_spi.c
M tests/realtek_mst_i2c_spi.c
M tests/selfcheck.c
M tests/spi25.c
M tests/spidriver.c
M tests/tests.c
M tests/tests.h
M tests/udelay.c
M tests/unittest_env.h
M tests/usb_unittests.h
M tests/wraps.h
36 files changed, 73 insertions(+), 352 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/61/89361/2
--
To view, visit https://review.coreboot.org/c/flashrom/+/89361?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: flashrom
Gerrit-Branch: main
Gerrit-Change-Id: I3a8a8e59cbed871e0ecf953e547de56c0656e112
Gerrit-Change-Number: 89361
Gerrit-PatchSet: 2
Gerrit-Owner: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: Peter Marheine <pmarheine(a)chromium.org>
Gerrit-Reviewer: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Attention: Peter Marheine <pmarheine(a)chromium.org>
1
0
[M] Change in flashrom[main]: Fail immediately when trying to write/erase wp regions
by Anastasia Klimchuk (Code Review) Sept. 30, 2025
by Anastasia Klimchuk (Code Review) Sept. 30, 2025
Sept. 30, 2025
Anastasia Klimchuk has submitted this change. ( https://review.coreboot.org/c/flashrom/+/89222?usp=email )
Change subject: Fail immediately when trying to write/erase wp regions
......................................................................
Fail immediately when trying to write/erase wp regions
This patch introduces chipset-level protections and adds checks that
abort writing to flash if any of the requested regions are
write-protected by chip, dynamically by a chipset, or are defined as
read-only.
This change is done so it's harder for user to brick his own platform.
Information about read-only regions can easily be missed as flashrom
can output a lot of information on screen. Even if you notice you might
not know if one of the regions you requested falls inside read-only
range, especially if using different names for those regions.
If you are flashing multiple regions or ones that partially overlap with
read-only parts then that could result in flashrom failing in the
middle leaving you in unknown state.
This patch was tested with multiple combinations of
unprotected/protected regions:
- dummy programmer
```sh
flashrom -p dummy:hwwp=yes,emulate=S25FL128L --wp-enable \
--wp-range 0x00040000,0x00fc0000 \
-l <(echo '00000000:0004ffff part1') -i part1 -E
```
- internal programmer on Protectli VP6670 with Dasharo UEFI firmware
with locked BIOS boot medium (PR0, part of bios region)
```sh
flashrom -p internal --ifd -i me -i bios -w test.rom
```
Normal reads and flashing non-protected regions was also tested.
Change-Id: Ia0dd847923e20ff0081ceae68984369e98952c2f
Signed-off-by: Michał Iwanicki <michal.iwanicki(a)3mdeb.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/89222
Reviewed-by: Sergii Dmytruk <sergii.dmytruk(a)3mdeb.com>
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
Reviewed-by: Anastasia Klimchuk <aklm(a)chromium.org>
---
M doc/release_notes/devel.rst
M flashrom.c
M ichspi.c
M include/layout.h
M include/programmer.h
5 files changed, 154 insertions(+), 12 deletions(-)
Approvals:
build bot (Jenkins): Verified
Anastasia Klimchuk: Looks good to me, approved
Sergii Dmytruk: Looks good to me, approved
diff --git a/doc/release_notes/devel.rst b/doc/release_notes/devel.rst
index 1e84aa8..3bd25de 100644
--- a/doc/release_notes/devel.rst
+++ b/doc/release_notes/devel.rst
@@ -23,3 +23,18 @@
* Intel Wildcat Lake chipset
* Eon EN25QX128A
* PUYA P25D80H
+
+New features
+============
+
+Fail immediately when trying to write/erase wp regions
+------------------------------------------------------
+
+This change is done so it's harder for user to brick his own platform.
+Information about read-only regions can easily be missed as flashrom
+can output a lot of information on screen. Even if you notice you might
+not know if one of the regions you requested falls inside read-only
+range, especially if using different names for those regions.
+If you are flashing multiple regions or ones that partially overlap with
+read-only parts then that could result in flashrom failing in the
+middle, leaving you in unknown state.
diff --git a/flashrom.c b/flashrom.c
index b64a2a0..ce844e1 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -384,6 +384,22 @@
}
}
+void get_protected_ranges(const struct flashctx *flash, struct protected_ranges *ranges) {
+ if ((flash->mst->buses_supported & BUS_PROG) && flash->mst->opaque.get_protected_ranges) {
+ flash->mst->opaque.get_protected_ranges(ranges);
+ } else {
+ *ranges = (const struct protected_ranges){ 0 };
+ }
+}
+
+void release_protected_ranges(const struct flashctx *flash, struct protected_ranges *ranges) {
+ for (int i = 0; i < ranges->count; ++i) {
+ free(ranges->ranges[i].name);
+ }
+ free(ranges->ranges);
+ *ranges = (const struct protected_ranges){ 0 };
+}
+
int check_for_unwritable_regions(const struct flashctx *flash, unsigned int start, unsigned int len)
{
struct flash_region region;
@@ -1817,6 +1833,58 @@
return ret;
}
+static bool can_change_target_regions(struct flashctx *flash) {
+ bool check_wp = false;
+ size_t wp_start, wp_len;
+ enum flashrom_wp_mode mode;
+ struct flashrom_wp_cfg *cfg = NULL;
+ const struct romentry *entry = NULL;
+ const struct flashrom_layout *const layout = get_layout(flash);
+ struct protected_ranges ranges;
+ get_protected_ranges(flash, &ranges);
+
+ if (flashrom_wp_cfg_new(&cfg) == FLASHROM_WP_OK &&
+ flashrom_wp_read_cfg(cfg, flash) == FLASHROM_WP_OK)
+ {
+ flashrom_wp_get_range(&wp_start, &wp_len, cfg);
+ mode = flashrom_wp_get_mode(cfg);
+ if (mode != FLASHROM_WP_MODE_DISABLED && wp_len != 0)
+ check_wp = true;
+ }
+ flashrom_wp_cfg_release(cfg);
+
+ while ((entry = layout_next_included(layout, entry))) {
+ if (!flash->flags.skip_unwritable_regions &&
+ check_for_unwritable_regions(flash, entry->region.start,
+ entry->region.end - entry->region.start + 1))
+ {
+ release_protected_ranges(flash, &ranges);
+ return false;
+ }
+ if (check_wp && entry->region.start < wp_start + wp_len && wp_start <= entry->region.end) {
+ msg_gerr("%s: cannot fully update %s region (%#08"PRIx32"..%#08"PRIx32")"
+ " due to chip's write-protection.\n", __func__,
+ entry->region.name, entry->region.start, entry->region.end);
+ release_protected_ranges(flash, &ranges);
+ return false;
+ }
+ for (int i = 0; i < ranges.count; ++i) {
+ struct flash_region prot = ranges.ranges[i];
+ if (prot.write_prot && prot.start <= entry->region.end &&
+ prot.end >= entry->region.start) {
+ msg_gerr("%s: cannot fully update %s region (%#08"PRIx32"..%#08"PRIx32")"
+ " due to chipset write-protection.\n", __func__,
+ entry->region.name, entry->region.start, entry->region.end);
+ release_protected_ranges(flash, &ranges);
+ return false;
+ }
+ }
+ }
+
+ release_protected_ranges(flash, &ranges);
+ return true;
+}
+
int prepare_flash_access(struct flashctx *const flash,
const bool read_it, const bool write_it,
const bool erase_it, const bool verify_it)
@@ -1831,6 +1899,13 @@
return 1;
}
+ if ((write_it || erase_it) && !flash->flags.force) {
+ if (!can_change_target_regions(flash)) {
+ msg_cerr("At least one target region is not fully writable. Aborting.\n");
+ return 1;
+ }
+ }
+
if (map_flash(flash) != 0)
return 1;
diff --git a/ichspi.c b/ichspi.c
index a4d783c..749fab9 100644
--- a/ichspi.c
+++ b/ichspi.c
@@ -1287,6 +1287,13 @@
struct fd_region fd_regions[MAX_FD_REGIONS];
};
+#define MAX_PR_REGISTERS 6
+struct flash_region ranges_data[MAX_PR_REGISTERS];
+struct protected_ranges ranges = {
+ .count = 0,
+ .ranges = ranges_data,
+};
+
static struct hwseq_data *get_hwseq_data_from_context(const struct flashctx *flash)
{
return flash->mst->opaque.data;
@@ -1469,6 +1476,21 @@
region->name = strdup(name);
}
+static void ich_get_protected_ranges(struct protected_ranges *protected_ranges) {
+ protected_ranges->count = ranges.count;
+ protected_ranges->ranges = malloc(sizeof(*ranges.ranges) * ranges.count);
+ for (int i = 0; i < ranges.count; ++i) {
+ if (ranges.ranges[i].name == NULL)
+ protected_ranges->ranges[i].name = strdup("");
+ else
+ protected_ranges->ranges[i].name = strdup(ranges.ranges[i].name);
+ protected_ranges->ranges[i].start = ranges.ranges[i].start;
+ protected_ranges->ranges[i].end = ranges.ranges[i].end;
+ protected_ranges->ranges[i].read_prot = ranges.ranges[i].read_prot;
+ protected_ranges->ranges[i].write_prot = ranges.ranges[i].write_prot;
+ }
+}
+
/* Given RDID info, return pointer to entry in flashchips[] */
static const struct flashchip *flash_id_to_entry(uint32_t mfg_id, uint32_t model_id)
{
@@ -1952,13 +1974,19 @@
#define ICH_PR_PERMS(pr) (((~((pr) >> PR_RP_OFF) & 1) << 0) | \
((~((pr) >> PR_WP_OFF) & 1) << 1))
-static enum ich_access_protection ich9_handle_pr(const size_t reg_pr0, unsigned int i)
+static enum ich_access_protection ich9_handle_pr(const size_t reg_pr0, unsigned int i, struct flash_region *prot)
{
uint8_t off = reg_pr0 + (i * 4);
uint32_t pr = mmio_readl(ich_spibar + off);
unsigned int rwperms_idx = ICH_PR_PERMS(pr);
enum ich_access_protection rwperms = access_perms_to_protection[rwperms_idx];
+ prot->name = NULL;
+ prot->start = ICH_FREG_BASE(pr);
+ prot->end = ICH_FREG_LIMIT(pr);
+ prot->write_prot = (rwperms == WRITE_PROT) || (rwperms == LOCKED);
+ prot->read_prot = (rwperms == READ_PROT) || (rwperms == LOCKED);
+
/* From 5 on we have GPR registers and start from 0 again. */
const char *const prefix = i >= 5 ? "G" : "";
if (i >= 5)
@@ -2012,16 +2040,17 @@
};
static const struct opaque_master opaque_master_ich_hwseq = {
- .max_data_read = 64,
- .max_data_write = 64,
- .probe = ich_hwseq_probe,
- .read = ich_hwseq_read,
- .write = ich_hwseq_write,
- .erase = ich_hwseq_block_erase,
- .read_register = ich_hwseq_read_status,
- .write_register = ich_hwseq_write_status,
- .get_region = ich_get_region,
- .shutdown = ich_hwseq_shutdown,
+ .max_data_read = 64,
+ .max_data_write = 64,
+ .probe = ich_hwseq_probe,
+ .read = ich_hwseq_read,
+ .write = ich_hwseq_write,
+ .erase = ich_hwseq_block_erase,
+ .read_register = ich_hwseq_read_status,
+ .write_register = ich_hwseq_write_status,
+ .get_region = ich_get_region,
+ .get_protected_ranges = ich_get_protected_ranges,
+ .shutdown = ich_hwseq_shutdown,
};
static int init_ich7_spi(void *spibar, enum ich_chipset ich_gen)
@@ -2248,7 +2277,13 @@
/* if not locked down try to disable PR locks first */
if (!ichspi_lock)
ich9_set_pr(reg_pr0, i, 0, 0);
- ich_spi_rw_restricted |= ich9_handle_pr(reg_pr0, i);
+ struct flash_region pr_region = { 0 };
+ enum ich_access_protection rwperms = ich9_handle_pr(reg_pr0, i, &pr_region);
+ ich_spi_rw_restricted |= rwperms;
+ if (rwperms != NO_PROT) {
+ ranges_data[ranges.count] = pr_region;
+ ranges.count += 1;
+ }
}
switch (ich_spi_rw_restricted) {
diff --git a/include/layout.h b/include/layout.h
index ce3dd4b..862f749 100644
--- a/include/layout.h
+++ b/include/layout.h
@@ -57,6 +57,11 @@
struct flash_region region;
};
+struct protected_ranges {
+ int count;
+ struct flash_region *ranges;
+};
+
struct flashrom_layout;
struct layout_include_args;
@@ -80,5 +85,11 @@
int layout_sanity_checks(const struct flashrom_flashctx *);
int check_for_unwritable_regions(const struct flashrom_flashctx *flash, unsigned int start, unsigned int len);
void get_flash_region(const struct flashrom_flashctx *flash, int addr, struct flash_region *region);
+/*
+ * Return chipset-level protections.
+ * ranges parameter has to be freed by the caller with release_protected_ranges
+ */
+void get_protected_ranges(const struct flashrom_flashctx *flash, struct protected_ranges *ranges);
+void release_protected_ranges(const struct flashrom_flashctx *flash, struct protected_ranges *ranges);
#endif /* !__LAYOUT_H__ */
diff --git a/include/programmer.h b/include/programmer.h
index 5951f6d..e169d15 100644
--- a/include/programmer.h
+++ b/include/programmer.h
@@ -397,6 +397,12 @@
enum flashrom_wp_result (*wp_read_cfg)(struct flashrom_wp_cfg *, struct flashctx *);
enum flashrom_wp_result (*wp_get_ranges)(struct flashrom_wp_ranges **, struct flashctx *);
void (*get_region)(const struct flashctx *flash, unsigned int addr, struct flash_region *region);
+ /*
+ * Returns chipset-level protections (e.g., when SPI controller refuses
+ * to pass read/write commands to the flash chip based on chipset's
+ * configuration)
+ */
+ void (*get_protected_ranges)(struct protected_ranges *);
int (*shutdown)(void *data);
void (*delay) (const struct flashctx *flash, unsigned int usecs);
void *data;
--
To view, visit https://review.coreboot.org/c/flashrom/+/89222?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: flashrom
Gerrit-Branch: main
Gerrit-Change-Id: Ia0dd847923e20ff0081ceae68984369e98952c2f
Gerrit-Change-Number: 89222
Gerrit-PatchSet: 11
Gerrit-Owner: Michał Iwanicki <michal.iwanicki(a)3mdeb.com>
Gerrit-Reviewer: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: Sergii Dmytruk <sergii.dmytruk(a)3mdeb.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Michał Kopeć <michal.kopec(a)3mdeb.com>
1
0
[M] Change in flashrom[main]: platform: Use SPDX in headers
by Antonio Vázquez Blanco (Code Review) Sept. 29, 2025
by Antonio Vázquez Blanco (Code Review) Sept. 29, 2025
Sept. 29, 2025
Antonio Vázquez Blanco has uploaded this change for review. ( https://review.coreboot.org/c/flashrom/+/89369?usp=email )
Change subject: platform: Use SPDX in headers
......................................................................
platform: Use SPDX in headers
Change-Id: I3322366ebfa7db1d1f1e0fe60c808efd839b2858
Signed-off-by: Antonio Vázquez <antoniovazquezblanco(a)gmail.com>
---
M include/platform/pci.h
M include/platform/swap.h
M include/platform/udelay.h
M platform/endian_big.c
M platform/endian_little.c
M platform/memaccess.c
M platform/udelay.c
M platform/udelay_dos.c
8 files changed, 27 insertions(+), 97 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/69/89369/1
diff --git a/include/platform/pci.h b/include/platform/pci.h
index 6abde59..fa0a4fb 100644
--- a/include/platform/pci.h
+++ b/include/platform/pci.h
@@ -1,18 +1,9 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2022 secunet Security Networks AG
- * (written by Thomas Heijligen <thomas.heijligen(a)secunet.com)
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2022 secunet Security Networks AG and Thomas Heijligen <thomas.heijligen(a)secunet.com>
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
*/
#ifndef __PLATFORM_PCI_H__
diff --git a/include/platform/swap.h b/include/platform/swap.h
index 12f3106..518339d 100644
--- a/include/platform/swap.h
+++ b/include/platform/swap.h
@@ -1,18 +1,10 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2009 Carl-Daniel Hailfinger
- * Copyright (C) 2022 secunet Security Networks AG
- * (written by Thomas Heijligen <thomas.heijligen(a)secunet.com)
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2009 Carl-Daniel Hailfinger
+ * SPDX-FileCopyrightText: 2022 secunet Security Networks AG and Thomas Heijligen <thomas.heijligen(a)secunet.com>
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
*/
/*
diff --git a/include/platform/udelay.h b/include/platform/udelay.h
index 4fcf792..f51ddfc 100644
--- a/include/platform/udelay.h
+++ b/include/platform/udelay.h
@@ -1,17 +1,8 @@
/*
* This file is part of the flashrom project.
*
- * Copyright 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
*/
#ifndef __UDELAY_H__
diff --git a/platform/endian_big.c b/platform/endian_big.c
index 4565534..97b0792 100644
--- a/platform/endian_big.c
+++ b/platform/endian_big.c
@@ -1,18 +1,9 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2022 secunet Security Networks AG
- * (written by Thomas Heijligen <thomas.heijligen(a)secunet.com)
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2022 secunet Security Networks AG and Thomas Heijligen <thomas.heijligen(a)secunet.com>
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
*/
#include "platform.h"
diff --git a/platform/endian_little.c b/platform/endian_little.c
index 690f383..03b2a9e 100644
--- a/platform/endian_little.c
+++ b/platform/endian_little.c
@@ -1,18 +1,9 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2022 secunet Security Networks AG
- * (written by Thomas Heijligen <thomas.heijligen(a)secunet.com)
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2022 secunet Security Networks AG and Thomas Heijligen <thomas.heijligen(a)secunet.com>
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
*/
#include "platform.h"
diff --git a/platform/memaccess.c b/platform/memaccess.c
index 8368121..789f7f7 100644
--- a/platform/memaccess.c
+++ b/platform/memaccess.c
@@ -1,18 +1,8 @@
/*
* This file is part of the flashrom project.
- *
- * Copyright (C) 2016 secunet Security Networks AG
- * (written by Thomas Heijligen <thomas.heijligen(a)secunet.com>)
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2016 secunet Security Networks AG and Thomas Heijligen <thomas.heijligen(a)secunet.com>
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
*/
#include "platform.h"
diff --git a/platform/udelay.c b/platform/udelay.c
index 562df3c..b0ff09c 100644
--- a/platform/udelay.c
+++ b/platform/udelay.c
@@ -1,19 +1,11 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2000 Silicon Integrated System Corporation
- * Copyright (C) 2009,2010 Carl-Daniel Hailfinger
- * Copyright (C) 2024 Google LLC
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2000 Silicon Integrated System Corporation
+ * SPDX-FileCopyrightText: 2009,2010 Carl-Daniel Hailfinger
+ * SPDX-FileCopyrightText: 2024 Google LLC
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
*/
#ifndef __LIBPAYLOAD__
diff --git a/platform/udelay_dos.c b/platform/udelay_dos.c
index 596994e..2b6896d 100644
--- a/platform/udelay_dos.c
+++ b/platform/udelay_dos.c
@@ -1,18 +1,10 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2000 Silicon Integrated System Corporation
- * Copyright (C) 2009,2010 Carl-Daniel Hailfinger
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2000 Silicon Integrated System Corporation
+ * SPDX-FileCopyrightText: 2009,2010 Carl-Daniel Hailfinger
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
*/
#include "platform/udelay.h"
--
To view, visit https://review.coreboot.org/c/flashrom/+/89369?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: flashrom
Gerrit-Branch: main
Gerrit-Change-Id: I3322366ebfa7db1d1f1e0fe60c808efd839b2858
Gerrit-Change-Number: 89369
Gerrit-PatchSet: 1
Gerrit-Owner: Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
1
0
[L] Change in flashrom[main]: flashchips: Use SPDX in headers
by Anastasia Klimchuk (Code Review) Sept. 28, 2025
by Anastasia Klimchuk (Code Review) Sept. 28, 2025
Sept. 28, 2025
Anastasia Klimchuk has submitted this change. ( https://review.coreboot.org/c/flashrom/+/89265?usp=email )
Change subject: flashchips: Use SPDX in headers
......................................................................
flashchips: Use SPDX in headers
Change-Id: I13f1a33de0fbc9ffd7fb24207be0dfd3f04c0bbf
Signed-off-by: Antonio Vázquez <antoniovazquezblanco(a)gmail.com>
Signed-off-by: Anastasia Klimchuk <aklm(a)flashrom.org>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/89265
Reviewed-by: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
---
M flashchips.c
M flashchips/amd.c
M flashchips/amic.c
M flashchips/atmel.c
M flashchips/boya_bohong.c
M flashchips/bright.c
M flashchips/catalyst.c
M flashchips/ene.c
M flashchips/eon.c
M flashchips/esi.c
M flashchips/esmt.c
M flashchips/fudan.c
M flashchips/fujitsu.c
M flashchips/gigadevice.c
M flashchips/hyundai.c
M flashchips/intel.c
M flashchips/issi.c
M flashchips/macronix.c
M flashchips/micron.c
M flashchips/micron_numonyx_st.c
M flashchips/mosel_vitelic.c
M flashchips/nantronics.c
M flashchips/pmc.c
M flashchips/puya.c
M flashchips/sanyo.c
M flashchips/sharp.c
M flashchips/spansion.c
M flashchips/sst.c
M flashchips/st.c
M flashchips/syncmos_mosel_vitelic.c
M flashchips/ti.c
M flashchips/winbond.c
M flashchips/xmc.c
M flashchips/xtx.c
M flashchips/zetta.c
M include/flashchips.h
36 files changed, 250 insertions(+), 539 deletions(-)
Approvals:
build bot (Jenkins): Verified
Stefan Reinauer: Looks good to me, approved
diff --git a/flashchips.c b/flashchips.c
index 615419d..8864eea 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -1,21 +1,13 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2000 Silicon Integrated System Corporation
- * Copyright (C) 2004 Tyan Corp
- * Copyright (C) 2005-2008 coresystems GmbH <stepan(a)openbios.org>
- * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
- * Copyright (C) 2009 Sean Nelson <audiohacked(a)gmail.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2000 Silicon Integrated System Corporation
+ * SPDX-FileCopyrightText: 2004 Tyan Corp
+ * SPDX-FileCopyrightText: 2005-2008 coresystems GmbH <stepan(a)openbios.org>
+ * SPDX-FileCopyrightText: 2006-2009 Carl-Daniel Hailfinger
+ * SPDX-FileCopyrightText: 2009 Sean Nelson <audiohacked(a)gmail.com>
+ * SPDX-FileCopyrightText: 2025 Google LLC
*/
#include "flash.h"
diff --git a/flashchips/amd.c b/flashchips/amd.c
index 46c8b6c..7888e50 100644
--- a/flashchips/amd.c
+++ b/flashchips/amd.c
@@ -1,21 +1,13 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2000 Silicon Integrated System Corporation
- * Copyright (C) 2004 Tyan Corp
- * Copyright (C) 2005-2008 coresystems GmbH <stepan(a)openbios.org>
- * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
- * Copyright (C) 2009 Sean Nelson <audiohacked(a)gmail.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2000 Silicon Integrated System Corporation
+ * SPDX-FileCopyrightText: 2004 Tyan Corp
+ * SPDX-FileCopyrightText: 2005-2008 coresystems GmbH <stepan(a)openbios.org>
+ * SPDX-FileCopyrightText: 2006-2009 Carl-Daniel Hailfinger
+ * SPDX-FileCopyrightText: 2009 Sean Nelson <audiohacked(a)gmail.com>
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
*/
{
diff --git a/flashchips/amic.c b/flashchips/amic.c
index b8e5395..657adc1 100644
--- a/flashchips/amic.c
+++ b/flashchips/amic.c
@@ -1,21 +1,13 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2000 Silicon Integrated System Corporation
- * Copyright (C) 2004 Tyan Corp
- * Copyright (C) 2005-2008 coresystems GmbH <stepan(a)openbios.org>
- * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
- * Copyright (C) 2009 Sean Nelson <audiohacked(a)gmail.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2000 Silicon Integrated System Corporation
+ * SPDX-FileCopyrightText: 2004 Tyan Corp
+ * SPDX-FileCopyrightText: 2005-2008 coresystems GmbH <stepan(a)openbios.org>
+ * SPDX-FileCopyrightText: 2006-2009 Carl-Daniel Hailfinger
+ * SPDX-FileCopyrightText: 2009 Sean Nelson <audiohacked(a)gmail.com>
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezlbanco(a)gmail.com>
*/
{
diff --git a/flashchips/atmel.c b/flashchips/atmel.c
index b7cff55..affd26c 100644
--- a/flashchips/atmel.c
+++ b/flashchips/atmel.c
@@ -1,21 +1,13 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2000 Silicon Integrated System Corporation
- * Copyright (C) 2004 Tyan Corp
- * Copyright (C) 2005-2008 coresystems GmbH <stepan(a)openbios.org>
- * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
- * Copyright (C) 2009 Sean Nelson <audiohacked(a)gmail.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2000 Silicon Integrated System Corporation
+ * SPDX-FileCopyrightText: 2004 Tyan Corp
+ * SPDX-FileCopyrightText: 2005-2008 coresystems GmbH <stepan(a)openbios.org>
+ * SPDX-FileCopyrightText: 2006-2009 Carl-Daniel Hailfinger
+ * SPDX-FileCopyrightText: 2009 Sean Nelson <audiohacked(a)gmail.com>
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
*/
{
diff --git a/flashchips/boya_bohong.c b/flashchips/boya_bohong.c
index 129fd10..b04074f 100644
--- a/flashchips/boya_bohong.c
+++ b/flashchips/boya_bohong.c
@@ -1,21 +1,13 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2000 Silicon Integrated System Corporation
- * Copyright (C) 2004 Tyan Corp
- * Copyright (C) 2005-2008 coresystems GmbH <stepan(a)openbios.org>
- * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
- * Copyright (C) 2009 Sean Nelson <audiohacked(a)gmail.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2000 Silicon Integrated System Corporation
+ * SPDX-FileCopyrightText: 2004 Tyan Corp
+ * SPDX-FileCopyrightText: 2005-2008 coresystems GmbH <stepan(a)openbios.org>
+ * SPDX-FileCopyrightText: 2006-2009 Carl-Daniel Hailfinger
+ * SPDX-FileCopyrightText: 2009 Sean Nelson <audiohacked(a)gmail.com>
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
*/
{
diff --git a/flashchips/bright.c b/flashchips/bright.c
index 83b2209..f5e18c4 100644
--- a/flashchips/bright.c
+++ b/flashchips/bright.c
@@ -1,21 +1,13 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2000 Silicon Integrated System Corporation
- * Copyright (C) 2004 Tyan Corp
- * Copyright (C) 2005-2008 coresystems GmbH <stepan(a)openbios.org>
- * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
- * Copyright (C) 2009 Sean Nelson <audiohacked(a)gmail.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2000 Silicon Integrated System Corporation
+ * SPDX-FileCopyrightText: 2004 Tyan Corp
+ * SPDX-FileCopyrightText: 2005-2008 coresystems GmbH <stepan(a)openbios.org>
+ * SPDX-FileCopyrightText: 2006-2009 Carl-Daniel Hailfinger
+ * SPDX-FileCopyrightText: 2009 Sean Nelson <audiohacked(a)gmail.com>
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
*/
{
diff --git a/flashchips/catalyst.c b/flashchips/catalyst.c
index 20eb8c8..23f9673 100644
--- a/flashchips/catalyst.c
+++ b/flashchips/catalyst.c
@@ -1,21 +1,13 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2000 Silicon Integrated System Corporation
- * Copyright (C) 2004 Tyan Corp
- * Copyright (C) 2005-2008 coresystems GmbH <stepan(a)openbios.org>
- * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
- * Copyright (C) 2009 Sean Nelson <audiohacked(a)gmail.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2000 Silicon Integrated System Corporation
+ * SPDX-FileCopyrightText: 2004 Tyan Corp
+ * SPDX-FileCopyrightText: 2005-2008 coresystems GmbH <stepan(a)openbios.org>
+ * SPDX-FileCopyrightText: 2006-2009 Carl-Daniel Hailfinger
+ * SPDX-FileCopyrightText: 2009 Sean Nelson <audiohacked(a)gmail.com>
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
*/
{
diff --git a/flashchips/ene.c b/flashchips/ene.c
index f96c5f5..c479db7 100644
--- a/flashchips/ene.c
+++ b/flashchips/ene.c
@@ -1,21 +1,13 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2000 Silicon Integrated System Corporation
- * Copyright (C) 2004 Tyan Corp
- * Copyright (C) 2005-2008 coresystems GmbH <stepan(a)openbios.org>
- * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
- * Copyright (C) 2009 Sean Nelson <audiohacked(a)gmail.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2000 Silicon Integrated System Corporation
+ * SPDX-FileCopyrightText: 2004 Tyan Corp
+ * SPDX-FileCopyrightText: 2005-2008 coresystems GmbH <stepan(a)openbios.org>
+ * SPDX-FileCopyrightText: 2006-2009 Carl-Daniel Hailfinger
+ * SPDX-FileCopyrightText: 2009 Sean Nelson <audiohacked(a)gmail.com>
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
*/
{
diff --git a/flashchips/eon.c b/flashchips/eon.c
index ea36164..0573635 100644
--- a/flashchips/eon.c
+++ b/flashchips/eon.c
@@ -1,21 +1,13 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2000 Silicon Integrated System Corporation
- * Copyright (C) 2004 Tyan Corp
- * Copyright (C) 2005-2008 coresystems GmbH <stepan(a)openbios.org>
- * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
- * Copyright (C) 2009 Sean Nelson <audiohacked(a)gmail.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2000 Silicon Integrated System Corporation
+ * SPDX-FileCopyrightText: 2004 Tyan Corp
+ * SPDX-FileCopyrightText: 2005-2008 coresystems GmbH <stepan(a)openbios.org>
+ * SPDX-FileCopyrightText: 2006-2009 Carl-Daniel Hailfinger
+ * SPDX-FileCopyrightText: 2009 Sean Nelson <audiohacked(a)gmail.com>
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
*/
{
diff --git a/flashchips/esi.c b/flashchips/esi.c
index 5e1e424..4bf2f4f 100644
--- a/flashchips/esi.c
+++ b/flashchips/esi.c
@@ -1,21 +1,13 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2000 Silicon Integrated System Corporation
- * Copyright (C) 2004 Tyan Corp
- * Copyright (C) 2005-2008 coresystems GmbH <stepan(a)openbios.org>
- * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
- * Copyright (C) 2009 Sean Nelson <audiohacked(a)gmail.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2000 Silicon Integrated System Corporation
+ * SPDX-FileCopyrightText: 2004 Tyan Corp
+ * SPDX-FileCopyrightText: 2005-2008 coresystems GmbH <stepan(a)openbios.org>
+ * SPDX-FileCopyrightText: 2006-2009 Carl-Daniel Hailfinger
+ * SPDX-FileCopyrightText: 2009 Sean Nelson <audiohacked(a)gmail.com>
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
*/
{
diff --git a/flashchips/esmt.c b/flashchips/esmt.c
index 5f34157..e014e4c 100644
--- a/flashchips/esmt.c
+++ b/flashchips/esmt.c
@@ -1,21 +1,13 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2000 Silicon Integrated System Corporation
- * Copyright (C) 2004 Tyan Corp
- * Copyright (C) 2005-2008 coresystems GmbH <stepan(a)openbios.org>
- * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
- * Copyright (C) 2009 Sean Nelson <audiohacked(a)gmail.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2000 Silicon Integrated System Corporation
+ * SPDX-FileCopyrightText: 2004 Tyan Corp
+ * SPDX-FileCopyrightText: 2005-2008 coresystems GmbH <stepan(a)openbios.org>
+ * SPDX-FileCopyrightText: 2006-2009 Carl-Daniel Hailfinger
+ * SPDX-FileCopyrightText: 2009 Sean Nelson <audiohacked(a)gmail.com>
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
*/
{
diff --git a/flashchips/fudan.c b/flashchips/fudan.c
index 99014d8..cbefb45 100644
--- a/flashchips/fudan.c
+++ b/flashchips/fudan.c
@@ -1,21 +1,13 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2000 Silicon Integrated System Corporation
- * Copyright (C) 2004 Tyan Corp
- * Copyright (C) 2005-2008 coresystems GmbH <stepan(a)openbios.org>
- * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
- * Copyright (C) 2009 Sean Nelson <audiohacked(a)gmail.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2000 Silicon Integrated System Corporation
+ * SPDX-FileCopyrightText: 2004 Tyan Corp
+ * SPDX-FileCopyrightText: 2005-2008 coresystems GmbH <stepan(a)openbios.org>
+ * SPDX-FileCopyrightText: 2006-2009 Carl-Daniel Hailfinger
+ * SPDX-FileCopyrightText: 2009 Sean Nelson <audiohacked(a)gmail.com>
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
*/
{
diff --git a/flashchips/fujitsu.c b/flashchips/fujitsu.c
index a9ad3cb..f2cca55 100644
--- a/flashchips/fujitsu.c
+++ b/flashchips/fujitsu.c
@@ -1,21 +1,13 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2000 Silicon Integrated System Corporation
- * Copyright (C) 2004 Tyan Corp
- * Copyright (C) 2005-2008 coresystems GmbH <stepan(a)openbios.org>
- * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
- * Copyright (C) 2009 Sean Nelson <audiohacked(a)gmail.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2000 Silicon Integrated System Corporation
+ * SPDX-FileCopyrightText: 2004 Tyan Corp
+ * SPDX-FileCopyrightText: 2005-2008 coresystems GmbH <stepan(a)openbios.org>
+ * SPDX-FileCopyrightText: 2006-2009 Carl-Daniel Hailfinger
+ * SPDX-FileCopyrightText: 2009 Sean Nelson <audiohacked(a)gmail.com>
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
*/
{
diff --git a/flashchips/gigadevice.c b/flashchips/gigadevice.c
index 12b24b0..0508677 100644
--- a/flashchips/gigadevice.c
+++ b/flashchips/gigadevice.c
@@ -1,21 +1,13 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2000 Silicon Integrated System Corporation
- * Copyright (C) 2004 Tyan Corp
- * Copyright (C) 2005-2008 coresystems GmbH <stepan(a)openbios.org>
- * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
- * Copyright (C) 2009 Sean Nelson <audiohacked(a)gmail.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2000 Silicon Integrated System Corporation
+ * SPDX-FileCopyrightText: 2004 Tyan Corp
+ * SPDX-FileCopyrightText: 2005-2008 coresystems GmbH <stepan(a)openbios.org>
+ * SPDX-FileCopyrightText: 2006-2009 Carl-Daniel Hailfinger
+ * SPDX-FileCopyrightText: 2009 Sean Nelson <audiohacked(a)gmail.com>
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
*/
{
diff --git a/flashchips/hyundai.c b/flashchips/hyundai.c
index 150837c..af58309 100644
--- a/flashchips/hyundai.c
+++ b/flashchips/hyundai.c
@@ -1,21 +1,13 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2000 Silicon Integrated System Corporation
- * Copyright (C) 2004 Tyan Corp
- * Copyright (C) 2005-2008 coresystems GmbH <stepan(a)openbios.org>
- * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
- * Copyright (C) 2009 Sean Nelson <audiohacked(a)gmail.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2000 Silicon Integrated System Corporation
+ * SPDX-FileCopyrightText: 2004 Tyan Corp
+ * SPDX-FileCopyrightText: 2005-2008 coresystems GmbH <stepan(a)openbios.org>
+ * SPDX-FileCopyrightText: 2006-2009 Carl-Daniel Hailfinger
+ * SPDX-FileCopyrightText: 2009 Sean Nelson <audiohacked(a)gmail.com>
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
*/
{
diff --git a/flashchips/intel.c b/flashchips/intel.c
index a8dc9bf..a8aac11 100644
--- a/flashchips/intel.c
+++ b/flashchips/intel.c
@@ -1,21 +1,13 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2000 Silicon Integrated System Corporation
- * Copyright (C) 2004 Tyan Corp
- * Copyright (C) 2005-2008 coresystems GmbH <stepan(a)openbios.org>
- * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
- * Copyright (C) 2009 Sean Nelson <audiohacked(a)gmail.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2000 Silicon Integrated System Corporation
+ * SPDX-FileCopyrightText: 2004 Tyan Corp
+ * SPDX-FileCopyrightText: 2005-2008 coresystems GmbH <stepan(a)openbios.org>
+ * SPDX-FileCopyrightText: 2006-2009 Carl-Daniel Hailfinger
+ * SPDX-FileCopyrightText: 2009 Sean Nelson <audiohacked(a)gmail.com>
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
*/
{
diff --git a/flashchips/issi.c b/flashchips/issi.c
index ca7e192..50db1cc 100644
--- a/flashchips/issi.c
+++ b/flashchips/issi.c
@@ -1,21 +1,13 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2000 Silicon Integrated System Corporation
- * Copyright (C) 2004 Tyan Corp
- * Copyright (C) 2005-2008 coresystems GmbH <stepan(a)openbios.org>
- * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
- * Copyright (C) 2009 Sean Nelson <audiohacked(a)gmail.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2000 Silicon Integrated System Corporation
+ * SPDX-FileCopyrightText: 2004 Tyan Corp
+ * SPDX-FileCopyrightText: 2005-2008 coresystems GmbH <stepan(a)openbios.org>
+ * SPDX-FileCopyrightText: 2006-2009 Carl-Daniel Hailfinger
+ * SPDX-FileCopyrightText: 2009 Sean Nelson <audiohacked(a)gmail.com>
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
*/
{
diff --git a/flashchips/macronix.c b/flashchips/macronix.c
index d72e87a..62a498f 100644
--- a/flashchips/macronix.c
+++ b/flashchips/macronix.c
@@ -1,21 +1,13 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2000 Silicon Integrated System Corporation
- * Copyright (C) 2004 Tyan Corp
- * Copyright (C) 2005-2008 coresystems GmbH <stepan(a)openbios.org>
- * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
- * Copyright (C) 2009 Sean Nelson <audiohacked(a)gmail.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2000 Silicon Integrated System Corporation
+ * SPDX-FileCopyrightText: 2004 Tyan Corp
+ * SPDX-FileCopyrightText: 2005-2008 coresystems GmbH <stepan(a)openbios.org>
+ * SPDX-FileCopyrightText: 2006-2009 Carl-Daniel Hailfinger
+ * SPDX-FileCopyrightText: 2009 Sean Nelson <audiohacked(a)gmail.com>
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
*/
{
diff --git a/flashchips/micron.c b/flashchips/micron.c
index fc95829..cee17ba 100644
--- a/flashchips/micron.c
+++ b/flashchips/micron.c
@@ -1,21 +1,13 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2000 Silicon Integrated System Corporation
- * Copyright (C) 2004 Tyan Corp
- * Copyright (C) 2005-2008 coresystems GmbH <stepan(a)openbios.org>
- * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
- * Copyright (C) 2009 Sean Nelson <audiohacked(a)gmail.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2000 Silicon Integrated System Corporation
+ * SPDX-FileCopyrightText: 2004 Tyan Corp
+ * SPDX-FileCopyrightText: 2005-2008 coresystems GmbH <stepan(a)openbios.org>
+ * SPDX-FileCopyrightText: 2006-2009 Carl-Daniel Hailfinger
+ * SPDX-FileCopyrightText: 2009 Sean Nelson <audiohacked(a)gmail.com>
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
*/
{
diff --git a/flashchips/micron_numonyx_st.c b/flashchips/micron_numonyx_st.c
index 5aaf06a..bb04e40 100644
--- a/flashchips/micron_numonyx_st.c
+++ b/flashchips/micron_numonyx_st.c
@@ -1,21 +1,13 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2000 Silicon Integrated System Corporation
- * Copyright (C) 2004 Tyan Corp
- * Copyright (C) 2005-2008 coresystems GmbH <stepan(a)openbios.org>
- * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
- * Copyright (C) 2009 Sean Nelson <audiohacked(a)gmail.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2000 Silicon Integrated System Corporation
+ * SPDX-FileCopyrightText: 2004 Tyan Corp
+ * SPDX-FileCopyrightText: 2005-2008 coresystems GmbH <stepan(a)openbios.org>
+ * SPDX-FileCopyrightText: 2006-2009 Carl-Daniel Hailfinger
+ * SPDX-FileCopyrightText: 2009 Sean Nelson <audiohacked(a)gmail.com>
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
*/
/* The ST M25P05 is a bit of a problem. It has the same ID as the
diff --git a/flashchips/mosel_vitelic.c b/flashchips/mosel_vitelic.c
index b458414..661d6b4 100644
--- a/flashchips/mosel_vitelic.c
+++ b/flashchips/mosel_vitelic.c
@@ -1,21 +1,13 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2000 Silicon Integrated System Corporation
- * Copyright (C) 2004 Tyan Corp
- * Copyright (C) 2005-2008 coresystems GmbH <stepan(a)openbios.org>
- * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
- * Copyright (C) 2009 Sean Nelson <audiohacked(a)gmail.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2000 Silicon Integrated System Corporation
+ * SPDX-FileCopyrightText: 2004 Tyan Corp
+ * SPDX-FileCopyrightText: 2005-2008 coresystems GmbH <stepan(a)openbios.org>
+ * SPDX-FileCopyrightText: 2006-2009 Carl-Daniel Hailfinger
+ * SPDX-FileCopyrightText: 2009 Sean Nelson <audiohacked(a)gmail.com>
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
*/
{
diff --git a/flashchips/nantronics.c b/flashchips/nantronics.c
index 29eb4aa..b380e2e 100644
--- a/flashchips/nantronics.c
+++ b/flashchips/nantronics.c
@@ -1,21 +1,13 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2000 Silicon Integrated System Corporation
- * Copyright (C) 2004 Tyan Corp
- * Copyright (C) 2005-2008 coresystems GmbH <stepan(a)openbios.org>
- * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
- * Copyright (C) 2009 Sean Nelson <audiohacked(a)gmail.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2000 Silicon Integrated System Corporation
+ * SPDX-FileCopyrightText: 2004 Tyan Corp
+ * SPDX-FileCopyrightText: 2005-2008 coresystems GmbH <stepan(a)openbios.org>
+ * SPDX-FileCopyrightText: 2006-2009 Carl-Daniel Hailfinger
+ * SPDX-FileCopyrightText: 2009 Sean Nelson <audiohacked(a)gmail.com>
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
*/
{
diff --git a/flashchips/pmc.c b/flashchips/pmc.c
index 1bbc40c..649a8f4 100644
--- a/flashchips/pmc.c
+++ b/flashchips/pmc.c
@@ -1,21 +1,13 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2000 Silicon Integrated System Corporation
- * Copyright (C) 2004 Tyan Corp
- * Copyright (C) 2005-2008 coresystems GmbH <stepan(a)openbios.org>
- * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
- * Copyright (C) 2009 Sean Nelson <audiohacked(a)gmail.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2000 Silicon Integrated System Corporation
+ * SPDX-FileCopyrightText: 2004 Tyan Corp
+ * SPDX-FileCopyrightText: 2005-2008 coresystems GmbH <stepan(a)openbios.org>
+ * SPDX-FileCopyrightText: 2006-2009 Carl-Daniel Hailfinger
+ * SPDX-FileCopyrightText: 2009 Sean Nelson <audiohacked(a)gmail.com>
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
*/
{
diff --git a/flashchips/puya.c b/flashchips/puya.c
index 685e121..37e071e 100644
--- a/flashchips/puya.c
+++ b/flashchips/puya.c
@@ -1,21 +1,13 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2000 Silicon Integrated System Corporation
- * Copyright (C) 2004 Tyan Corp
- * Copyright (C) 2005-2008 coresystems GmbH <stepan(a)openbios.org>
- * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
- * Copyright (C) 2009 Sean Nelson <audiohacked(a)gmail.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2000 Silicon Integrated System Corporation
+ * SPDX-FileCopyrightText: 2004 Tyan Corp
+ * SPDX-FileCopyrightText: 2005-2008 coresystems GmbH <stepan(a)openbios.org>
+ * SPDX-FileCopyrightText: 2006-2009 Carl-Daniel Hailfinger
+ * SPDX-FileCopyrightText: 2009 Sean Nelson <audiohacked(a)gmail.com>
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
*/
{
diff --git a/flashchips/sanyo.c b/flashchips/sanyo.c
index 5a85dd9..8db0c2d 100644
--- a/flashchips/sanyo.c
+++ b/flashchips/sanyo.c
@@ -1,21 +1,13 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2000 Silicon Integrated System Corporation
- * Copyright (C) 2004 Tyan Corp
- * Copyright (C) 2005-2008 coresystems GmbH <stepan(a)openbios.org>
- * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
- * Copyright (C) 2009 Sean Nelson <audiohacked(a)gmail.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2000 Silicon Integrated System Corporation
+ * SPDX-FileCopyrightText: 2004 Tyan Corp
+ * SPDX-FileCopyrightText: 2005-2008 coresystems GmbH <stepan(a)openbios.org>
+ * SPDX-FileCopyrightText: 2006-2009 Carl-Daniel Hailfinger
+ * SPDX-FileCopyrightText: 2009 Sean Nelson <audiohacked(a)gmail.com>
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
*/
{
diff --git a/flashchips/sharp.c b/flashchips/sharp.c
index e3f69ab..0173f68 100644
--- a/flashchips/sharp.c
+++ b/flashchips/sharp.c
@@ -1,21 +1,13 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2000 Silicon Integrated System Corporation
- * Copyright (C) 2004 Tyan Corp
- * Copyright (C) 2005-2008 coresystems GmbH <stepan(a)openbios.org>
- * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
- * Copyright (C) 2009 Sean Nelson <audiohacked(a)gmail.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2000 Silicon Integrated System Corporation
+ * SPDX-FileCopyrightText: 2004 Tyan Corp
+ * SPDX-FileCopyrightText: 2005-2008 coresystems GmbH <stepan(a)openbios.org>
+ * SPDX-FileCopyrightText: 2006-2009 Carl-Daniel Hailfinger
+ * SPDX-FileCopyrightText: 2009 Sean Nelson <audiohacked(a)gmail.com>
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
*/
{
diff --git a/flashchips/spansion.c b/flashchips/spansion.c
index 1a3c4cc..deb5c29 100644
--- a/flashchips/spansion.c
+++ b/flashchips/spansion.c
@@ -1,21 +1,13 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2000 Silicon Integrated System Corporation
- * Copyright (C) 2004 Tyan Corp
- * Copyright (C) 2005-2008 coresystems GmbH <stepan(a)openbios.org>
- * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
- * Copyright (C) 2009 Sean Nelson <audiohacked(a)gmail.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2000 Silicon Integrated System Corporation
+ * SPDX-FileCopyrightText: 2004 Tyan Corp
+ * SPDX-FileCopyrightText: 2005-2008 coresystems GmbH <stepan(a)openbios.org>
+ * SPDX-FileCopyrightText: 2006-2009 Carl-Daniel Hailfinger
+ * SPDX-FileCopyrightText: 2009 Sean Nelson <audiohacked(a)gmail.com>
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
*/
{
diff --git a/flashchips/sst.c b/flashchips/sst.c
index 41f8302..84aeb34 100644
--- a/flashchips/sst.c
+++ b/flashchips/sst.c
@@ -1,21 +1,13 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2000 Silicon Integrated System Corporation
- * Copyright (C) 2004 Tyan Corp
- * Copyright (C) 2005-2008 coresystems GmbH <stepan(a)openbios.org>
- * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
- * Copyright (C) 2009 Sean Nelson <audiohacked(a)gmail.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2000 Silicon Integrated System Corporation
+ * SPDX-FileCopyrightText: 2004 Tyan Corp
+ * SPDX-FileCopyrightText: 2005-2008 coresystems GmbH <stepan(a)openbios.org>
+ * SPDX-FileCopyrightText: 2006-2009 Carl-Daniel Hailfinger
+ * SPDX-FileCopyrightText: 2009 Sean Nelson <audiohacked(a)gmail.com>
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
*/
{
diff --git a/flashchips/st.c b/flashchips/st.c
index edb54ae..a353c7d 100644
--- a/flashchips/st.c
+++ b/flashchips/st.c
@@ -1,21 +1,13 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2000 Silicon Integrated System Corporation
- * Copyright (C) 2004 Tyan Corp
- * Copyright (C) 2005-2008 coresystems GmbH <stepan(a)openbios.org>
- * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
- * Copyright (C) 2009 Sean Nelson <audiohacked(a)gmail.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2000 Silicon Integrated System Corporation
+ * SPDX-FileCopyrightText: 2004 Tyan Corp
+ * SPDX-FileCopyrightText: 2005-2008 coresystems GmbH <stepan(a)openbios.org>
+ * SPDX-FileCopyrightText: 2006-2009 Carl-Daniel Hailfinger
+ * SPDX-FileCopyrightText: 2009 Sean Nelson <audiohacked(a)gmail.com>
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
*/
{
diff --git a/flashchips/syncmos_mosel_vitelic.c b/flashchips/syncmos_mosel_vitelic.c
index 658274d..f4f6dfa 100644
--- a/flashchips/syncmos_mosel_vitelic.c
+++ b/flashchips/syncmos_mosel_vitelic.c
@@ -1,21 +1,13 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2000 Silicon Integrated System Corporation
- * Copyright (C) 2004 Tyan Corp
- * Copyright (C) 2005-2008 coresystems GmbH <stepan(a)openbios.org>
- * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
- * Copyright (C) 2009 Sean Nelson <audiohacked(a)gmail.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2000 Silicon Integrated System Corporation
+ * SPDX-FileCopyrightText: 2004 Tyan Corp
+ * SPDX-FileCopyrightText: 2005-2008 coresystems GmbH <stepan(a)openbios.org>
+ * SPDX-FileCopyrightText: 2006-2009 Carl-Daniel Hailfinger
+ * SPDX-FileCopyrightText: 2009 Sean Nelson <audiohacked(a)gmail.com>
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
*/
{
diff --git a/flashchips/ti.c b/flashchips/ti.c
index cdab557..c7ecb16 100644
--- a/flashchips/ti.c
+++ b/flashchips/ti.c
@@ -1,21 +1,13 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2000 Silicon Integrated System Corporation
- * Copyright (C) 2004 Tyan Corp
- * Copyright (C) 2005-2008 coresystems GmbH <stepan(a)openbios.org>
- * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
- * Copyright (C) 2009 Sean Nelson <audiohacked(a)gmail.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2000 Silicon Integrated System Corporation
+ * SPDX-FileCopyrightText: 2004 Tyan Corp
+ * SPDX-FileCopyrightText: 2005-2008 coresystems GmbH <stepan(a)openbios.org>
+ * SPDX-FileCopyrightText: 2006-2009 Carl-Daniel Hailfinger
+ * SPDX-FileCopyrightText: 2009 Sean Nelson <audiohacked(a)gmail.com>
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
*/
{
diff --git a/flashchips/winbond.c b/flashchips/winbond.c
index 39dc65d..bea42e6 100644
--- a/flashchips/winbond.c
+++ b/flashchips/winbond.c
@@ -1,21 +1,13 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2000 Silicon Integrated System Corporation
- * Copyright (C) 2004 Tyan Corp
- * Copyright (C) 2005-2008 coresystems GmbH <stepan(a)openbios.org>
- * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
- * Copyright (C) 2009 Sean Nelson <audiohacked(a)gmail.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2000 Silicon Integrated System Corporation
+ * SPDX-FileCopyrightText: 2004 Tyan Corp
+ * SPDX-FileCopyrightText: 2005-2008 coresystems GmbH <stepan(a)openbios.org>
+ * SPDX-FileCopyrightText: 2006-2009 Carl-Daniel Hailfinger
+ * SPDX-FileCopyrightText: 2009 Sean Nelson <audiohacked(a)gmail.com>
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
*/
{
diff --git a/flashchips/xmc.c b/flashchips/xmc.c
index a4e730e..2828ed3 100644
--- a/flashchips/xmc.c
+++ b/flashchips/xmc.c
@@ -1,21 +1,13 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2000 Silicon Integrated System Corporation
- * Copyright (C) 2004 Tyan Corp
- * Copyright (C) 2005-2008 coresystems GmbH <stepan(a)openbios.org>
- * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
- * Copyright (C) 2009 Sean Nelson <audiohacked(a)gmail.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2000 Silicon Integrated System Corporation
+ * SPDX-FileCopyrightText: 2004 Tyan Corp
+ * SPDX-FileCopyrightText: 2005-2008 coresystems GmbH <stepan(a)openbios.org>
+ * SPDX-FileCopyrightText: 2006-2009 Carl-Daniel Hailfinger
+ * SPDX-FileCopyrightText: 2009 Sean Nelson <audiohacked(a)gmail.com>
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
*/
{
diff --git a/flashchips/xtx.c b/flashchips/xtx.c
index 7902b9a..19998a0 100644
--- a/flashchips/xtx.c
+++ b/flashchips/xtx.c
@@ -1,21 +1,13 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2000 Silicon Integrated System Corporation
- * Copyright (C) 2004 Tyan Corp
- * Copyright (C) 2005-2008 coresystems GmbH <stepan(a)openbios.org>
- * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
- * Copyright (C) 2009 Sean Nelson <audiohacked(a)gmail.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2000 Silicon Integrated System Corporation
+ * SPDX-FileCopyrightText: 2004 Tyan Corp
+ * SPDX-FileCopyrightText: 2005-2008 coresystems GmbH <stepan(a)openbios.org>
+ * SPDX-FileCopyrightText: 2006-2009 Carl-Daniel Hailfinger
+ * SPDX-FileCopyrightText: 2009 Sean Nelson <audiohacked(a)gmail.com>
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
*/
{
diff --git a/flashchips/zetta.c b/flashchips/zetta.c
index 3b214d1..5116f6f 100644
--- a/flashchips/zetta.c
+++ b/flashchips/zetta.c
@@ -1,21 +1,13 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2000 Silicon Integrated System Corporation
- * Copyright (C) 2004 Tyan Corp
- * Copyright (C) 2005-2008 coresystems GmbH <stepan(a)openbios.org>
- * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
- * Copyright (C) 2009 Sean Nelson <audiohacked(a)gmail.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2000 Silicon Integrated System Corporation
+ * SPDX-FileCopyrightText: 2004 Tyan Corp
+ * SPDX-FileCopyrightText: 2005-2008 coresystems GmbH <stepan(a)openbios.org>
+ * SPDX-FileCopyrightText: 2006-2009 Carl-Daniel Hailfinger
+ * SPDX-FileCopyrightText: 2009 Sean Nelson <audiohacked(a)gmail.com>
+ * SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
*/
{
diff --git a/include/flashchips.h b/include/flashchips.h
index 767df29..5bb9663 100644
--- a/include/flashchips.h
+++ b/include/flashchips.h
@@ -1,20 +1,11 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2000 Silicon Integrated System Corporation
- * Copyright (C) 2000 Ronald G. Minnich <rminnich(a)gmail.com>
- * Copyright (C) 2005-2007 coresystems GmbH <stepan(a)coresystems.de>
- * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2000 Silicon Integrated System Corporation
+ * SPDX-FileCopyrightText: 2000 Ronald G. Minnich <rminnich(a)gmail.com>
+ * SPDX-FileCopyrightText: 2005-2007 coresystems GmbH <stepan(a)coresystems.de>
+ * SPDX-FileCopyrightText: 2006-2009 Carl-Daniel Hailfinger
*/
#ifndef __FLASHCHIPS_H__
--
To view, visit https://review.coreboot.org/c/flashrom/+/89265?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: flashrom
Gerrit-Branch: main
Gerrit-Change-Id: I13f1a33de0fbc9ffd7fb24207be0dfd3f04c0bbf
Gerrit-Change-Number: 89265
Gerrit-PatchSet: 3
Gerrit-Owner: Antonio Vázquez Blanco <antoniovazquezblanco(a)gmail.com>
Gerrit-Reviewer: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: Nikolai Artemiev <nartemiev(a)google.com>
Gerrit-Reviewer: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
1
0
[L] Change in flashrom[main]: tests: Use SPDX in headers
by Anastasia Klimchuk (Code Review) Sept. 27, 2025
by Anastasia Klimchuk (Code Review) Sept. 27, 2025
Sept. 27, 2025
Anastasia Klimchuk has uploaded this change for review. ( https://review.coreboot.org/c/flashrom/+/89361?usp=email )
Change subject: tests: Use SPDX in headers
......................................................................
tests: Use SPDX in headers
Change-Id: I3a8a8e59cbed871e0ecf953e547de56c0656e112
Signed-off-by: Anastasia Klimchuk <aklm(a)flashrom.org>
---
M tests/ch341a_spi.c
M tests/chip.c
M tests/chip_wp.c
M tests/dediprog.c
M tests/dummyflasher.c
M tests/erase_func_algo.c
M tests/flashrom.c
M tests/helpers.c
M tests/include/test.h
M tests/io_mock.c
M tests/io_mock.h
M tests/io_real.c
M tests/io_real.h
M tests/layout.c
M tests/libflashrom.c
M tests/libusb_wraps.c
M tests/libusb_wraps.h
M tests/lifecycle.c
M tests/lifecycle.h
M tests/linux_mtd.c
M tests/linux_spi.c
M tests/mediatek_i2c_spi.c
M tests/meson.build
M tests/nicrealtek.c
M tests/parade_lspcon.c
M tests/raiden_debug_spi.c
M tests/realtek_mst_i2c_spi.c
M tests/selfcheck.c
M tests/spi25.c
M tests/spidriver.c
M tests/tests.c
M tests/tests.h
M tests/udelay.c
M tests/unittest_env.h
M tests/usb_unittests.h
M tests/wraps.h
36 files changed, 72 insertions(+), 364 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/61/89361/1
diff --git a/tests/ch341a_spi.c b/tests/ch341a_spi.c
index 13fa1a2..0d7c807 100644
--- a/tests/ch341a_spi.c
+++ b/tests/ch341a_spi.c
@@ -1,16 +1,8 @@
/*
* This file is part of the flashrom project.
*
- * Copyright 2022 Alexander Goncharov <chat(a)joursoir.net>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2022 Alexander Goncharov <chat(a)joursoir.net>
*/
#include <stdlib.h>
diff --git a/tests/chip.c b/tests/chip.c
index be82dbe..f4a93d3 100644
--- a/tests/chip.c
+++ b/tests/chip.c
@@ -1,16 +1,8 @@
/*
* This file is part of the flashrom project.
*
- * Copyright 2021 Google LLC
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2021 Google LLC
*
* This file contains tests for operations on flash chip.
*
diff --git a/tests/chip_wp.c b/tests/chip_wp.c
index 4f0162d..d735b0c 100644
--- a/tests/chip_wp.c
+++ b/tests/chip_wp.c
@@ -1,17 +1,8 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2021 3mdeb Embedded Systems Consulting
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2021 3mdeb Embedded Systems Consulting
*/
#include <include/test.h>
diff --git a/tests/dediprog.c b/tests/dediprog.c
index 26b1e75..2db75b1 100644
--- a/tests/dediprog.c
+++ b/tests/dediprog.c
@@ -1,16 +1,8 @@
/*
* This file is part of the flashrom project.
*
- * Copyright 2021 Google LLC
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2021 Google LLC
*/
#include "lifecycle.h"
diff --git a/tests/dummyflasher.c b/tests/dummyflasher.c
index 53f4ef9..d26d179 100644
--- a/tests/dummyflasher.c
+++ b/tests/dummyflasher.c
@@ -1,16 +1,8 @@
/*
* This file is part of the flashrom project.
*
- * Copyright 2021 Google LLC
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2021 Google LLC
*/
#include "lifecycle.h"
diff --git a/tests/erase_func_algo.c b/tests/erase_func_algo.c
index 595072f..dc1d101 100644
--- a/tests/erase_func_algo.c
+++ b/tests/erase_func_algo.c
@@ -1,14 +1,7 @@
/*
* This file is part of the flashrom project.
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <include/test.h>
diff --git a/tests/flashrom.c b/tests/flashrom.c
index 52cc9c8..a704e5e 100644
--- a/tests/flashrom.c
+++ b/tests/flashrom.c
@@ -1,16 +1,8 @@
/*
* This file is part of the flashrom project.
*
- * Copyright 2020 Google LLC
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2020 Google LLC
*/
#include <stdlib.h>
diff --git a/tests/helpers.c b/tests/helpers.c
index 95a1619..442fea5 100644
--- a/tests/helpers.c
+++ b/tests/helpers.c
@@ -1,16 +1,8 @@
/*
* This file is part of the flashrom project.
*
- * Copyright 2020 Google LLC
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2020 Google LLC
*/
#include <include/test.h>
diff --git a/tests/include/test.h b/tests/include/test.h
index ef0b9a6..09d8fff 100644
--- a/tests/include/test.h
+++ b/tests/include/test.h
@@ -1,16 +1,8 @@
/*
* This file is part of the flashrom project.
*
- * Copyright 2020 Google LLC
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2020 Google LLC
*/
#ifndef _TESTS_TEST_H
diff --git a/tests/io_mock.c b/tests/io_mock.c
index 4828e53..d4b3d3a 100644
--- a/tests/io_mock.c
+++ b/tests/io_mock.c
@@ -1,17 +1,8 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (C) 2021, Google Inc. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2021, Google Inc. All rights reserved.
*/
#include "io_mock.h"
diff --git a/tests/io_mock.h b/tests/io_mock.h
index d250f38..f56484b 100644
--- a/tests/io_mock.h
+++ b/tests/io_mock.h
@@ -1,7 +1,8 @@
/*
* This file is part of the flashrom project.
*
- * Copyright (c) 2021 Nico Huber <nico.h(a)gmx.de>
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2021 Nico Huber <nico.h(a)gmx.de>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -14,18 +15,6 @@
* 3. Neither the name of the author nor the names of its contributors
* may be used to endorse or promote products derived from this
* software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
*/
#ifndef _IO_MOCK_H_
diff --git a/tests/io_real.c b/tests/io_real.c
index 429027f..d91bef4 100644
--- a/tests/io_real.c
+++ b/tests/io_real.c
@@ -1,16 +1,8 @@
/*
* This file is part of the flashrom project.
*
- * Copyright 2022 Google LLC
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2022 Google LLC
*/
#include "io_mock.h"
diff --git a/tests/io_real.h b/tests/io_real.h
index f2491c3..ff86bca 100644
--- a/tests/io_real.h
+++ b/tests/io_real.h
@@ -1,16 +1,8 @@
/*
* This file is part of the flashrom project.
*
- * Copyright 2022 Google LLC
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2022 Google LLC
*/
#ifndef IO_REAL_H
diff --git a/tests/layout.c b/tests/layout.c
index 917d77e..7cea05b 100644
--- a/tests/layout.c
+++ b/tests/layout.c
@@ -1,16 +1,8 @@
/*
* This file is part of the flashrom project.
*
- * Copyright 2021 Google LLC
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2021 Google LLC
*/
#include <include/test.h>
diff --git a/tests/libflashrom.c b/tests/libflashrom.c
index 764a839..618f1fa 100644
--- a/tests/libflashrom.c
+++ b/tests/libflashrom.c
@@ -1,17 +1,9 @@
/*
* This file is part of the flashrom project.
*
- * Copyright 2025 Dmitry Zhadinets <dzhadinets(a)gmail.com>
- * Copyright 2025 Google LLC
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2025 Dmitry Zhadinets <dzhadinets(a)gmail.com>
+ * SPDX-FileCopyrightText: 2025 Google LLC
*/
#include <stdlib.h>
diff --git a/tests/libusb_wraps.c b/tests/libusb_wraps.c
index be990a1..20b0798 100644
--- a/tests/libusb_wraps.c
+++ b/tests/libusb_wraps.c
@@ -1,16 +1,8 @@
/*
* This file is part of the flashrom project.
*
- * Copyright 2021 Google LLC
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2021 Google LLC
*/
#include <stdlib.h>
diff --git a/tests/libusb_wraps.h b/tests/libusb_wraps.h
index 8c3aa40..94adde8 100644
--- a/tests/libusb_wraps.h
+++ b/tests/libusb_wraps.h
@@ -1,16 +1,8 @@
/*
* This file is part of the flashrom project.
*
- * Copyright 2022 Google LLC
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2022 Google LLC
*/
#ifndef LIBUSB_WRAPS_H
diff --git a/tests/lifecycle.c b/tests/lifecycle.c
index 555be78..ab043e5 100644
--- a/tests/lifecycle.c
+++ b/tests/lifecycle.c
@@ -1,16 +1,8 @@
/*
* This file is part of the flashrom project.
*
- * Copyright 2021 Google LLC
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2021 Google LLC
*/
#include "lifecycle.h"
diff --git a/tests/lifecycle.h b/tests/lifecycle.h
index d0ba179..cede4a7 100644
--- a/tests/lifecycle.h
+++ b/tests/lifecycle.h
@@ -1,16 +1,8 @@
/*
* This file is part of the flashrom project.
*
- * Copyright 2021 Google LLC
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2021 Google LLC
*/
#ifndef __LIFECYCLE_H__
diff --git a/tests/linux_mtd.c b/tests/linux_mtd.c
index bab6ee6..18aa431 100644
--- a/tests/linux_mtd.c
+++ b/tests/linux_mtd.c
@@ -1,16 +1,8 @@
/*
* This file is part of the flashrom project.
*
- * Copyright 2021 Google LLC
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2021 Google LLC
*/
#include <stdlib.h>
diff --git a/tests/linux_spi.c b/tests/linux_spi.c
index d2d1414..f87cde3 100644
--- a/tests/linux_spi.c
+++ b/tests/linux_spi.c
@@ -1,16 +1,8 @@
/*
* This file is part of the flashrom project.
*
- * Copyright 2021 Google LLC
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2021 Google LLC
*/
#include "lifecycle.h"
diff --git a/tests/mediatek_i2c_spi.c b/tests/mediatek_i2c_spi.c
index d2780bc..6bda622 100644
--- a/tests/mediatek_i2c_spi.c
+++ b/tests/mediatek_i2c_spi.c
@@ -1,16 +1,8 @@
/*
* This file is part of the flashrom project.
*
- * Copyright 2022 Google LLC
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2022 Google LLC
*/
#include "lifecycle.h"
diff --git a/tests/meson.build b/tests/meson.build
index a49278d..8994d6b 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -1,15 +1,7 @@
# This file is part of the flashrom project.
#
-# Copyright 2020 Google LLC
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
+# SPDX-License-Identifier: GPL-2.0-or-later
+# SPDX-FileCopyrightText: 2020 Google LLC
test_srcs = files(
'io_mock.c',
diff --git a/tests/nicrealtek.c b/tests/nicrealtek.c
index 2a7a9ff..fdd957c 100644
--- a/tests/nicrealtek.c
+++ b/tests/nicrealtek.c
@@ -1,16 +1,8 @@
/*
* This file is part of the flashrom project.
*
- * Copyright 2021 Google LLC
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2021 Google LLC
*/
#include "lifecycle.h"
diff --git a/tests/parade_lspcon.c b/tests/parade_lspcon.c
index 980e128..26d7292 100644
--- a/tests/parade_lspcon.c
+++ b/tests/parade_lspcon.c
@@ -1,16 +1,8 @@
/*
* This file is part of the flashrom project.
*
- * Copyright 2022 Google LLC
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2022 Google LLC
*/
#include "lifecycle.h"
diff --git a/tests/raiden_debug_spi.c b/tests/raiden_debug_spi.c
index 8ec0617..a423c22 100644
--- a/tests/raiden_debug_spi.c
+++ b/tests/raiden_debug_spi.c
@@ -1,16 +1,8 @@
/*
* This file is part of the flashrom project.
*
- * Copyright 2021 Google LLC
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2021 Google LLC
*/
#include <stdlib.h>
diff --git a/tests/realtek_mst_i2c_spi.c b/tests/realtek_mst_i2c_spi.c
index 753f06b..f57fdb6 100644
--- a/tests/realtek_mst_i2c_spi.c
+++ b/tests/realtek_mst_i2c_spi.c
@@ -1,16 +1,8 @@
/*
* This file is part of the flashrom project.
*
- * Copyright 2021 Google LLC
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2021 Google LLC
*/
#include "lifecycle.h"
diff --git a/tests/selfcheck.c b/tests/selfcheck.c
index e235d8e..2383c2c 100644
--- a/tests/selfcheck.c
+++ b/tests/selfcheck.c
@@ -1,16 +1,8 @@
/*
* This file is part of the flashrom project.
*
- * Copyright 2022 Google LLC
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2022 Google LLC
*/
#include "flash.h"
diff --git a/tests/spi25.c b/tests/spi25.c
index 0370312..d853ca1 100644
--- a/tests/spi25.c
+++ b/tests/spi25.c
@@ -1,16 +1,8 @@
/*
* This file is part of the flashrom project.
*
- * Copyright 2020 Google LLC
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2020 Google LLC
*/
#include <include/test.h>
diff --git a/tests/spidriver.c b/tests/spidriver.c
index 4b5e9cc..17dd654 100644
--- a/tests/spidriver.c
+++ b/tests/spidriver.c
@@ -1,16 +1,8 @@
/*
* This file is part of the flashrom project.
*
- * Copyright 2025 Simon Arlott
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2025 Simon Arlott
*/
#include "lifecycle.h"
diff --git a/tests/tests.c b/tests/tests.c
index 063081e..7625eac 100644
--- a/tests/tests.c
+++ b/tests/tests.c
@@ -1,16 +1,8 @@
/*
* This file is part of the flashrom project.
*
- * Copyright 2020 Google LLC
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2020 Google LLC
*/
#include <include/test.h>
diff --git a/tests/tests.h b/tests/tests.h
index a2217d4..f6c0fe4 100644
--- a/tests/tests.h
+++ b/tests/tests.h
@@ -1,16 +1,8 @@
/*
* This file is part of the flashrom project.
*
- * Copyright 2020 Google LLC
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2020 Google LLC
*/
#ifndef TESTS_H
diff --git a/tests/udelay.c b/tests/udelay.c
index d583f58..cf158af 100644
--- a/tests/udelay.c
+++ b/tests/udelay.c
@@ -1,16 +1,8 @@
/*
* This file is part of the flashrom project.
*
- * Copyright 2024 Google LLC
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2024 Google LLC
*/
#include <include/test.h>
#include <stdint.h>
diff --git a/tests/unittest_env.h b/tests/unittest_env.h
index 9bd7509..8fa999a 100644
--- a/tests/unittest_env.h
+++ b/tests/unittest_env.h
@@ -1,16 +1,8 @@
/*
* This file is part of the flashrom project.
*
- * Copyright 2021 Google LLC
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2021 Google LLC
*/
/*
diff --git a/tests/usb_unittests.h b/tests/usb_unittests.h
index c81e181..15fab21 100644
--- a/tests/usb_unittests.h
+++ b/tests/usb_unittests.h
@@ -1,16 +1,8 @@
/*
* This file is part of the flashrom project.
*
- * Copyright 2022 Google LLC
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2022 Google LLC
*/
/*
diff --git a/tests/wraps.h b/tests/wraps.h
index bb4801a..bfcc7b0 100644
--- a/tests/wraps.h
+++ b/tests/wraps.h
@@ -1,16 +1,8 @@
/*
* This file is part of the flashrom project.
*
- * Copyright 2022 Google LLC
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * SPDX-FileCopyrightText: 2022 Google LLC
*/
#ifndef WRAPS_H
--
To view, visit https://review.coreboot.org/c/flashrom/+/89361?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: flashrom
Gerrit-Branch: main
Gerrit-Change-Id: I3a8a8e59cbed871e0ecf953e547de56c0656e112
Gerrit-Change-Number: 89361
Gerrit-PatchSet: 1
Gerrit-Owner: Anastasia Klimchuk <aklm(a)chromium.org>
1
0
[M] Change in flashrom[main]: Fail immediately when trying to write/erase wp regions
by Sergii Dmytruk (Code Review) Sept. 26, 2025
by Sergii Dmytruk (Code Review) Sept. 26, 2025
Sept. 26, 2025
Attention is currently required from: Michał Iwanicki.
Sergii Dmytruk has posted comments on this change by Michał Iwanicki. ( https://review.coreboot.org/c/flashrom/+/89222?usp=email )
Change subject: Fail immediately when trying to write/erase wp regions
......................................................................
Patch Set 10: Code-Review+2
--
To view, visit https://review.coreboot.org/c/flashrom/+/89222?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: flashrom
Gerrit-Branch: main
Gerrit-Change-Id: Ia0dd847923e20ff0081ceae68984369e98952c2f
Gerrit-Change-Number: 89222
Gerrit-PatchSet: 10
Gerrit-Owner: Michał Iwanicki <michal.iwanicki(a)3mdeb.com>
Gerrit-Reviewer: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: Sergii Dmytruk <sergii.dmytruk(a)3mdeb.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Michał Kopeć <michal.kopec(a)3mdeb.com>
Gerrit-Attention: Michał Iwanicki <michal.iwanicki(a)3mdeb.com>
Gerrit-Comment-Date: Fri, 26 Sep 2025 17:22:33 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
1
0
[M] Change in flashrom[main]: Fail immediately when trying to write/erase wp regions
by Anastasia Klimchuk (Code Review) Sept. 26, 2025
by Anastasia Klimchuk (Code Review) Sept. 26, 2025
Sept. 26, 2025
Attention is currently required from: Michał Iwanicki, Sergii Dmytruk.
Anastasia Klimchuk has posted comments on this change by Michał Iwanicki. ( https://review.coreboot.org/c/flashrom/+/89222?usp=email )
Change subject: Fail immediately when trying to write/erase wp regions
......................................................................
Patch Set 10: Code-Review+2
--
To view, visit https://review.coreboot.org/c/flashrom/+/89222?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: flashrom
Gerrit-Branch: main
Gerrit-Change-Id: Ia0dd847923e20ff0081ceae68984369e98952c2f
Gerrit-Change-Number: 89222
Gerrit-PatchSet: 10
Gerrit-Owner: Michał Iwanicki <michal.iwanicki(a)3mdeb.com>
Gerrit-Reviewer: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: Sergii Dmytruk <sergii.dmytruk(a)3mdeb.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Michał Kopeć <michal.kopec(a)3mdeb.com>
Gerrit-Attention: Michał Iwanicki <michal.iwanicki(a)3mdeb.com>
Gerrit-Attention: Sergii Dmytruk <sergii.dmytruk(a)3mdeb.com>
Gerrit-Comment-Date: Fri, 26 Sep 2025 11:49:46 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
1
0