summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTony Battersby <tonyb@cybernetics.com>2024-08-29 09:51:25 -0400
committerMasahiro Yamada <masahiroy@kernel.org>2024-09-07 17:24:08 +0900
commitdde60e7d103bf6cf820b2c4c4bb5658bad1759a9 (patch)
tree4207df70bb83b541bcd6c1c8e7fb5e13bb33d2bf /scripts
parent4929f5b95f6b20ae10f2c409fb2ca58253e73706 (diff)
kbuild: remove recent dependency on "truncate" program
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>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/link-vmlinux.sh2
1 files changed, 1 insertions, 1 deletions
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