Skip to contentSkip to conversation

.gitignore: Do not track `defconfig` from `make savedefconfig`

PATCH In review Paul Menzel 3 participants 6 messages Jul 2, 2020 – Jul 5, 2020

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 .gitignore: Do not track `defconfig` from `make savedefconfig`

Running make savedefconfig creates by default defconfig, which is, currently, on git’s radar, for example, git status lists this file as untracked.

So, add the file to .gitignore, so it’s ignored by git.

---
 .gitignore | 3 +++
 1 file changed, 3 insertions(+)
.gitignore +3 -0
index 87b9dd8a163b..f07500889fba 100644
@@ -143,6 +143,9 @@ x509.genkey
 /allrandom.config
 /allyes.config
 
+# Kconfig presets, default savedefconfg output
+/defconfig
+
 # Kdevelop4
 *.kdev4
 
Signature · 1 line
2.27.0
#2 lore raw
In reply to Paul Menzel
Quoted 18 lines · Paul Menzel

Running make savedefconfig creates by default defconfig, which is, currently, on git’s radar, for example, git status lists this file as untracked.

So, add the file to .gitignore, so it’s ignored by git.

---
 .gitignore | 3 +++
 1 file changed, 3 insertions(+)
.gitignore +0 -0
index 87b9dd8a163b..f07500889fba 100644

.gitignore x509.genkey · line 146

Quoted 4 lines
.gitignore +1 -0
@@ -143,6 +143,9 @@ x509.genkey
 /allrandom.config
 /allyes.config
 
+# Kconfig presets, default savedefconfg output

I fixed up the typo, then applied to linux-kbuild. Thanks.

"savedefconfg" -> "savedefconfig"

(sorry, it was my typo.)

Quoted 8 lines
.gitignore +2 -1
+/defconfig
+
 # Kdevelop4
 *.kdev4
 
--

2.27.0

Signature · 2 lines
Best Regards
Masahiro Yamada
#3 lore raw
In reply to Paul Menzel
Quoted 18 lines · Paul Menzel

Running make savedefconfig creates by default defconfig, which is, currently, on git’s radar, for example, git status lists this file as untracked.

So, add the file to .gitignore, so it’s ignored by git.

---
 .gitignore | 3 +++
 1 file changed, 3 insertions(+)
.gitignore +0 -0
index 87b9dd8a163b..f07500889fba 100644

.gitignore x509.genkey · line 146

Quoted 4 lines
.gitignore +1 -0
@@ -143,6 +143,9 @@ x509.genkey
 /allrandom.config
 /allyes.config
 
+# Kconfig presets, default savedefconfg output

I just noticed this comment is wrong
since 'defconfig' is not a preset.

I will change it to 'Kconfig savedefconfig output'.

Thanks.

Quoted 8 lines
.gitignore +2 -1
+/defconfig
+
 # Kdevelop4
 *.kdev4
 
--

2.27.0

Signature · 2 lines
Best Regards
Masahiro Yamada
#4 lore raw

Dear Masahiro,

Am 05.07.20 um 09:14 schrieb Masahiro Yamada:

Quoted 22 lines · Paul Menzel
Quoted 21 lines

Running make savedefconfig creates by default defconfig, which is, currently, on git’s radar, for example, git status lists this file as untracked.

So, add the file to .gitignore, so it’s ignored by git.

---
  .gitignore | 3 +++
  1 file changed, 3 insertions(+)
.gitignore +0 -0
index 87b9dd8a163b..f07500889fba 100644
@@ -143,6 +143,9 @@ x509.genkey
  /allrandom.config
  /allyes.config
 
Quoted 7 lines

.gitignore x509.genkey · line 146

Quoted 1 line
.gitignore +1 -0
+# Kconfig presets, default savedefconfg output

I just noticed this comment is wrong
since 'defconfig' is not a preset.

I will change it to 'Kconfig savedefconfig output'.

Thank you for finding my error and correcting it.

I couldn’t find out more about *presets*.

    $ git grep -i preset scripts/kconfig/
    $

Where can I look, so I won’t repeat the same mistake next time?

Quoted 7 lines
Quoted 7 lines
.gitignore +2 -1
+/defconfig
+
  # Kdevelop4
  *.kdev4
 
--

2.27.0

Kind regards,

Paul

#5 lore raw
Quoted 35 lines · Paul Menzel

Dear Masahiro,

Am 05.07.20 um 09:14 schrieb Masahiro Yamada:

Quoted 22 lines · Paul Menzel
Quoted 21 lines

Running make savedefconfig creates by default defconfig, which is, currently, on git’s radar, for example, git status lists this file as untracked.

So, add the file to .gitignore, so it’s ignored by git.

---
  .gitignore | 3 +++
  1 file changed, 3 insertions(+)
.gitignore +0 -0
index 87b9dd8a163b..f07500889fba 100644
@@ -143,6 +143,9 @@ x509.genkey
  /allrandom.config
  /allyes.config
 
Quoted 7 lines

.gitignore x509.genkey · line 146

Quoted 1 line
.gitignore +1 -0
+# Kconfig presets, default savedefconfg output

I just noticed this comment is wrong
since 'defconfig' is not a preset.

I will change it to 'Kconfig savedefconfig output'.

Quoted 8 lines

Thank you for finding my error and correcting it.

I couldn’t find out more about *presets*.

     $ git grep -i preset scripts/kconfig/
     $

Where can I look, so I won’t repeat the same mistake next time?

You can find 'preset' in
Documentation/kbuild/kconfig.rst
but it does appear in the source files.

Signature · 2 lines
Best Regards
Masahiro Yamada