Skip to contentSkip to conversation

kconfig: use interpreters to invoke scripts

RFC PATCH In review Ujjwal Kumar 2 participants 6 messages Oct 1, 2020 – Oct 3, 2020

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 kconfig: use interpreters to invoke scripts

We cannot rely on execute bits to be set on files in the repository. The build script should use the explicit interpreter when invoking any script from the repository.

---
 init/Kconfig | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
init/Kconfig +8 -8
index 91456ac0ef20..335c8fcb99af 100644
@@ -30,12 +30,12 @@ config CC_IS_GCC
 
 config GCC_VERSION
 	int
-	default $(shell,$(srctree)/scripts/gcc-version.sh $(CC)) if CC_IS_GCC
+	default $(shell,$(CONFIG_SHELL) $(srctree)/scripts/gcc-version.sh $(CC)) if CC_IS_GCC
 	default 0
 
 config LD_VERSION
 	int
-	default $(shell,$(LD) --version | $(srctree)/scripts/ld-version.sh)
+	default $(shell,$(LD) --version | $(AWK) -f $(srctree)/scripts/ld-version.sh)
 
 config CC_IS_CLANG
 	def_bool $(success,echo "$(CC_VERSION_TEXT)" | grep -q clang)
@@ -45,20 +45,20 @@ config LD_IS_LLD
 
 config CLANG_VERSION
 	int
-	default $(shell,$(srctree)/scripts/clang-version.sh $(CC))
+	default $(shell,$(CONFIG_SHELL) $(srctree)/scripts/clang-version.sh $(CC))
 
 config CC_CAN_LINK
 	bool
-	default $(success,$(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m64-flag)) if 64BIT
-	default $(success,$(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m32-flag))
+	default $(success,$(CONFIG_SHELL) $(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m64-flag)) if 64BIT
+	default $(success,$(CONFIG_SHELL) $(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m32-flag))
 
 config CC_CAN_LINK_STATIC
 	bool
-	default $(success,$(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m64-flag) -static) if 64BIT
-	default $(success,$(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m32-flag) -static)
+	default $(success,$(CONFIG_SHELL) $(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m64-flag) -static) if 64BIT
+	default $(success,$(CONFIG_SHELL) $(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m32-flag) -static)
 
 config CC_HAS_ASM_GOTO
-	def_bool $(success,$(srctree)/scripts/gcc-goto.sh $(CC))
+	def_bool $(success,$(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC))
 
 config CC_HAS_ASM_GOTO_OUTPUT
 	depends on CC_HAS_ASM_GOTO
Signature · 6 lines
2.26.2

_______________________________________________
Linux-kernel-mentees mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees
#1 lore raw
Quoted 11 lines · Ujjwal Kumar

We cannot rely on execute bits to be set on files in the repository. The build script should use the explicit interpreter when invoking any script from the repository.

Ujjwal, you have nicely split the patches. I suggest you send out this patch and the patch "kbuild: use interpreters to incoke scripts" together as one patch series.

You just need to write a cover letter and explain there which steps you did to find this being wrong before and what you did to test that it is now corrected.

Also, can you please share on this list to whom/which lists you would send this patch series?

Then we check that we did not miss anyone important for these two patches.

Please resend the two mentioned patches again as patch series with a cover letter.

We are getting close now to sending this to the larger group of kernel developers.

Good progress so far.

Lukas

Quoted 54 lines
---
 init/Kconfig | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
init/Kconfig +8 -8
index 91456ac0ef20..335c8fcb99af 100644
@@ -30,12 +30,12 @@ config CC_IS_GCC
 
 config GCC_VERSION
 	int
-	default $(shell,$(srctree)/scripts/gcc-version.sh $(CC)) if CC_IS_GCC
+	default $(shell,$(CONFIG_SHELL) $(srctree)/scripts/gcc-version.sh $(CC)) if CC_IS_GCC
 	default 0
 
 config LD_VERSION
 	int
-	default $(shell,$(LD) --version | $(srctree)/scripts/ld-version.sh)
+	default $(shell,$(LD) --version | $(AWK) -f $(srctree)/scripts/ld-version.sh)
 
 config CC_IS_CLANG
 	def_bool $(success,echo "$(CC_VERSION_TEXT)" | grep -q clang)
@@ -45,20 +45,20 @@ config LD_IS_LLD
 
 config CLANG_VERSION
 	int
-	default $(shell,$(srctree)/scripts/clang-version.sh $(CC))
+	default $(shell,$(CONFIG_SHELL) $(srctree)/scripts/clang-version.sh $(CC))
 
 config CC_CAN_LINK
 	bool
-	default $(success,$(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m64-flag)) if 64BIT
-	default $(success,$(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m32-flag))
+	default $(success,$(CONFIG_SHELL) $(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m64-flag)) if 64BIT
+	default $(success,$(CONFIG_SHELL) $(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m32-flag))
 
 config CC_CAN_LINK_STATIC
 	bool
-	default $(success,$(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m64-flag) -static) if 64BIT
-	default $(success,$(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m32-flag) -static)
+	default $(success,$(CONFIG_SHELL) $(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m64-flag) -static) if 64BIT
+	default $(success,$(CONFIG_SHELL) $(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m32-flag) -static)
 
 config CC_HAS_ASM_GOTO
-	def_bool $(success,$(srctree)/scripts/gcc-goto.sh $(CC))
+	def_bool $(success,$(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC))
 
 config CC_HAS_ASM_GOTO_OUTPUT
 	depends on CC_HAS_ASM_GOTO
Signature · 1 line
2.26.2

_______________________________________________
Linux-kernel-mentees mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees

#2 lore raw
Quoted 21 lines · Lukas Bulwahn
Quoted 11 lines · Ujjwal Kumar

We cannot rely on execute bits to be set on files in the repository. The build script should use the explicit interpreter when invoking any script from the repository.

Ujjwal, you have nicely split the patches. I suggest you send out this patch and the patch "kbuild: use interpreters to incoke scripts" together as one patch series.

Quoted 6 lines

You just need to write a cover letter and explain there which steps you did to find this being wrong before and what you did to test that it is now corrected.

Also, can you please share on this list to whom/which lists you would send this patch series?Running 'get_maintainer.pl' script I get the following list.

kconfig: use interpreters to invoke scripts-

Nathan Chancellor <[email protected]>
Nick Desaulniers <[email protected]>
Masahiro Yamada <[email protected]>
"Steven Rostedt (VMware)" <[email protected]>
Masami Hiramatsu <[email protected]>
Daniel Borkmann <[email protected]>
Andrew Morton <[email protected]>
Krzysztof Kozlowski <[email protected]>
Valentin Schneider <[email protected]>
Nick Terrell <[email protected]>
"Eric W. Biederman" <[email protected]>
Johannes Weiner <[email protected]>
[email protected]
[email protected]

kbuild: use interpreters to invoke scripts-

Masahiro Yamada <[email protected]>
Michal Marek <[email protected]>
Catalin Marinas <[email protected]>
Will Deacon <[email protected]>
Tony Luck <[email protected]>
Fenghua Yu <[email protected]>
Nick Hu <[email protected]>
Greentime Hu <[email protected]>
Vincent Chen <[email protected]>
Vincenzo Frascino <[email protected]>
Kees Cook <[email protected]>
Nick Desaulniers <[email protected]>
Alexander Popov <[email protected]>
Mark Brown <[email protected]>
Sami Tolvanen <[email protected]>
Nathan Chancellor <[email protected]>
Denis Efremov <[email protected]>
[email protected]
[email protected]
[email protected]
[email protected]

Quoted 61 lines

Then we check that we did not miss anyone important for these two patches.

Please resend the two mentioned patches again as patch series with a cover letter.

We are getting close now to sending this to the larger group of kernel developers.

Good progress so far.

Lukas

Quoted 48 lines
---
 init/Kconfig | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
init/Kconfig +8 -8
index 91456ac0ef20..335c8fcb99af 100644
@@ -30,12 +30,12 @@ config CC_IS_GCC
 
 config GCC_VERSION
 	int
-	default $(shell,$(srctree)/scripts/gcc-version.sh $(CC)) if CC_IS_GCC
+	default $(shell,$(CONFIG_SHELL) $(srctree)/scripts/gcc-version.sh $(CC)) if CC_IS_GCC
 	default 0
 
 config LD_VERSION
 	int
-	default $(shell,$(LD) --version | $(srctree)/scripts/ld-version.sh)
+	default $(shell,$(LD) --version | $(AWK) -f $(srctree)/scripts/ld-version.sh)
 
 config CC_IS_CLANG
 	def_bool $(success,echo "$(CC_VERSION_TEXT)" | grep -q clang)
@@ -45,20 +45,20 @@ config LD_IS_LLD
 
 config CLANG_VERSION
 	int
-	default $(shell,$(srctree)/scripts/clang-version.sh $(CC))
+	default $(shell,$(CONFIG_SHELL) $(srctree)/scripts/clang-version.sh $(CC))
 
 config CC_CAN_LINK
 	bool
-	default $(success,$(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m64-flag)) if 64BIT
-	default $(success,$(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m32-flag))
+	default $(success,$(CONFIG_SHELL) $(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m64-flag)) if 64BIT
+	default $(success,$(CONFIG_SHELL) $(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m32-flag))
 
 config CC_CAN_LINK_STATIC
 	bool
-	default $(success,$(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m64-flag) -static) if 64BIT
-	default $(success,$(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m32-flag) -static)
+	default $(success,$(CONFIG_SHELL) $(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m64-flag) -static) if 64BIT
+	default $(success,$(CONFIG_SHELL) $(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m32-flag) -static)
 
 config CC_HAS_ASM_GOTO
-	def_bool $(success,$(srctree)/scripts/gcc-goto.sh $(CC))
+	def_bool $(success,$(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC))
 
Quoted 6 lines
Quoted 6 lines
init/Kconfig +0 -0
 config CC_HAS_ASM_GOTO_OUTPUT
 	depends on CC_HAS_ASM_GOTO
Signature · 1 line
2.26.2

_______________________________________________
Linux-kernel-mentees mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees

#3 lore raw
Quoted 22 lines · Ujjwal Kumar
Quoted 21 lines · Lukas Bulwahn
Quoted 11 lines · Ujjwal Kumar

We cannot rely on execute bits to be set on files in the repository. The build script should use the explicit interpreter when invoking any script from the repository.

Ujjwal, you have nicely split the patches. I suggest you send out this patch and the patch "kbuild: use interpreters to incoke scripts" together as one patch series.

Quoted 9 lines
Quoted 6 lines

You just need to write a cover letter and explain there which steps you did to find this being wrong before and what you did to test that it is now corrected.

Also, can you please share on this list to whom/which lists you would send this patch series?Running 'get_maintainer.pl' script I get the following list.

kconfig: use interpreters to invoke scripts-

Make those people explicitly to:

Quoted 2 lines

Nathan Chancellor <[email protected]>
Nick Desaulniers <[email protected]>

Nathan and Nick were working on the multi-compier support.

Quoted 1 line

Masahiro Yamada <[email protected]>

Masahiro-san is the important maintainer here.
also add Michal Marek.

I guess they are all optional:

Quoted 9 lines

"Steven Rostedt (VMware)" <[email protected]>
Masami Hiramatsu <[email protected]>
Daniel Borkmann <[email protected]>
Andrew Morton <[email protected]>
Krzysztof Kozlowski <[email protected]>
Valentin Schneider <[email protected]>
Nick Terrell <[email protected]>
"Eric W. Biederman" <[email protected]>
Johannes Weiner <[email protected]>

Yes, the mailing lists should be added:

Quoted 3 lines

[email protected]
[email protected]

also add the linux-kbuild mailing list.

Quoted 3 lines

kbuild: use interpreters to invoke scripts-

These are the important maintainers:

Quoted 2 lines

Masahiro Yamada <[email protected]>
Michal Marek <[email protected]>

I think these are mainly developers that some of the lines;

maybe just put them CC:

Quoted 7 lines

Catalin Marinas <[email protected]>
Will Deacon <[email protected]>
Tony Luck <[email protected]>
Fenghua Yu <[email protected]>
Nick Hu <[email protected]>
Greentime Hu <[email protected]>
Vincent Chen <[email protected]>

Quoted 8 lines

Vincenzo Frascino <[email protected]>
Kees Cook <[email protected]>
Nick Desaulniers <[email protected]>
Alexander Popov <[email protected]>
Mark Brown <[email protected]>
Sami Tolvanen <[email protected]>
Nathan Chancellor <[email protected]>
Denis Efremov <[email protected]>

Mailing lists looks good:

Quoted 5 lines

[email protected]
[email protected]
[email protected]
[email protected]

I think you have a good list.

Lukas

Quoted 61 lines
Quoted 61 lines

Then we check that we did not miss anyone important for these two patches.

Please resend the two mentioned patches again as patch series with a cover letter.

We are getting close now to sending this to the larger group of kernel developers.

Good progress so far.

Lukas

Quoted 48 lines
---
 init/Kconfig | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
init/Kconfig +8 -8
index 91456ac0ef20..335c8fcb99af 100644
@@ -30,12 +30,12 @@ config CC_IS_GCC
 
 config GCC_VERSION
 	int
-	default $(shell,$(srctree)/scripts/gcc-version.sh $(CC)) if CC_IS_GCC
+	default $(shell,$(CONFIG_SHELL) $(srctree)/scripts/gcc-version.sh $(CC)) if CC_IS_GCC
 	default 0
 
 config LD_VERSION
 	int
-	default $(shell,$(LD) --version | $(srctree)/scripts/ld-version.sh)
+	default $(shell,$(LD) --version | $(AWK) -f $(srctree)/scripts/ld-version.sh)
 
 config CC_IS_CLANG
 	def_bool $(success,echo "$(CC_VERSION_TEXT)" | grep -q clang)
@@ -45,20 +45,20 @@ config LD_IS_LLD
 
 config CLANG_VERSION
 	int
-	default $(shell,$(srctree)/scripts/clang-version.sh $(CC))
+	default $(shell,$(CONFIG_SHELL) $(srctree)/scripts/clang-version.sh $(CC))
 
 config CC_CAN_LINK
 	bool
-	default $(success,$(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m64-flag)) if 64BIT
-	default $(success,$(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m32-flag))
+	default $(success,$(CONFIG_SHELL) $(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m64-flag)) if 64BIT
+	default $(success,$(CONFIG_SHELL) $(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m32-flag))
 
 config CC_CAN_LINK_STATIC
 	bool
-	default $(success,$(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m64-flag) -static) if 64BIT
-	default $(success,$(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m32-flag) -static)
+	default $(success,$(CONFIG_SHELL) $(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m64-flag) -static) if 64BIT
+	default $(success,$(CONFIG_SHELL) $(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m32-flag) -static)
 
 config CC_HAS_ASM_GOTO
-	def_bool $(success,$(srctree)/scripts/gcc-goto.sh $(CC))
+	def_bool $(success,$(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC))
 
Quoted 8 lines
Quoted 6 lines
Quoted 6 lines
init/Kconfig +0 -0
 config CC_HAS_ASM_GOTO_OUTPUT
 	depends on CC_HAS_ASM_GOTO
Signature · 1 line
2.26.2

_______________________________________________
Linux-kernel-mentees mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees

#4 lore raw
Quoted 102 lines · Lukas Bulwahn
Quoted 22 lines · Ujjwal Kumar
Quoted 21 lines · Lukas Bulwahn
Quoted 11 lines · Ujjwal Kumar

We cannot rely on execute bits to be set on files in the repository. The build script should use the explicit interpreter when invoking any script from the repository.

Ujjwal, you have nicely split the patches. I suggest you send out this patch and the patch "kbuild: use interpreters to incoke scripts" together as one patch series.

Quoted 9 lines
Quoted 6 lines

You just need to write a cover letter and explain there which steps you did to find this being wrong before and what you did to test that it is now corrected.

Also, can you please share on this list to whom/which lists you would send this patch series?Running 'get_maintainer.pl' script I get the following list.

kconfig: use interpreters to invoke scripts-

Make those people explicitly to:

Quoted 2 lines

Nathan Chancellor <[email protected]>
Nick Desaulniers <[email protected]>

Nathan and Nick were working on the multi-compier support.

Quoted 1 line

Masahiro Yamada <[email protected]>

Masahiro-san is the important maintainer here.
also add Michal Marek.

I guess they are all optional:

Quoted 9 lines

"Steven Rostedt (VMware)" <[email protected]>
Masami Hiramatsu <[email protected]>
Daniel Borkmann <[email protected]>
Andrew Morton <[email protected]>
Krzysztof Kozlowski <[email protected]>
Valentin Schneider <[email protected]>
Nick Terrell <[email protected]>
"Eric W. Biederman" <[email protected]>
Johannes Weiner <[email protected]>

Yes, the mailing lists should be added:

Quoted 3 lines

[email protected]
[email protected]

also add the linux-kbuild mailing list.

Quoted 3 lines

kbuild: use interpreters to invoke scripts-

These are the important maintainers:

Quoted 2 lines

Masahiro Yamada <[email protected]>
Michal Marek <[email protected]>

I think these are mainly developers that some of the lines;

maybe just put them CC:

Quoted 7 lines

Catalin Marinas <[email protected]>
Will Deacon <[email protected]>
Tony Luck <[email protected]>
Fenghua Yu <[email protected]>
Nick Hu <[email protected]>
Greentime Hu <[email protected]>
Vincent Chen <[email protected]>

Quoted 8 lines

Vincenzo Frascino <[email protected]>
Kees Cook <[email protected]>
Nick Desaulniers <[email protected]>
Alexander Popov <[email protected]>
Mark Brown <[email protected]>
Sami Tolvanen <[email protected]>
Nathan Chancellor <[email protected]>
Denis Efremov <[email protected]>

Mailing lists looks good:

Quoted 7 lines
Quoted 5 lines

[email protected]
[email protected]
[email protected]
[email protected]

I think you have a good list.

For PATCH 1/2:
Nathan Chancellor <[email protected]>
Nick Desaulniers <[email protected]>
Masahiro Yamada <[email protected]>
Michal Marek <[email protected]>
[email protected]
[email protected]
[email protected]
[email protected]

For PATCH 2/2:
Nathan Chancellor <[email protected]>
Nick Desaulniers <[email protected]>
Masahiro Yamada <[email protected]>
Michal Marek <[email protected]>
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]

Is it okay to send one patch from the series to a recipient and skip the other patches?
Should I merge recipients for each patch into one to create a common list of recipients for all the patches (with cover letter) in the series? And send all the patches (with cover letter) to that common list.

Thanks
Ujjwal Kumar

Quoted 72 lines

Lukas

Quoted 69 lines
Quoted 67 lines

Then we check that we did not miss anyone important for these two patches.

Please resend the two mentioned patches again as patch series with a cover letter.

We are getting close now to sending this to the larger group of kernel developers.

Good progress so far.

Lukas

Quoted 54 lines
---
 init/Kconfig | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
init/Kconfig +8 -8
index 91456ac0ef20..335c8fcb99af 100644
@@ -30,12 +30,12 @@ config CC_IS_GCC
 
 config GCC_VERSION
 	int
-	default $(shell,$(srctree)/scripts/gcc-version.sh $(CC)) if CC_IS_GCC
+	default $(shell,$(CONFIG_SHELL) $(srctree)/scripts/gcc-version.sh $(CC)) if CC_IS_GCC
 	default 0
 
 config LD_VERSION
 	int
-	default $(shell,$(LD) --version | $(srctree)/scripts/ld-version.sh)
+	default $(shell,$(LD) --version | $(AWK) -f $(srctree)/scripts/ld-version.sh)
 
 config CC_IS_CLANG
 	def_bool $(success,echo "$(CC_VERSION_TEXT)" | grep -q clang)
@@ -45,20 +45,20 @@ config LD_IS_LLD
 
 config CLANG_VERSION
 	int
-	default $(shell,$(srctree)/scripts/clang-version.sh $(CC))
+	default $(shell,$(CONFIG_SHELL) $(srctree)/scripts/clang-version.sh $(CC))
 
 config CC_CAN_LINK
 	bool
-	default $(success,$(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m64-flag)) if 64BIT
-	default $(success,$(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m32-flag))
+	default $(success,$(CONFIG_SHELL) $(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m64-flag)) if 64BIT
+	default $(success,$(CONFIG_SHELL) $(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m32-flag))
 
 config CC_CAN_LINK_STATIC
 	bool
-	default $(success,$(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m64-flag) -static) if 64BIT
-	default $(success,$(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m32-flag) -static)
+	default $(success,$(CONFIG_SHELL) $(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m64-flag) -static) if 64BIT
+	default $(success,$(CONFIG_SHELL) $(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m32-flag) -static)
 
 config CC_HAS_ASM_GOTO
-	def_bool $(success,$(srctree)/scripts/gcc-goto.sh $(CC))
+	def_bool $(success,$(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC))
 
 config CC_HAS_ASM_GOTO_OUTPUT
 	depends on CC_HAS_ASM_GOTO
Signature · 1 line
2.26.2

_______________________________________________
Linux-kernel-mentees mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees

#5 lore raw
Quoted 132 lines · Ujjwal Kumar
Quoted 102 lines · Lukas Bulwahn
Quoted 22 lines · Ujjwal Kumar
Quoted 21 lines · Lukas Bulwahn
Quoted 11 lines · Ujjwal Kumar

We cannot rely on execute bits to be set on files in the repository. The build script should use the explicit interpreter when invoking any script from the repository.

Ujjwal, you have nicely split the patches. I suggest you send out this patch and the patch "kbuild: use interpreters to incoke scripts" together as one patch series.

Quoted 9 lines
Quoted 6 lines

You just need to write a cover letter and explain there which steps you did to find this being wrong before and what you did to test that it is now corrected.

Also, can you please share on this list to whom/which lists you would send this patch series?Running 'get_maintainer.pl' script I get the following list.

kconfig: use interpreters to invoke scripts-

Make those people explicitly to:

Quoted 2 lines

Nathan Chancellor <[email protected]>
Nick Desaulniers <[email protected]>

Nathan and Nick were working on the multi-compier support.

Quoted 1 line

Masahiro Yamada <[email protected]>

Masahiro-san is the important maintainer here.
also add Michal Marek.

I guess they are all optional:

Quoted 9 lines

"Steven Rostedt (VMware)" <[email protected]>
Masami Hiramatsu <[email protected]>
Daniel Borkmann <[email protected]>
Andrew Morton <[email protected]>
Krzysztof Kozlowski <[email protected]>
Valentin Schneider <[email protected]>
Nick Terrell <[email protected]>
"Eric W. Biederman" <[email protected]>
Johannes Weiner <[email protected]>

Yes, the mailing lists should be added:

Quoted 3 lines

[email protected]
[email protected]

also add the linux-kbuild mailing list.

Quoted 3 lines

kbuild: use interpreters to invoke scripts-

These are the important maintainers:

Quoted 2 lines

Masahiro Yamada <[email protected]>
Michal Marek <[email protected]>

I think these are mainly developers that some of the lines;

maybe just put them CC:

Quoted 7 lines

Catalin Marinas <[email protected]>
Will Deacon <[email protected]>
Tony Luck <[email protected]>
Fenghua Yu <[email protected]>
Nick Hu <[email protected]>
Greentime Hu <[email protected]>
Vincent Chen <[email protected]>

Quoted 8 lines

Vincenzo Frascino <[email protected]>
Kees Cook <[email protected]>
Nick Desaulniers <[email protected]>
Alexander Popov <[email protected]>
Mark Brown <[email protected]>
Sami Tolvanen <[email protected]>
Nathan Chancellor <[email protected]>
Denis Efremov <[email protected]>

Mailing lists looks good:

Quoted 7 lines
Quoted 5 lines

[email protected]
[email protected]
[email protected]
[email protected]

I think you have a good list.

For PATCH 1/2:
Nathan Chancellor <[email protected]>
Nick Desaulniers <[email protected]>
Masahiro Yamada <[email protected]>
Michal Marek <[email protected]>
[email protected]
[email protected]
[email protected]
[email protected]

For PATCH 2/2:
Nathan Chancellor <[email protected]>
Nick Desaulniers <[email protected]>
Masahiro Yamada <[email protected]>
Michal Marek <[email protected]>
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]

Quoted 6 lines

Is it okay to send one patch from the series to a recipient and skip the other patches?
Should I merge recipients for each patch into one to create a common list of recipients for all the patches (with cover letter) in the series? And send all the patches (with cover letter) to that common list.

Both options are fine. I think it is up to your personal preference.

Merging them is probably just easier to write a git send-email command.

Lukas
_______________________________________________
Linux-kernel-mentees mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees