* [PATCH] kbuild: remove recent dependency on "truncate" program
@ 2024-08-29 13:51 Tony Battersby
2024-08-29 18:01 ` Nathan Chancellor
2024-09-01 11:43 ` Masahiro Yamada
0 siblings, 2 replies; 3+ messages in thread
From: Tony Battersby @ 2024-08-29 13:51 UTC (permalink / raw)
To: Masahiro Yamada
Cc: Nathan Chancellor, Nicolas Schier, Daniel Gomez, linux-kbuild,
linux-kernel@vger.kernel.org
Remove the recently-added dependency on the truncate program for
building the kernel. truncate is not available when building the kernel
under Yocto. It could be added, but it would be better just to avoid
the unnecessary dependency.
Fixes: 1472464c6248 ("kbuild: avoid scripts/kallsyms parsing /dev/null")
Signed-off-by: Tony Battersby <tonyb@cybernetics.com>
---
scripts/link-vmlinux.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh
index 070a319140e8..c27b4e969f20 100755
--- a/scripts/link-vmlinux.sh
+++ b/scripts/link-vmlinux.sh
@@ -215,7 +215,7 @@ kallsymso=
strip_debug=
if is_enabled CONFIG_KALLSYMS; then
- truncate -s0 .tmp_vmlinux.kallsyms0.syms
+ true > .tmp_vmlinux.kallsyms0.syms
kallsyms .tmp_vmlinux.kallsyms0.syms .tmp_vmlinux0.kallsyms
fi
base-commit: 3e9bff3bbe1355805de919f688bef4baefbfd436
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] kbuild: remove recent dependency on "truncate" program
2024-08-29 13:51 [PATCH] kbuild: remove recent dependency on "truncate" program Tony Battersby
@ 2024-08-29 18:01 ` Nathan Chancellor
2024-09-01 11:43 ` Masahiro Yamada
1 sibling, 0 replies; 3+ messages in thread
From: Nathan Chancellor @ 2024-08-29 18:01 UTC (permalink / raw)
To: Tony Battersby
Cc: Masahiro Yamada, Nicolas Schier, Daniel Gomez, linux-kbuild,
linux-kernel@vger.kernel.org
On Thu, Aug 29, 2024 at 09:51:25AM -0400, Tony Battersby wrote:
> Remove the recently-added dependency on the truncate program for
> building the kernel. truncate is not available when building the kernel
> under Yocto. It could be added, but it would be better just to avoid
> the unnecessary dependency.
>
> Fixes: 1472464c6248 ("kbuild: avoid scripts/kallsyms parsing /dev/null")
> Signed-off-by: Tony Battersby <tonyb@cybernetics.com>
Seems reasonable to me and appears to generate an identical result for
me.
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
> ---
> scripts/link-vmlinux.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh
> index 070a319140e8..c27b4e969f20 100755
> --- a/scripts/link-vmlinux.sh
> +++ b/scripts/link-vmlinux.sh
> @@ -215,7 +215,7 @@ kallsymso=
> strip_debug=
>
> if is_enabled CONFIG_KALLSYMS; then
> - truncate -s0 .tmp_vmlinux.kallsyms0.syms
> + true > .tmp_vmlinux.kallsyms0.syms
> kallsyms .tmp_vmlinux.kallsyms0.syms .tmp_vmlinux0.kallsyms
> fi
>
>
> base-commit: 3e9bff3bbe1355805de919f688bef4baefbfd436
> --
> 2.25.1
>
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] kbuild: remove recent dependency on "truncate" program
2024-08-29 13:51 [PATCH] kbuild: remove recent dependency on "truncate" program Tony Battersby
2024-08-29 18:01 ` Nathan Chancellor
@ 2024-09-01 11:43 ` Masahiro Yamada
1 sibling, 0 replies; 3+ messages in thread
From: Masahiro Yamada @ 2024-09-01 11:43 UTC (permalink / raw)
To: Tony Battersby
Cc: Nathan Chancellor, Nicolas Schier, Daniel Gomez, linux-kbuild,
linux-kernel@vger.kernel.org
On Thu, Aug 29, 2024 at 10:51 PM Tony Battersby <tonyb@cybernetics.com> wrote:
>
> Remove the recently-added dependency on the truncate program for
> building the kernel. truncate is not available when building the kernel
> under Yocto. It could be added, but it would be better just to avoid
> the unnecessary dependency.
>
> Fixes: 1472464c6248 ("kbuild: avoid scripts/kallsyms parsing /dev/null")
> Signed-off-by: Tony Battersby <tonyb@cybernetics.com>
I have no objection.
'true' is a shell-builtin command, so it saves a process fork.
Applied to linux-kbuild. Thanks!
BTW, 'truncate' is used in drivers/firmware/efi/libstub/Makefile.zboot
(CONFIG_EFI_ZBOOT).
It seems to be no problem in Yocto.
> ---
> scripts/link-vmlinux.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh
> index 070a319140e8..c27b4e969f20 100755
> --- a/scripts/link-vmlinux.sh
> +++ b/scripts/link-vmlinux.sh
> @@ -215,7 +215,7 @@ kallsymso=
> strip_debug=
>
> if is_enabled CONFIG_KALLSYMS; then
> - truncate -s0 .tmp_vmlinux.kallsyms0.syms
> + true > .tmp_vmlinux.kallsyms0.syms
> kallsyms .tmp_vmlinux.kallsyms0.syms .tmp_vmlinux0.kallsyms
> fi
>
>
> base-commit: 3e9bff3bbe1355805de919f688bef4baefbfd436
> --
> 2.25.1
>
--
Best Regards
Masahiro Yamada
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-09-01 11:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-29 13:51 [PATCH] kbuild: remove recent dependency on "truncate" program Tony Battersby
2024-08-29 18:01 ` Nathan Chancellor
2024-09-01 11:43 ` Masahiro Yamada
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox