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:
@@ -1,17 +1,8 @@
|
||||
/*
|
||||
* This file is part of the flashrom project.
|
||||
*
|
||||
* Copyright (C) 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.
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
* SPDX-FileCopyrightText: 2017 Urja Rannikko <urjaman@gmail.com>
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
@@ -1,17 +1,8 @@
|
||||
/*
|
||||
* This file is part of the flashrom project.
|
||||
*
|
||||
* Copyright (C) 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.
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
* SPDX-FileCopyrightText: 2022 Peter Stuge <peter@stuge.se>
|
||||
*/
|
||||
|
||||
#include <termios.h>
|
||||
|
||||
@@ -1,17 +1,8 @@
|
||||
/*
|
||||
* This file is part of the flashrom project.
|
||||
*
|
||||
* Copyright (C) 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.
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
* SPDX-FileCopyrightText: 2017 Urja Rannikko <urjaman@gmail.com>
|
||||
*/
|
||||
|
||||
#include <sys/ioctl.h>
|
||||
|
||||
@@ -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
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
@@ -1,19 +1,11 @@
|
||||
/*
|
||||
* This file is part of the flashrom project.
|
||||
*
|
||||
* Copyright (C) 2009 Peter Stuge <peter@stuge.se>
|
||||
* Copyright (C) 2009 coresystems GmbH
|
||||
* Copyright (C) 2010 Carl-Daniel Hailfinger
|
||||
* Copyright (C) 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.
|
||||
* SPDX-License-Identifier: GPL-2.0-only
|
||||
* SPDX-FileCopyrightText: 2009 Peter Stuge <peter@stuge.se>
|
||||
* SPDX-FileCopyrightText: 2009 coresystems GmbH
|
||||
* SPDX-FileCopyrightText: 2010 Carl-Daniel Hailfinger
|
||||
* SPDX-FileCopyrightText: 2010 Rudolf Marek <r.marek@assembler.cz>
|
||||
*/
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
@@ -1,19 +1,9 @@
|
||||
/*
|
||||
* This file is part of the flashrom project.
|
||||
*
|
||||
* Copyright (C) 2009,2010 Carl-Daniel Hailfinger
|
||||
* Copyright (C) 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.
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
* SPDX-FileCopyrightText: 2009,2010 Carl-Daniel Hailfinger
|
||||
* SPDX-FileCopyrightText: 2022 secunet Security Networks AG (Written by Thomas Heijligen <thomas.heijligen@secunet.com)
|
||||
*/
|
||||
|
||||
/*
|
||||
|
||||
@@ -1,19 +1,11 @@
|
||||
/*
|
||||
* This file is part of the flashrom project.
|
||||
*
|
||||
* Copyright (C) 2009 Peter Stuge <peter@stuge.se>
|
||||
* Copyright (C) 2009 coresystems GmbH
|
||||
* Copyright (C) 2010 Carl-Daniel Hailfinger
|
||||
* Copyright (C) 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.
|
||||
* SPDX-License-Identifier: GPL-2.0-only
|
||||
* SPDX-FileCopyrightText: 2009 Peter Stuge <peter@stuge.se>
|
||||
* SPDX-FileCopyrightText: 2009 coresystems GmbH
|
||||
* SPDX-FileCopyrightText: 2010 Carl-Daniel Hailfinger
|
||||
* SPDX-FileCopyrightText: 2010 Rudolf Marek <r.marek@assembler.cz>
|
||||
*/
|
||||
|
||||
/* MSR abstraction implementations for Linux, OpenBSD, FreeBSD/Dragonfly, OSX, libpayload
|
||||
|
||||
@@ -1,17 +1,8 @@
|
||||
/*
|
||||
* This file is part of the flashrom project.
|
||||
*
|
||||
* Copyright (C) 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.
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
* SPDX-FileCopyrightText: 2020 The Chromium OS Authors
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
@@ -1,17 +1,8 @@
|
||||
/*
|
||||
* This file is part of the flashrom project.
|
||||
*
|
||||
* Copyright (C) 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.
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
* SPDX-FileCopyrightText: 2017 Urja Rannikko <urjaman@gmail.com>
|
||||
*/
|
||||
|
||||
#ifndef __CUSTOM_BAUD_H__
|
||||
|
||||
@@ -1,17 +1,8 @@
|
||||
/*
|
||||
* This file is part of the flashrom project.
|
||||
*
|
||||
* Copyright (C) 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.
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
* SPDX-FileCopyrightText: 2020 The Chromium OS Authors
|
||||
*/
|
||||
|
||||
#ifndef I2C_HELPER_H
|
||||
|
||||
@@ -1,17 +1,8 @@
|
||||
/*
|
||||
* This file is part of the flashrom project.
|
||||
*
|
||||
* Copyright (C) 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.
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
* SPDX-FileCopyrightText: 2020, Google Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef USB_DEVICE_H
|
||||
|
||||
@@ -1,17 +1,8 @@
|
||||
/*
|
||||
* This file is part of the flashrom project.
|
||||
*
|
||||
* Copyright (C) 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.
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
* SPDX-FileCopyrightText: 2024 Antonio Vázquez Blanco <antoniovazquezblanco@gmail.com>
|
||||
*/
|
||||
|
||||
#ifndef __USBDEV_H__
|
||||
|
||||
15
serial.c
15
serial.c
@@ -1,18 +1,9 @@
|
||||
/*
|
||||
* This file is part of the flashrom project.
|
||||
*
|
||||
* Copyright (C) 2009 Urja Rannikko <urjaman@gmail.com>
|
||||
* 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: 2009 Urja Rannikko <urjaman@gmail.com>
|
||||
* SPDX-FileCopyrightText: 2009,2010 Carl-Daniel Hailfinger
|
||||
*/
|
||||
|
||||
#include "serial.h"
|
||||
|
||||
13
usb_device.c
13
usb_device.c
@@ -1,17 +1,8 @@
|
||||
/*
|
||||
* This file is part of the flashrom project.
|
||||
*
|
||||
* Copyright (C) 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.
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
* SPDX-FileCopyrightText: 2020, Google Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#include "programmer.h"
|
||||
|
||||
15
usbdev.c
15
usbdev.c
@@ -1,18 +1,9 @@
|
||||
/*
|
||||
* This file is part of the flashrom project.
|
||||
*
|
||||
* Copyright (C) 2016 secunet Security Networks AG
|
||||
* Copyright (C) 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.
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
* SPDX-FileCopyrightText: 2016 secunet Security Networks AG
|
||||
* SPDX-FileCopyrightText: 2018 Linaro Limited
|
||||
*/
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user