Commit 96c96566 authored by Richard Acayan's avatar Richard Acayan Committed by Masahiro Yamada

kbuild: explicitly run mksysmap as sed script from link-vmlinux.sh

In commit b18b0470 ("kbuild: change scripts/mksysmap into sed
script"), the mksysmap script was transformed into a sed script,
made directly executable with "#!/bin/sed -f". Apparently, the path to
sed is different on NixOS.

The shebang can't use the env command, otherwise the "sed -f" command
would be treated as a single argument. This can be solved with the -S
flag, but that is a GNU extension. Explicitly use sed instead of relying
on the executable shebang to fix NixOS builds without breaking build
environments using Busybox.

Fixes: b18b0470 ("kbuild: change scripts/mksysmap into sed script")
Reported-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
Signed-off-by: default avatarRichard Acayan <mailingradian@gmail.com>
Reviewed-by: default avatarNathan Chancellor <nathan@kernel.org>
Tested-by: default avatarDmitry Safonov <0x7f454c46@gmail.com>
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent 77a92660
...@@ -193,7 +193,7 @@ kallsyms_step() ...@@ -193,7 +193,7 @@ kallsyms_step()
mksysmap() mksysmap()
{ {
info NM ${2} info NM ${2}
${NM} -n "${1}" | "${srctree}/scripts/mksysmap" > "${2}" ${NM} -n "${1}" | sed -f "${srctree}/scripts/mksysmap" > "${2}"
} }
sorttable() sorttable()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment