Skip to content

examples: move licenses from headers to SPDX format #21591

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

Merged
merged 8 commits into from
Jul 10, 2025

Conversation

krzysztof-cabaj
Copy link
Contributor

Contribution description

This PR moves license information from headers to SPDX format for files from examples directory.

Most work for .c and .h files is done using @N11cc00 script.
Not so common files - Python, Rust, Lua and .sh are serviced manually.

I added MIT and LGPL-3.0 license files - remaining LGPL-2.1 will be added in PR #21516.

One file with custom license is untouched - examples/networking/misc/sniffer/tools/sniffer.py.

Testing procedure

Review changed files.

Issues/PRs references

Tracking #21515

@github-actions github-actions bot added Area: doc Area: Documentation Area: examples Area: Example Applications Area: Kconfig Area: Kconfig integration labels Jul 10, 2025
@crasbe crasbe added Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR CI: skip compile test If set, CI server will run only non-compile jobs, but no compile jobs or their dependent jobs labels Jul 10, 2025
@crasbe crasbe added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR CI: skip compile test If set, CI server will run only non-compile jobs, but no compile jobs or their dependent jobs labels Jul 10, 2025
@krzysztof-cabaj krzysztof-cabaj force-pushed the examples_change_to_SPDX branch from 98b7cd0 to 63045c4 Compare July 10, 2025 20:07
@krzysztof-cabaj
Copy link
Contributor Author

@crasbe Thanks for spotting the issue with missing Copyright lines.

The problem with current script appears when next lines do not contain Copyright word.
When each line contains this word everything works fine, I tested script for example in 'boards/adafruit-feather-nrf52840-sence` and all lines are added to SPDX. Next time I looked carefully at this issue.

Copy link
Contributor

@crasbe crasbe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now.

@riot-ci
Copy link

riot-ci commented Jul 10, 2025

Murdock results

✔️ PASSED

63045c4 LICENSES: add missing MIT and LGPL-3.0 licenses

Success Failures Total Runtime
138 0 138 02m:39s

Artifacts

@crasbe crasbe added this pull request to the merge queue Jul 10, 2025
Merged via the queue into RIOT-OS:master with commit cb9c55a Jul 10, 2025
35 checks passed
@Teufelchen1 Teufelchen1 added this to the Release 2025.07 milestone Jul 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: doc Area: Documentation Area: examples Area: Example Applications Area: Kconfig Area: Kconfig integration CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants