objtool: Parse options from OBJTOOL_ARGS
authorPeter Zijlstra <peterz@infradead.org>
Fri, 26 Feb 2021 10:32:30 +0000 (11:32 +0100)
committerIngo Molnar <mingo@kernel.org>
Sat, 6 Mar 2021 11:44:23 +0000 (12:44 +0100)
commit900b4df347bbac4874149a226143a556909faba8
tree238d47ff201a66cd923aee4c8a98ddd859261742
parenta2f605f9ff57397d05a8e2f282b78a69f574d305
objtool: Parse options from OBJTOOL_ARGS

Teach objtool to parse options from the OBJTOOL_ARGS environment
variable.

This enables things like:

  $ OBJTOOL_ARGS="--backup" make O=defconfig-build/ kernel/ponies.o

to obtain both defconfig-build/kernel/ponies.o{,.orig} and easily
inspect what objtool actually did.

Suggested-by: Borislav Petkov <bp@alien8.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://lkml.kernel.org/r/20210226110004.252553847@infradead.org
tools/objtool/builtin-check.c