Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Apache 2.0 license id lines to source files #543

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CI/check_codegen.sh
Original file line number Diff line number Diff line change
@@ -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)"
Expand Down
3 changes: 3 additions & 0 deletions bazel/example/using-bzlmod/hello_p4runtime.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2024 Steffen Smolka
// SPDX-License-Identifier: Apache-2.0

#include <iostream>

#include "google/protobuf/text_format.h"
Expand Down
3 changes: 3 additions & 0 deletions bazel/example/using-workspace/hello_p4runtime.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2024 Steffen Smolka
// SPDX-License-Identifier: Apache-2.0

#include <iostream>

#include "google/protobuf/text_format.h"
Expand Down
3 changes: 3 additions & 0 deletions codegen/Dockerfile
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"
LABEL description="Dockerfile used for CI testing of p4lang/p4runtime"
Expand Down
2 changes: 2 additions & 0 deletions codegen/compile_protos.sh
Original file line number Diff line number Diff line change
@@ -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).
Expand Down
2 changes: 2 additions & 0 deletions codegen/update.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env bash
# Copyright 2020 Yi Tseng
# SPDX-License-Identifier: Apache-2.0

set -e

Expand Down
4 changes: 3 additions & 1 deletion docs/tools/Dockerfile.asciidoc
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"
LABEL description="Dockerfile used for building the asciidoc specification"
Expand Down Expand Up @@ -28,4 +30,4 @@ RUN apt-get install -y libreoffice && \
gem install rouge

VOLUME ["/usr/src/p4-spec"]
WORKDIR /usr/src/p4-spec
WORKDIR /usr/src/p4-spec
5 changes: 4 additions & 1 deletion docs/tools/Makefile
Original file line number Diff line number Diff line change
@@ -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
docker tag p4rt-asciidoc p4lang/p4rt-asciidoc:latest
5 changes: 4 additions & 1 deletion docs/v1/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2018 Antonin Bas
# SPDX-License-Identifier: Apache-2.0

SPEC=P4Runtime-Spec

ROUGE_STYLE=github
Expand Down Expand Up @@ -34,4 +37,4 @@ images:
build_spec_with_images: images all

clean:
/bin/rm -rf build resources/figs/*.png resources/figs/*.svg
/bin/rm -rf build resources/figs/*.png resources/figs/*.svg
4 changes: 3 additions & 1 deletion docs/v1/resources/theme/p4-stylesheet.css
Original file line number Diff line number Diff line change
@@ -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. */
Expand Down Expand Up @@ -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; }
.sidebarblock > .content > .title { margin-top: -20px; margin-right: -20px; margin-left: -20px; margin-bottom: 20px; padding: 1em; font-size: 0.8em; background: #eaeaea; }
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2020 Antonin Bas
// SPDX-License-Identifier: Apache-2.0

module github.com/p4lang/p4runtime

go 1.20
Expand Down
1 change: 1 addition & 0 deletions go/p4/config/v1/p4info.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions go/p4/config/v1/p4types.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions go/p4/v1/p4data.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions go/p4/v1/p4runtime.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions go/p4/v1/p4runtime_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions proto/p4/config/v1/p4info.proto
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions proto/p4/config/v1/p4types.proto
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions proto/p4/v1/p4data.proto
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions proto/p4/v1/p4runtime.proto
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
3 changes: 3 additions & 0 deletions py/setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2020 Yi Tseng
# SPDX-License-Identifier: Apache-2.0

import setuptools

if __name__ == "__main__":
Expand Down
2 changes: 2 additions & 0 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2024 Campbell He
# SPDX-License-Identifier: Apache-2.0
[package]
name = "p4runtime"
version = "1.4.0"
Expand Down
3 changes: 2 additions & 1 deletion tools/asciidoclint.py
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Loading