diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2020-11-26 18:55:52 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-11-27 09:53:52 +0100 |
commit | 8266bfaa7109cf00faaf7149c483e4363800d54e (patch) | |
tree | c80a63cf21cffc4ef39f773b822dfb8b4bd81fe1 | |
parent | 66fad6ecdcf5253d1f8319ab9d4811f85006903a (diff) | |
download | barebox-8266bfaa7109cf00faaf7149c483e4363800d54e.tar.gz barebox-8266bfaa7109cf00faaf7149c483e4363800d54e.tar.xz |
LICENSES: exceptions: factor out eCos-exception-2.0 for GPL
We have code imported from eCos that's licensed with this exception.
Replace instances of the exceptions with a SPDX-License-Identifier
referencing the exception in our LICENSES directory.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | LICENSES/exceptions/eCos-exception-2.0 | 13 | ||||
-rw-r--r-- | drivers/serial/arm_dcc.c | 21 |
2 files changed, 14 insertions, 20 deletions
diff --git a/LICENSES/exceptions/eCos-exception-2.0 b/LICENSES/exceptions/eCos-exception-2.0 new file mode 100644 index 0000000000..291103666f --- /dev/null +++ b/LICENSES/exceptions/eCos-exception-2.0 @@ -0,0 +1,13 @@ +SPDX-Exception-Identifier: eCos-exception-2.0 +SPDX-URL: https://spdx.org/licenses/eCos-exception-2.0.html +SPDX-Licenses: GPL-2.0-only, GPL-2.0-or-later, GPL-2.0, GPL-2.0+ +License-Text: + As a special exception, if other files instantiate templates or use macros or + inline functions from this file, or you compile this file and link it with + other works to produce a work based on this file, this file does not by itself + cause the resulting work to be covered by the GNU General Public License. + However the source code for this file must still be made available in + accordance with section (3) of the GNU General Public License. + + This exception does not invalidate any other reasons why a work based on this + file might be covered by the GNU General Public License. diff --git a/drivers/serial/arm_dcc.c b/drivers/serial/arm_dcc.c index e5f2bbe5e2..db0ee7fe09 100644 --- a/drivers/serial/arm_dcc.c +++ b/drivers/serial/arm_dcc.c @@ -1,26 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0-only WITH eCos-exception-2.0 */ /* * Copyright (C) 2004-2007 ARM Limited. * Copyright (C) 2008 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License version 2 - * as published by the Free Software Foundation. - * - * 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. - * - * - * As a special exception, if other files instantiate templates or use macros - * or inline functions from this file, or you compile this file and link it - * with other works to produce a work based on this file, this file does not - * by itself cause the resulting work to be covered by the GNU General Public - * License. However the source code for this file must still be made available - * in accordance with section (3) of the GNU General Public License. - - * This exception does not invalidate any other reasons why a work based on - * this file might be covered by the GNU General Public License. */ #include <common.h> |