1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-11-17 13:10:42 +01:00

serial, usb, hwaccess, i2c: Use SPDX in headers

Since this is the last patch on the topic, add an entry
to the devel document.

Change-Id: Ide53798eb18f180069fb15687569c94e6a45720c
Signed-off-by: Anastasia Klimchuk <aklm@flashrom.org>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/90017
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
Anastasia Klimchuk
2025-11-13 13:16:25 +11:00
parent 359c535a05
commit 1599c5a9ec
15 changed files with 52 additions and 162 deletions

View File

@@ -1,17 +1,8 @@
/* /*
* This file is part of the flashrom project. * This file is part of the flashrom project.
* *
* Copyright (C) 2017 Urja Rannikko <urjaman@gmail.com> * SPDX-License-Identifier: GPL-2.0-or-later
* * SPDX-FileCopyrightText: 2017 Urja Rannikko <urjaman@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.
*/ */
#include <errno.h> #include <errno.h>

View File

@@ -1,17 +1,8 @@
/* /*
* This file is part of the flashrom project. * This file is part of the flashrom project.
* *
* Copyright (C) 2022 Peter Stuge <peter@stuge.se> * SPDX-License-Identifier: GPL-2.0-or-later
* * SPDX-FileCopyrightText: 2022 Peter Stuge <peter@stuge.se>
* 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.
*/ */
#include <termios.h> #include <termios.h>

View File

@@ -1,17 +1,8 @@
/* /*
* This file is part of the flashrom project. * This file is part of the flashrom project.
* *
* Copyright (C) 2017 Urja Rannikko <urjaman@gmail.com> * SPDX-License-Identifier: GPL-2.0-or-later
* * SPDX-FileCopyrightText: 2017 Urja Rannikko <urjaman@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.
*/ */
#include <sys/ioctl.h> #include <sys/ioctl.h>

View File

@@ -79,3 +79,18 @@ It need to be called prior to any other API calls that require flash context.
The issue was a good motivation to write a new test which is built and runs as an external The issue was a good motivation to write a new test which is built and runs as an external
client of libflashrom. The test runs in a separate test executable to achieve this. client of libflashrom. The test runs in a separate test executable to achieve this.
As a bonus, test code in ``tests/external_client.c`` is an example how to use libflashrom API. As a bonus, test code in ``tests/external_client.c`` is an example how to use libflashrom API.
SPDX tags for license and copyright
===================================
From now on, flashrom is using SPDX tags in source files to indicate license and copyright information.
Specifically ``SPDX-License-Identifier`` tag is used for license info, and
``SPDX-FileCopyrightText`` tag is used for copyright info.
Existing source files in the tree have been converted to use SPDX tags. New files should be
created with SPDX tags. For examples, look at any source file in the tree.
Note that source files in directory ``subprojects/packagefiles/cmocka-1.1.5`` haven't been changed,
and won't be. Those files are unpacked from cmocka wrap, so that's the exact copy from another project,
and should stay as is.

View File

@@ -1,19 +1,11 @@
/* /*
* This file is part of the flashrom project. * This file is part of the flashrom project.
* *
* Copyright (C) 2009 Peter Stuge <peter@stuge.se> * SPDX-License-Identifier: GPL-2.0-only
* Copyright (C) 2009 coresystems GmbH * SPDX-FileCopyrightText: 2009 Peter Stuge <peter@stuge.se>
* Copyright (C) 2010 Carl-Daniel Hailfinger * SPDX-FileCopyrightText: 2009 coresystems GmbH
* Copyright (C) 2010 Rudolf Marek <r.marek@assembler.cz> * SPDX-FileCopyrightText: 2010 Carl-Daniel Hailfinger
* * SPDX-FileCopyrightText: 2010 Rudolf Marek <r.marek@assembler.cz>
* 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.
*/ */
#include <unistd.h> #include <unistd.h>

View File

@@ -1,19 +1,9 @@
/* /*
* This file is part of the flashrom project. * This file is part of the flashrom project.
* *
* Copyright (C) 2009,2010 Carl-Daniel Hailfinger * SPDX-License-Identifier: GPL-2.0-or-later
* Copyright (C) 2022 secunet Security Networks AG * SPDX-FileCopyrightText: 2009,2010 Carl-Daniel Hailfinger
* (Written by Thomas Heijligen <thomas.heijligen@secunet.com) * SPDX-FileCopyrightText: 2022 secunet Security Networks AG (Written by Thomas Heijligen <thomas.heijligen@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.
*/ */
/* /*

View File

@@ -1,19 +1,11 @@
/* /*
* This file is part of the flashrom project. * This file is part of the flashrom project.
* *
* Copyright (C) 2009 Peter Stuge <peter@stuge.se> * SPDX-License-Identifier: GPL-2.0-only
* Copyright (C) 2009 coresystems GmbH * SPDX-FileCopyrightText: 2009 Peter Stuge <peter@stuge.se>
* Copyright (C) 2010 Carl-Daniel Hailfinger * SPDX-FileCopyrightText: 2009 coresystems GmbH
* Copyright (C) 2010 Rudolf Marek <r.marek@assembler.cz> * SPDX-FileCopyrightText: 2010 Carl-Daniel Hailfinger
* * SPDX-FileCopyrightText: 2010 Rudolf Marek <r.marek@assembler.cz>
* 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.
*/ */
/* MSR abstraction implementations for Linux, OpenBSD, FreeBSD/Dragonfly, OSX, libpayload /* MSR abstraction implementations for Linux, OpenBSD, FreeBSD/Dragonfly, OSX, libpayload

View File

@@ -1,17 +1,8 @@
/* /*
* This file is part of the flashrom project. * This file is part of the flashrom project.
* *
* Copyright (C) 2020 The Chromium OS Authors * SPDX-License-Identifier: GPL-2.0-or-later
* * SPDX-FileCopyrightText: 2020 The Chromium OS Authors
* 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.
*/ */
#include <errno.h> #include <errno.h>

View File

@@ -1,17 +1,8 @@
/* /*
* This file is part of the flashrom project. * This file is part of the flashrom project.
* *
* Copyright (C) 2017 Urja Rannikko <urjaman@gmail.com> * SPDX-License-Identifier: GPL-2.0-or-later
* * SPDX-FileCopyrightText: 2017 Urja Rannikko <urjaman@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.
*/ */
#ifndef __CUSTOM_BAUD_H__ #ifndef __CUSTOM_BAUD_H__

View File

@@ -1,17 +1,8 @@
/* /*
* This file is part of the flashrom project. * This file is part of the flashrom project.
* *
* Copyright (C) 2020 The Chromium OS Authors * SPDX-License-Identifier: GPL-2.0-or-later
* * SPDX-FileCopyrightText: 2020 The Chromium OS Authors
* 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.
*/ */
#ifndef I2C_HELPER_H #ifndef I2C_HELPER_H

View File

@@ -1,17 +1,8 @@
/* /*
* This file is part of the flashrom project. * This file is part of the flashrom project.
* *
* Copyright (C) 2020, Google Inc. All rights reserved. * SPDX-License-Identifier: GPL-2.0-or-later
* * SPDX-FileCopyrightText: 2020, 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.
*/ */
#ifndef USB_DEVICE_H #ifndef USB_DEVICE_H

View File

@@ -1,17 +1,8 @@
/* /*
* This file is part of the flashrom project. * This file is part of the flashrom project.
* *
* Copyright (C) 2024 Antonio Vázquez Blanco <antoniovazquezblanco@gmail.com> * SPDX-License-Identifier: GPL-2.0-or-later
* * SPDX-FileCopyrightText: 2024 Antonio Vázquez Blanco <antoniovazquezblanco@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.
*/ */
#ifndef __USBDEV_H__ #ifndef __USBDEV_H__

View File

@@ -1,18 +1,9 @@
/* /*
* This file is part of the flashrom project. * This file is part of the flashrom project.
* *
* Copyright (C) 2009 Urja Rannikko <urjaman@gmail.com> * SPDX-License-Identifier: GPL-2.0-or-later
* Copyright (C) 2009,2010 Carl-Daniel Hailfinger * SPDX-FileCopyrightText: 2009 Urja Rannikko <urjaman@gmail.com>
* * SPDX-FileCopyrightText: 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.
*/ */
#include "serial.h" #include "serial.h"

View File

@@ -1,17 +1,8 @@
/* /*
* This file is part of the flashrom project. * This file is part of the flashrom project.
* *
* Copyright (C) 2020, Google Inc. All rights reserved. * SPDX-License-Identifier: GPL-2.0-or-later
* * SPDX-FileCopyrightText: 2020, 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.
*/ */
#include "programmer.h" #include "programmer.h"

View File

@@ -1,18 +1,9 @@
/* /*
* This file is part of the flashrom project. * This file is part of the flashrom project.
* *
* Copyright (C) 2016 secunet Security Networks AG * SPDX-License-Identifier: GPL-2.0-or-later
* Copyright (C) 2018 Linaro Limited * SPDX-FileCopyrightText: 2016 secunet Security Networks AG
* * SPDX-FileCopyrightText: 2018 Linaro Limited
* 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.
*/ */