kallsyms: take the input file instead of reading stdin

This gets rid of the pipe operator connected with 'cat'.

Also use getopt_long() to parse the command line.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
This commit is contained in:
Masahiro Yamada
2022-09-26 18:02:28 +09:00
parent a2833d1b07
commit aa221f2ea5
2 changed files with 34 additions and 19 deletions

View File

@@ -157,7 +157,7 @@ kallsyms()
fi
info KSYMS ${2}
cat ${1} | scripts/kallsyms ${kallsymopt} > ${2}
scripts/kallsyms ${kallsymopt} ${1} > ${2}
}
# Perform one step in kallsyms generation, including temporary linking of