From 2739d5a069386c8e834c7f660dce9f93dc2b4598 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Sun, 23 Aug 2020 16:45:20 +0200 Subject: [PATCH] add SPDX License identifier to header and specify file is part of LiteScope. --- examples/arty.py | 7 +++++-- litescope/core.py | 11 +++++++---- litescope/software/driver/analyzer.py | 11 +++++++---- litescope/software/driver/io.py | 7 +++++-- litescope/software/dump/common.py | 9 ++++++--- litescope/software/dump/csv.py | 7 +++++-- litescope/software/dump/python.py | 7 +++++-- litescope/software/dump/sigrok.py | 7 +++++-- litescope/software/dump/vcd.py | 7 +++++-- litescope/software/litescope_cli.py | 9 ++++++--- test/test_analyzer.py | 7 +++++-- test/test_dump.py | 7 +++++-- test/test_examples.py | 7 +++++-- 13 files changed, 71 insertions(+), 32 deletions(-) diff --git a/examples/arty.py b/examples/arty.py index b039732..8da579e 100755 --- a/examples/arty.py +++ b/examples/arty.py @@ -1,7 +1,10 @@ #!/usr/bin/env python3 -# This file is Copyright (c) 2020 Florent Kermarrec -# License: BSD +# +# This file is part of LiteScope. +# +# Copyright (c) 2020 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause # Use: # ./arty.py --build --load diff --git a/litescope/core.py b/litescope/core.py index a963f50..1efca83 100644 --- a/litescope/core.py +++ b/litescope/core.py @@ -1,7 +1,10 @@ -# This file is Copyright (c) 2016-2019 Florent Kermarrec -# This file is Copyright (c) 2018 bunnie -# This file is Copyright (c) 2016 Tim 'mithro' Ansell -# License: BSD +# +# This file is part of LiteScope. +# +# Copyright (c) 2016-2019 Florent Kermarrec +# Copyright (c) 2018 bunnie +# Copyright (c) 2016 Tim 'mithro' Ansell +# SPDX-License-Identifier: BSD-2-Clause from migen import * from migen.genlib.misc import WaitTimer diff --git a/litescope/software/driver/analyzer.py b/litescope/software/driver/analyzer.py index 04baa38..80b3f4b 100644 --- a/litescope/software/driver/analyzer.py +++ b/litescope/software/driver/analyzer.py @@ -1,7 +1,10 @@ -# This file is Copyright (c) 2015-2018 Florent Kermarrec -# This file is Copyright (c) 2019 kees.jongenburger -# This file is Copyright (c) 2018 Sean Cross -# License: BSD +# +# This file is part of LiteScope. +# +# Copyright (c) 2015-2018 Florent Kermarrec +# Copyright (c) 2019 kees.jongenburger +# Copyright (c) 2018 Sean Cross +# SPDX-License-Identifier: BSD-2-Clause import os import sys diff --git a/litescope/software/driver/io.py b/litescope/software/driver/io.py index 38efff4..e82d82f 100644 --- a/litescope/software/driver/io.py +++ b/litescope/software/driver/io.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2017 Florent Kermarrec -# License: BSD +# +# This file is part of LiteScope. +# +# Copyright (c) 2015-2017 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause class LiteScopeIODriver: def __init__(self, regs, name): diff --git a/litescope/software/dump/common.py b/litescope/software/dump/common.py index 2f68c9d..d07dd7a 100644 --- a/litescope/software/dump/common.py +++ b/litescope/software/dump/common.py @@ -1,6 +1,9 @@ -# This file is Copyright (c) 2015-2019 Florent Kermarrec -# This file is Copyright (c) 2019 kees.jongenburger -# License: BSD +# +# This file is part of LiteScope. +# +# Copyright (c) 2015-2019 Florent Kermarrec +# Copyright (c) 2019 kees.jongenburger +# SPDX-License-Identifier: BSD-2-Clause def dec2bin(d, width=0): if d == "x": diff --git a/litescope/software/dump/csv.py b/litescope/software/dump/csv.py index 8cca933..49f9a91 100644 --- a/litescope/software/dump/csv.py +++ b/litescope/software/dump/csv.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015 Florent Kermarrec -# License: BSD +# +# This file is part of LiteScope. +# +# Copyright (c) 2015 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause from litescope.software.dump.common import Dump, dec2bin diff --git a/litescope/software/dump/python.py b/litescope/software/dump/python.py index 7494ddb..7bd1c61 100644 --- a/litescope/software/dump/python.py +++ b/litescope/software/dump/python.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015 Florent Kermarrec -# License: BSD +# +# This file is part of LiteScope. +# +# Copyright (c) 2015 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause from litescope.software.dump.common import Dump diff --git a/litescope/software/dump/sigrok.py b/litescope/software/dump/sigrok.py index e9e315e..70addc3 100644 --- a/litescope/software/dump/sigrok.py +++ b/litescope/software/dump/sigrok.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2017 Florent Kermarrec -# License: BSD +# +# This file is part of LiteScope. +# +# Copyright (c) 2015-2017 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause import os import math diff --git a/litescope/software/dump/vcd.py b/litescope/software/dump/vcd.py index ac01dba..e3045b5 100644 --- a/litescope/software/dump/vcd.py +++ b/litescope/software/dump/vcd.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2018 Florent Kermarrec -# License: BSD +# +# This file is part of LiteScope. +# +# Copyright (c) 2015-2018 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause from itertools import count import datetime diff --git a/litescope/software/litescope_cli.py b/litescope/software/litescope_cli.py index 2d9ed8f..fae3bff 100755 --- a/litescope/software/litescope_cli.py +++ b/litescope/software/litescope_cli.py @@ -1,8 +1,11 @@ #!/usr/bin/env python3 -# This file is Copyright (c) 2020 Antmicro -# This file is Copyright (c) 2020 Florent Kermarrec -# License: BSD +# +# This file is part of LiteScope. +# +# Copyright (c) 2020 Antmicro +# Copyright (c) 2020 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause import re import csv diff --git a/test/test_analyzer.py b/test/test_analyzer.py index 26c17bd..78a65a6 100644 --- a/test/test_analyzer.py +++ b/test/test_analyzer.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2017-2019 Florent Kermarrec -# License: BSD +# +# This file is part of LiteScope. +# +# Copyright (c) 2017-2019 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause import unittest diff --git a/test/test_dump.py b/test/test_dump.py index f0cd207..479cc16 100644 --- a/test/test_dump.py +++ b/test/test_dump.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2017 Florent Kermarrec -# License: BSD +# +# This file is part of LiteScope. +# +# Copyright (c) 2017 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause import unittest import os diff --git a/test/test_examples.py b/test/test_examples.py index 84206b2..d6cebd1 100644 --- a/test/test_examples.py +++ b/test/test_examples.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2019 Florent Kermarrec -# License: BSD +# +# This file is part of LiteScope. +# +# Copyright (c) 2019 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause import unittest import os