linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 1/2] objtool: Run objtool only if either of the config options are selected
@ 2024-04-22  9:22 Sathvika Vasireddy
  2024-04-22  9:22 ` [RFC PATCH 2/2] objtool/powerpc: Enhance objtool to fixup alternate feature relative addresses Sathvika Vasireddy
  2024-04-22 12:09 ` [RFC PATCH 1/2] objtool: Run objtool only if either of the config options are selected Masahiro Yamada
  0 siblings, 2 replies; 7+ messages in thread
From: Sathvika Vasireddy @ 2024-04-22  9:22 UTC (permalink / raw)
  To: linux-kbuild, linuxppc-dev
  Cc: nicolas, peterz, masahiroy, mahesh, mingo, nathan, sv, npiggin,
	naveen.n.rao, jpoimboe

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.

To address this, ensure that objtool is run only when either of the
config options are selected.

Signed-off-by: Sathvika Vasireddy <sv@linux.ibm.com>
---
 scripts/Makefile.lib | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index 3179747cbd2c..c65bb0fbd136 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -286,7 +286,10 @@ objtool-args = $(objtool-args-y)					\
 
 delay-objtool := $(or $(CONFIG_LTO_CLANG),$(CONFIG_X86_KERNEL_IBT))
 
+ifneq ($(objtool-args-y),)
 cmd_objtool = $(if $(objtool-enabled), ; $(objtool) $(objtool-args) $@)
+endif
+
 cmd_gen_objtooldep = $(if $(objtool-enabled), { echo ; echo '$@: $$(wildcard $(objtool))' ; } >> $(dot-target).cmd)
 
 endif # CONFIG_OBJTOOL
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-05-06 17:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-22  9:22 [RFC PATCH 1/2] objtool: Run objtool only if either of the config options are selected Sathvika Vasireddy
2024-04-22  9:22 ` [RFC PATCH 2/2] objtool/powerpc: Enhance objtool to fixup alternate feature relative addresses Sathvika Vasireddy
2024-04-23  0:28   ` Nathan Chancellor
2024-05-06 16:50   ` Masahiro Yamada
2024-04-22 12:09 ` [RFC PATCH 1/2] objtool: Run objtool only if either of the config options are selected Masahiro Yamada
2024-04-22 16:18   ` Sathvika Vasireddy
2024-05-06 17:39     ` Masahiro Yamada

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).