kbuild: remove recent dependency on "truncate" program
authorTony Battersby <tonyb@cybernetics.com>
Thu, 29 Aug 2024 13:51:25 +0000 (09:51 -0400)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 7 Sep 2024 08:24:08 +0000 (17:24 +0900)
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>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/link-vmlinux.sh

index 070a319..c27b4e9 100755 (executable)
@@ -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