KVM: arm64: nvhe: Add intermediates to 'targets' instead of extra-y
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 13 Jun 2022 09:20:26 +0000 (18:20 +0900)
committerMarc Zyngier <maz@kernel.org>
Wed, 29 Jun 2022 09:53:08 +0000 (10:53 +0100)
These are generated on demand. Adding them to 'targets' is enough.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220613092026.1705630-2-masahiroy@kernel.org
arch/arm64/kvm/hyp/nvhe/Makefile

index 3c6d3a1..a2b0d04 100644 (file)
@@ -28,7 +28,7 @@ hyp-obj-y += $(lib-objs)
 
 hyp-obj := $(patsubst %.o,%.nvhe.o,$(hyp-obj-y))
 obj-y := kvm_nvhe.o
-extra-y := $(hyp-obj) kvm_nvhe.tmp.o kvm_nvhe.rel.o hyp.lds hyp-reloc.S hyp-reloc.o
+targets += $(hyp-obj) kvm_nvhe.tmp.o kvm_nvhe.rel.o hyp.lds hyp-reloc.S hyp-reloc.o
 
 # 1) Compile all source files to `.nvhe.o` object files. The file extension
 #    avoids file name clashes for files shared with VHE.