checkpatch: Ignore SPDX_LICENSE_TAG
authorAntonio Nino Diaz <antonio.ninodiaz@arm.com>
Fri, 27 Apr 2018 08:29:20 +0000 (09:29 +0100)
committerAntonio Nino Diaz <antonio.ninodiaz@arm.com>
Fri, 27 Apr 2018 12:53:54 +0000 (13:53 +0100)
The Linux kernel expects the SPDX license tag in the first line of each
source code file in a comment.

In the context of the Linux kernel repository this makes sense because
they have many different license headers across their codebase. Moving
the tag to the first line of the source code files makes it easier for
analyzers to see the license of each file.

In the Trusted Firmware, we control all headers and make sure that they
follow the same pattern, so this is not needed.

Change-Id: Ie19802c7b65b1bdd63da9ece64311aec1f8ad7fe
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
.checkpatch.conf

index e92b96f323ab6bce592e1f6b6f328257fa0d30b7..63bdf7b478c5e411994b0cfab74f48789a288ca4 100644 (file)
 # This is not Linux so don't expect a Linux tree!
 --no-tree
 
+# The Linux kernel expects the SPDX license tag in the first line of each file.
+# We don't follow this in the Trusted Firmware.
+--ignore SPDX_LICENSE_TAG
+
 # This clarifes the lines indications in the report.
 #
 # E.g.: