diff options
author | Richard Acayan <mailingradian@gmail.com> | 2024-06-05 13:58:09 -0400 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2024-06-07 08:42:14 +0900 |
commit | 96c965667b9dbbd713acdffa95ebab8c225f8595 (patch) | |
tree | 71f7fbc4d1eccde00d10d8d70e1e68c75c149013 /scripts/generate_rust_analyzer.py | |
parent | 77a92660d8fe8d29503fae768d9f5eb529c88b36 (diff) | |
download | lwn-96c965667b9dbbd713acdffa95ebab8c225f8595.tar.gz lwn-96c965667b9dbbd713acdffa95ebab8c225f8595.zip |
kbuild: explicitly run mksysmap as sed script from link-vmlinux.sh
In commit b18b047002b7 ("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: b18b047002b7 ("kbuild: change scripts/mksysmap into sed script")
Reported-by: Kent Overstreet <kent.overstreet@linux.dev>
Signed-off-by: Richard Acayan <mailingradian@gmail.com>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Tested-by: Dmitry Safonov <0x7f454c46@gmail.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions