drivers: change old license headers to SPDX format #21516
Draft
+2,000
−5,143
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
.Kconfig
also 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.h
had no license, only copyright. I set the license to NONE for the time being.stm32_eth.h
andmrf24j40_radio_hal.c
have no header at all.overwrites.h
has its own copyright information by Freescale Semiconductor, Inc.kw41zrf_xcvr.c
has a BSD licensekw2xrf_reg.h
has a mixed license LGPL and Freescale Semiconductor, Inc.Issues/PRs references
Tracking #21515