devtools: ignore .gitignore in SPDX check
Checks
Commit Message
New .gitignore file in dts was getting marked as error.
Change to ignore all .gitignore files.
Remove no longer use Kbuild pattern.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
devtools/check-spdx-tag.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Comments
07/02/2025 19:26, Stephen Hemminger:
> New .gitignore file in dts was getting marked as error.
> Change to ignore all .gitignore files.
Actually I would prefer we don't create too much .gitignore files.
It is easier to manage if we have all in a single .gitignore.
We have already a line for DTS in the main .gitignore,
so it would be more consistent to move the recent additions
in dts/.gitignore to the root .gitignore.
@@ -22,9 +22,9 @@ check_spdx() {
git grep -L SPDX-License-Identifier -- \
':^.git*' ':^.mailmap' ':^.ci/*' \
':^README' ':^MAINTAINERS' ':^VERSION' ':^ABI_VERSION' \
- ':^*/Kbuild' ':^*/README*' \
+ ':^*/README*' ':^*/.gitignore' \
':^license/' ':^config/' ':^buildtools/' ':^*/poetry.lock' \
- ':^kernel/linux/uapi/.gitignore' ':^kernel/linux/uapi/version' \
+ ':^kernel/linux/uapi/version' \
':^*.cocci' ':^*.abignore' \
':^*.map' ':^*.ini' ':^*.data' ':^*.json' ':^*.cfg' ':^*.txt' \
':^*.svg' ':^*.png' \