DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] devtools: ignore .gitignore in SPDX check
@ 2025-02-07 18:26 Stephen Hemminger
  2025-02-10 16:51 ` Thomas Monjalon
  2025-02-10 17:20 ` [RFC] git: consolidate .gitignore files Stephen Hemminger
  0 siblings, 2 replies; 3+ messages in thread
From: Stephen Hemminger @ 2025-02-07 18:26 UTC (permalink / raw)
  To: dev; +Cc: Stephen Hemminger, Thomas Monjalon

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(-)

diff --git a/devtools/check-spdx-tag.sh b/devtools/check-spdx-tag.sh
index b983268b1e..47bc9f7b60 100755
--- a/devtools/check-spdx-tag.sh
+++ b/devtools/check-spdx-tag.sh
@@ -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' \
-- 
2.47.2


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] devtools: ignore .gitignore in SPDX check
  2025-02-07 18:26 [PATCH] devtools: ignore .gitignore in SPDX check Stephen Hemminger
@ 2025-02-10 16:51 ` Thomas Monjalon
  2025-02-10 17:20 ` [RFC] git: consolidate .gitignore files Stephen Hemminger
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2025-02-10 16:51 UTC (permalink / raw)
  To: Stephen Hemminger
  Cc: dev, Nicholas Pratte, Luca Vizzarro, Paul Szczepanek, Dean Marx

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.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [RFC] git: consolidate .gitignore files
  2025-02-07 18:26 [PATCH] devtools: ignore .gitignore in SPDX check Stephen Hemminger
  2025-02-10 16:51 ` Thomas Monjalon
@ 2025-02-10 17:20 ` Stephen Hemminger
  1 sibling, 0 replies; 3+ messages in thread
From: Stephen Hemminger @ 2025-02-10 17:20 UTC (permalink / raw)
  To: dev; +Cc: Stephen Hemminger, Paul Szczepanek, Patrick Robb, Maxime Coquelin

Lets have only one .gitignore at top level.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 .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

diff --git a/.gitignore b/.gitignore
index 903fe9bc64..a1a6843494 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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
diff --git a/dts/.gitignore b/dts/.gitignore
deleted file mode 100644
index d53a2f3b7e..0000000000
--- a/dts/.gitignore
+++ /dev/null
@@ -1,4 +0,0 @@
-# default configuration files for DTS
-nodes.yaml
-test_runs.yaml
-
diff --git a/kernel/linux/uapi/.gitignore b/kernel/linux/uapi/.gitignore
deleted file mode 100644
index 558ba597d6..0000000000
--- a/kernel/linux/uapi/.gitignore
+++ /dev/null
@@ -1,4 +0,0 @@
-**
-!**/
-!**/*.h
-!version
-- 
2.47.2


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-02-10 17:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-07 18:26 [PATCH] devtools: ignore .gitignore in SPDX check Stephen Hemminger
2025-02-10 16:51 ` Thomas Monjalon
2025-02-10 17:20 ` [RFC] git: consolidate .gitignore files Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).