drivers: change old license headers to SPDX format#21516
Closed
N11cc00 wants to merge 1 commit intoRIOT-OS:masterfrom
Closed
drivers: change old license headers to SPDX format#21516N11cc00 wants to merge 1 commit intoRIOT-OS:masterfrom
N11cc00 wants to merge 1 commit intoRIOT-OS:masterfrom
Conversation
4 tasks
Murdock results❌ FAILED 5e12b9f drivers: bulk of files changed to SPDX format Test failures (2)
Artifacts |
crasbe
reviewed
Jul 14, 2025
5e7db27 to
798c242
Compare
Contributor
|
@N11cc00 ping 👀 |
Contributor
Author
|
I am looking into this |
This was referenced Mar 31, 2026
Contributor
Author
|
This PR is split up into multiple smaller ones to ease the burden on the reviewer. The first PR is #22162. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contribution description
This draft attempts to convert all license headers for all files inside the
drivers/directory. Vendor specific files are left untouched as well as some files missing some copyright or license information.At the moment, only *.c and *.h files are touched but other files like
.Kconfigalso posses copyright information. These need to be changed, too, before this PR can be merged.The LICENSE file had to be moved to the
LICENSE/sub-directory and was renamed to the exact license name so that SPDX parsers can pick it up.I have manually edited a handful of files but there are still some left to fix. See below.
Testing procedure
To check for correct license/copyright information in all c and h files that are not vendor provided, use this command:
reuse lint -l | grep "^drivers/" | grep -E '\.(c|h):' | grep -v "/vendor/"this produces the following lines:
Some of these have either other licenses provided by companies or are simply missing some information.
lis2dh12_registers.hhad no license, only copyright. I set the license to NONE for the time being.stm32_eth.handmrf24j40_radio_hal.chave no header at all.overwrites.hhas its own copyright information by Freescale Semiconductor, Inc.kw41zrf_xcvr.chas a BSD licensekw2xrf_reg.hhas a mixed license LGPL and Freescale Semiconductor, Inc.Issues/PRs references
Tracking #21515