]> code.ossystems Code Review - openembedded-core.git/commit
kernel: add objtool to shared workdir when CONFIG_UNWINDER_ORC is set
authorJustin Bronder <jsbronder@cold-front.org>
Fri, 1 Mar 2019 05:34:26 +0000 (00:34 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 1 Mar 2019 07:12:40 +0000 (07:12 +0000)
commit7d4fdd3b95c949277f77df90bb2e8120b8d167ae
tree86857afd8bea4ce9c4843e835ef89c836c640e7d
parent5c1c1f223c6618d033ea23abb33dacc230e754de
kernel: add objtool to shared workdir when CONFIG_UNWINDER_ORC is set

Based on: https://patchwork.openembedded.org/patch/148047/

When x86_64 enables CONFIG_UNWINDER_ORC [ORC (Oops Rewind Capability)
unwinder for unwinding kernel stack traces], objtool is required to
generate the required information.

If we don't copy objtool to the shared workdir, out-of-tree modules
cannot generate object files.

For instance, meta-skeleton/hello-mod fails with:
    | make[3]: *** No rule to make target 'tools/objtool/objtool', needed by ...

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel.bbclass