Skip to contentSkip to conversation

arm64: pi: use 'targets' instead of extra-y in Makefile

PATCH Applied Masahiro Yamada 2 participants 2 messages Jun 2, 2025 – Jul 1, 2025 arm64

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: pi: use 'targets' instead of extra-y in Makefile

%.pi.o files are built as prerequisites of other objects. There is no need to use extra-y, which is planned for deprecation.

---

 arch/arm64/kernel/pi/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/kernel/pi/Makefile +1 -1
index 4d11a8c29181..211e1a79b07a 100644
@@ -41,4 +41,4 @@ obj-y					:= idreg-override.pi.o \
 obj-$(CONFIG_RELOCATABLE)		+= relocate.pi.o
 obj-$(CONFIG_RANDOMIZE_BASE)		+= kaslr_early.pi.o
 obj-$(CONFIG_UNWIND_PATCH_PAC_INTO_SCS)	+= patch-scs.pi.o
-extra-y					:= $(patsubst %.pi.o,%.o,$(obj-y))
+targets					:= $(patsubst %.pi.o,%.o,$(obj-y))
Signature · 1 line
2.43.0
maintainer Applied
#1 lore raw
Quoted 4 lines · Masahiro Yamada

%.pi.o files are built as prerequisites of other objects. There is no need to use extra-y, which is planned for deprecation.

Applied to arm64 (for-next/misc), thanks!

[1/1] arm64: pi: use 'targets' instead of extra-y in Makefile

      https://git.kernel.org/arm64/c/6853acd39998
Signature · 1 line
Catalin