[RFC PATCH 1/2] objtool: Run objtool only if either of the config options are selected
Sathvika Vasireddy
sv at linux.vnet.ibm.com
Tue Apr 23 02:18:30 AEST 2024
Hi Masahiro, thanks for reviewing.
On 4/22/24 5:39 PM, Masahiro Yamada wrote:
> On Mon, Apr 22, 2024 at 6:25 PM Sathvika Vasireddy<sv at linux.ibm.com> wrote:
>> Currently, when objtool is enabled and none of the supported options
>> are triggered, kernel build errors out with the below error:
>> error: objtool: At least one command required.
>
> Then, I think CONFIG_OBJTOOL should be disabled.
A subsequent patch introduces --ftr-fixup as an option to objtool to do
feature fixup at build-time via CONFIG_HAVE_OBJTOOL_FTR_FIXUP option. If
CONFIG_OBJTOOL is not selected, then objtool cannot be used to pass
--ftr-fixup option.
In cases where none of the supported options (like --mcount on powerpc
for example) is triggered, but still require --ftr-fixup option to be
passed to objtool, we see "error: objtool: At least one command
required" errors. So, to address this, run only when either of the
config options are selected.
Thanks,
Sathvika
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20240422/b05f916b/attachment.htm>
More information about the Linuxppc-dev
mailing list