diff --git a/CI/check_codegen.sh b/CI/check_codegen.sh index 918e303b..f7a8f17b 100755 --- a/CI/check_codegen.sh +++ b/CI/check_codegen.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash +# Copyright 2020 Yi Tseng +# SPDX-License-Identifier: Apache-2.0 + set -eo pipefail THIS_DIR="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)" diff --git a/bazel/example/using-bzlmod/hello_p4runtime.cc b/bazel/example/using-bzlmod/hello_p4runtime.cc index 779c2f3d..5555b814 100644 --- a/bazel/example/using-bzlmod/hello_p4runtime.cc +++ b/bazel/example/using-bzlmod/hello_p4runtime.cc @@ -1,3 +1,6 @@ +// Copyright 2024 Steffen Smolka +// SPDX-License-Identifier: Apache-2.0 + #include #include "google/protobuf/text_format.h" diff --git a/bazel/example/using-workspace/hello_p4runtime.cc b/bazel/example/using-workspace/hello_p4runtime.cc index 779c2f3d..5555b814 100644 --- a/bazel/example/using-workspace/hello_p4runtime.cc +++ b/bazel/example/using-workspace/hello_p4runtime.cc @@ -1,3 +1,6 @@ +// Copyright 2024 Steffen Smolka +// SPDX-License-Identifier: Apache-2.0 + #include #include "google/protobuf/text_format.h" diff --git a/codegen/Dockerfile b/codegen/Dockerfile index 6aab1a1f..c2eb2d95 100644 --- a/codegen/Dockerfile +++ b/codegen/Dockerfile @@ -1,3 +1,6 @@ +# Copyright 2020 Antonin Bas +# SPDX-License-Identifier: Apache-2.0 + FROM p4lang/third-party:latest LABEL maintainer="P4 API Working Group " LABEL description="Dockerfile used for CI testing of p4lang/p4runtime" diff --git a/codegen/compile_protos.sh b/codegen/compile_protos.sh index 486e21f9..c725a163 100755 --- a/codegen/compile_protos.sh +++ b/codegen/compile_protos.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +# Copyright 2020 Antonin Bas +# SPDX-License-Identifier: Apache-2.0 # This ensures that the P4Runtime Protobuf files are correct and compile with # the protoc compiler (CPP, gRPC, Python and Go). diff --git a/codegen/update.sh b/codegen/update.sh index 084bc07c..a01e4af9 100755 --- a/codegen/update.sh +++ b/codegen/update.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +# Copyright 2020 Yi Tseng +# SPDX-License-Identifier: Apache-2.0 set -e diff --git a/docs/tools/Dockerfile.asciidoc b/docs/tools/Dockerfile.asciidoc index ce5df55b..b9268295 100644 --- a/docs/tools/Dockerfile.asciidoc +++ b/docs/tools/Dockerfile.asciidoc @@ -1,3 +1,5 @@ +# Copyright 2025 Davide Scano +# SPDX-License-Identifier: Apache-2.0 FROM ruby:3.3.5 LABEL maintainer="P4 API Working Group " LABEL description="Dockerfile used for building the asciidoc specification" @@ -28,4 +30,4 @@ RUN apt-get install -y libreoffice && \ gem install rouge VOLUME ["/usr/src/p4-spec"] -WORKDIR /usr/src/p4-spec \ No newline at end of file +WORKDIR /usr/src/p4-spec diff --git a/docs/tools/Makefile b/docs/tools/Makefile index 1cda9b14..fafc95b0 100644 --- a/docs/tools/Makefile +++ b/docs/tools/Makefile @@ -1,3 +1,6 @@ +# Copyright 2025 Davide Scano +# SPDX-License-Identifier: Apache-2.0 + all: docker build -t p4rt-asciidoc -f Dockerfile.asciidoc . - docker tag p4rt-asciidoc p4lang/p4rt-asciidoc:latest \ No newline at end of file + docker tag p4rt-asciidoc p4lang/p4rt-asciidoc:latest diff --git a/docs/v1/Makefile b/docs/v1/Makefile index afa30127..9382eadb 100644 --- a/docs/v1/Makefile +++ b/docs/v1/Makefile @@ -1,3 +1,6 @@ +# Copyright 2018 Antonin Bas +# SPDX-License-Identifier: Apache-2.0 + SPEC=P4Runtime-Spec ROUGE_STYLE=github @@ -34,4 +37,4 @@ images: build_spec_with_images: images all clean: - /bin/rm -rf build resources/figs/*.png resources/figs/*.svg \ No newline at end of file + /bin/rm -rf build resources/figs/*.png resources/figs/*.svg diff --git a/docs/v1/resources/theme/p4-stylesheet.css b/docs/v1/resources/theme/p4-stylesheet.css index 0ee77e01..af15a470 100644 --- a/docs/v1/resources/theme/p4-stylesheet.css +++ b/docs/v1/resources/theme/p4-stylesheet.css @@ -1,4 +1,6 @@ @import url(//cdnjs.cloudflare.com/ajax/libs/font-awesome/3.2.0/css/font-awesome.css); +/* Copyright 2025 Davide Scano */ +/* SPDX-License-Identifier: MIT */ /* normalize.css v2.1.1 | MIT License | git.io/normalize */ /* ========================================================================== HTML5 display definitions ========================================================================== */ /** Correct `block` display not defined in IE 8/9. */ @@ -640,4 +642,4 @@ h2 { color: #030303; border-bottom: 1px solid #dddddd; } .quoteblock blockquote { background: url('../images/github/blockquote-arrow.png?1372292342') 0 2px no-repeat; padding-left: 1em; } -.sidebarblock > .content > .title { margin-top: -20px; margin-right: -20px; margin-left: -20px; margin-bottom: 20px; padding: 1em; font-size: 0.8em; background: #eaeaea; } \ No newline at end of file +.sidebarblock > .content > .title { margin-top: -20px; margin-right: -20px; margin-left: -20px; margin-bottom: 20px; padding: 1em; font-size: 0.8em; background: #eaeaea; } diff --git a/docs/v1/resources/theme/p4-theme.yml b/docs/v1/resources/theme/p4-theme.yml index 0f4a9993..5632dd8b 100644 --- a/docs/v1/resources/theme/p4-theme.yml +++ b/docs/v1/resources/theme/p4-theme.yml @@ -1,3 +1,5 @@ +# Copyright 2025 Davide Scano +# SPDX-License-Identifier: Apache-2.0 extends: ~ font: catalog: diff --git a/go.mod b/go.mod index c4d69210..4598b412 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,6 @@ +// Copyright 2020 Antonin Bas +// SPDX-License-Identifier: Apache-2.0 + module github.com/p4lang/p4runtime go 1.20 diff --git a/go/p4/config/v1/p4info.pb.go b/go/p4/config/v1/p4info.pb.go index 43c261fc..8e24a23e 100644 --- a/go/p4/config/v1/p4info.pb.go +++ b/go/p4/config/v1/p4info.pb.go @@ -1,4 +1,5 @@ // Copyright 2013-present Barefoot Networks, Inc. +// SPDX-License-Identifier: Apache-2.0 // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/go/p4/config/v1/p4types.pb.go b/go/p4/config/v1/p4types.pb.go index fff41698..ef8839d5 100644 --- a/go/p4/config/v1/p4types.pb.go +++ b/go/p4/config/v1/p4types.pb.go @@ -1,4 +1,5 @@ // Copyright 2013-present Barefoot Networks, Inc. +// SPDX-License-Identifier: Apache-2.0 // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/go/p4/v1/p4data.pb.go b/go/p4/v1/p4data.pb.go index f287fb09..ca58255a 100644 --- a/go/p4/v1/p4data.pb.go +++ b/go/p4/v1/p4data.pb.go @@ -1,4 +1,5 @@ // Copyright 2013-present Barefoot Networks, Inc. +// SPDX-License-Identifier: Apache-2.0 // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/go/p4/v1/p4runtime.pb.go b/go/p4/v1/p4runtime.pb.go index 7683d886..e25cfa4a 100644 --- a/go/p4/v1/p4runtime.pb.go +++ b/go/p4/v1/p4runtime.pb.go @@ -1,4 +1,5 @@ // Copyright (c) 2016, Google Inc. +// SPDX-License-Identifier: Apache-2.0 // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/go/p4/v1/p4runtime_grpc.pb.go b/go/p4/v1/p4runtime_grpc.pb.go index dfecbe32..9c0769fb 100644 --- a/go/p4/v1/p4runtime_grpc.pb.go +++ b/go/p4/v1/p4runtime_grpc.pb.go @@ -1,4 +1,5 @@ // Copyright (c) 2016, Google Inc. +// SPDX-License-Identifier: Apache-2.0 // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/proto/p4/config/v1/p4info.proto b/proto/p4/config/v1/p4info.proto index 8119be17..0d5385c9 100644 --- a/proto/p4/config/v1/p4info.proto +++ b/proto/p4/config/v1/p4info.proto @@ -1,4 +1,5 @@ // Copyright 2013-present Barefoot Networks, Inc. +// SPDX-License-Identifier: Apache-2.0 // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/proto/p4/config/v1/p4types.proto b/proto/p4/config/v1/p4types.proto index ff317b68..dd5c5044 100644 --- a/proto/p4/config/v1/p4types.proto +++ b/proto/p4/config/v1/p4types.proto @@ -1,4 +1,5 @@ // Copyright 2013-present Barefoot Networks, Inc. +// SPDX-License-Identifier: Apache-2.0 // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/proto/p4/v1/p4data.proto b/proto/p4/v1/p4data.proto index f5b80a9e..9a1aa263 100644 --- a/proto/p4/v1/p4data.proto +++ b/proto/p4/v1/p4data.proto @@ -1,4 +1,5 @@ // Copyright 2013-present Barefoot Networks, Inc. +// SPDX-License-Identifier: Apache-2.0 // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/proto/p4/v1/p4runtime.proto b/proto/p4/v1/p4runtime.proto index 0f4b89d1..ac164586 100755 --- a/proto/p4/v1/p4runtime.proto +++ b/proto/p4/v1/p4runtime.proto @@ -1,4 +1,5 @@ // Copyright (c) 2016, Google Inc. +// SPDX-License-Identifier: Apache-2.0 // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/proto/p4runtime_deps.bzl b/proto/p4runtime_deps.bzl index 60802a8b..a608722c 100644 --- a/proto/p4runtime_deps.bzl +++ b/proto/p4runtime_deps.bzl @@ -1,3 +1,5 @@ +# Copyright 2020 Steffen Smolka +# SPDX-License-Identifier: Apache-2.0 """Load dependencies needed to compile p4runtime as a 3rd-party consumer.""" load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") diff --git a/py/pyproject.toml b/py/pyproject.toml index 993e0455..1de2b129 100644 --- a/py/pyproject.toml +++ b/py/pyproject.toml @@ -1,3 +1,5 @@ +# Copyright 2022 Antonin Bas +# SPDX-License-Identifier: Apache-2.0 [build-system] requires = [ "setuptools", diff --git a/py/setup.py b/py/setup.py index 1abbd068..f4cd0ef2 100644 --- a/py/setup.py +++ b/py/setup.py @@ -1,3 +1,6 @@ +# Copyright 2020 Yi Tseng +# SPDX-License-Identifier: Apache-2.0 + import setuptools if __name__ == "__main__": diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 8afef638..e2d4f51b 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -1,3 +1,5 @@ +# Copyright 2024 Campbell He +# SPDX-License-Identifier: Apache-2.0 [package] name = "p4runtime" version = "1.4.0" diff --git a/tools/asciidoclint.py b/tools/asciidoclint.py index 3a8b31ae..65c78672 100755 --- a/tools/asciidoclint.py +++ b/tools/asciidoclint.py @@ -1,6 +1,7 @@ #!/usr/bin/env python3 -# Copyright 2024 +# Copyright 2024 Davide Scano +# SPDX-License-Identifier: Apache-2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License.