devtools: ignore .gitignore in SPDX check
PATCH 1/1 devtools: ignore .gitignore in SPDX check
New .gitignore file in dts was getting marked as error. Change to ignore all .gitignore files.
Remove no longer use Kbuild pattern.
--- devtools/check-spdx-tag.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
devtools/check-spdx-tag.sh +2 -2
@@ -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' \
Signature · 1 line
2.47.2
07/02/2025 19:26, Stephen Hemminger:
Quoted 2 lines
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.
RFC 1/1 git: consolidate .gitignore files
In reply to Stephen HemmingerLets have only one .gitignore at top level.
--- .gitignore | 6 ++++++ dts/.gitignore | 4 ---- kernel/linux/uapi/.gitignore | 4 ---- 3 files changed, 6 insertions(+), 8 deletions(-) delete mode 100644 dts/.gitignore delete mode 100644 kernel/linux/uapi/.gitignore
.gitignore +6 -0
@@ -43,6 +43,8 @@ TAGS # DTS results dts/output +dts/nodes.yaml +dts/test_rund.yaml # ignore default build directory, and directories from test-meson-builds.sh build
@@ -50,3 +52,7 @@ build-* # ignore other build directory patterns *-gcc* *-clang* + +# ignore Linux UAPI kernel headers +kernel/linux/uapi/version +kernel/linux/uapi/**/*.h
dts/.gitignore deleted +0 -4
@@ -1,4 +0,0 @@ -# default configuration files for DTS -nodes.yaml -test_runs.yaml -
kernel/linux/uapi/.gitignore deleted +0 -4
@@ -1,4 +0,0 @@ -** -!**/ -!**/*.h -!version
Signature · 1 line
2.47.2
Re: [RFC] git: consolidate .gitignore files
10/02/2025 18:20, Stephen Hemminger:
.gitignore build-* · line 58
Quoted 3 lines
.gitignore +3
-0+# ignore Linux UAPI kernel headers +kernel/linux/uapi/version +kernel/linux/uapi/**/*.h
The original .gitignore had some "!" for an opposite logic. I think we can just completely drop this one, it looks unneeded.
Re: [RFC] git: consolidate .gitignore files
In reply to Stephen Hemminger.gitignore TAGS · line 48
Quoted 12 lines · Stephen Hemminger
.gitignore +2
-0@@ -43,6 +43,8 @@ TAGS # DTS results dts/output +dts/nodes.yaml +dts/test_rund.yaml
test_rund -> test_runs
Quoted 3 lines
2.47.2
Thanks, I see no issue with consolidating.
Re: [RFC] git: consolidate .gitignore files
In reply to Stephen Hemminger10/02/2025 18:20, Stephen Hemminger:
Quoted 3 lines
Lets have only one .gitignore at top level.
Signed-off-by Stephen Hemminger <[email protected]>
Applied with uAPI rules dropped and these explanations added:
"
Some generated DTS files must be ignored.
The Linux uAPI files should not be ignored.
"
Re: [RFC] git: consolidate .gitignore files
https://git.dpdk.org/next/dpdk-next-dts/commit/?id=564f4abb42df0cdf7da8c53933705bc205642005
This commit on next-dts changes the name of this default config file from test_runs.yaml to test_run.yaml. However, it is not pulled to main yet.
I can send a patch equivalent to Stephen's which changes test_rund.yml to test_run.yaml. But, should it be applied to next-dts instead of main, so that it is "on top of" commit 564f4abb42df0cdf7da8c53933705bc205642005 which necessitates it?
Re: [RFC] git: consolidate .gitignore files
14/03/2025 16:18, Patrick Robb:
Quoted 9 lines
https://git.dpdk.org/next/dpdk-next-dts/commit/?id=564f4abb42df0cdf7da8c53933705bc205642005
This commit on next-dts changes the name of this default config file from
test_runs.yamltotest_run.yaml. However, it is not pulled to main yet.I can send a patch equivalent to Stephen's which changes test_rund.yml to
test_run.yaml. But, should it be applied to next-dts instead of main, so that it is "on top of" commit564f4abb42df0cdf7da8c53933705bc205642005which necessitates it?
Please can you rebase next-dts on top of main?
It will force you to make the change in the root .gitconfig
Re: [RFC] git: consolidate .gitignore files
Quoted 4 lines · Thomas Monjalon
Please can you rebase next-dts on top of main?
It will force you to make the change in the root .gitconfig
Thanks for the explanation this should be all set - I have rebased next-dts and here is the updated commit:
https://git.dpdk.org/next/dpdk-next-dts/commit/?id=3528d203499dc4011ced10a314e06f2ace0a03f7
Paul I have a local backup of the old for-main if we need for any reason, but it seems like a git edit on the commit above during the interactive rebase is the correct way to fix this.